Copied to clipboard

Flag this post as spam?

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


  • Magnus Eriksson 122 posts 362 karma points
    Sep 06, 2011 @ 15:30
    Magnus Eriksson
    0

    Parameter to XSLT file?

    If i use the:

    <umbraco:Macro runat="server" language="xslt" filelocation="/xslt/file.xslt" someparameter="foo" />

    I can't get the value in the XSLT file:

    <xsl:value-of select="/macro/someparameter" />

    Would be great if this was possible

    Regards,
    Magnus

  • Rich Green 2246 posts 4008 karma points
    Sep 06, 2011 @ 15:46
    Rich Green
    0

    Hey Magnus,

    You grab it like this

    <xsl:param name="currentPage"/>

    <xsl:variable name="source" select="/macro/foo"/>

    <xsl:template match="/">
    <xsl:value-of select="$source"/>
    <xsl:template>

    Rich

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies