Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Christophe 23 posts 43 karma points
    Oct 06, 2010 @ 05:00
    Christophe
    0

    Macro not Working in Subpages

    This should be easy. I have seen the subject on the forum but I can't seem to adapt what I have seen.

    I insert my macro in the RTE and the macro will render only in the home page and the preview (any page) but will not work properly in the sub-pages.

    Here is my XSLT code:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    <xsl:stylesheet 
      version="1.0" 
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
      xmlns:msxml="urn:schemas-microsoft-com:xslt"
      xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" 
      exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">
    
    
    <xsl:output method="xml" omit-xml-declaration="yes"/>
    
    <xsl:param name="currentPage"/>
    
    <xsl:template match="/">
    
    <!-- start writing XSLT -->
    <div id="silverlightControlHost">
      <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="320" height="240">
        <param name="source" value="umbraco_client/VideoPlayer.xap"/>
        <param name="initParams" value="m=video.wmv" />
                   <param name="minruntimeversion" value="2.0.31005.0" />
        <a href="http://go.microsoft.com/fwlink/?LinkId=124807" style="text-decoration: none;">
           <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
        </a>
      </object>
    </div>
    </xsl:template>
    
    </xsl:stylesheet>

     

    This looks easy and I feel stupid now.

    Thank you in advance.

    Christophe

  • daniel_sbbs 33 posts 52 karma points
    Oct 06, 2010 @ 06:44
    daniel_sbbs
    0

    Hi
    Check the param "source", either add / or ~/ in the begining of the path.

  • Christophe 23 posts 43 karma points
    Oct 06, 2010 @ 07:42
    Christophe
    0

    Hello Daniel,

    The / did it. This was that simple! Thank you immensely for your help.

    Christophe

Please Sign in or register to post replies

Write your reply to:

Draft