Copied to clipboard

Flag this post as spam?

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


  • Kelvin Thursby 16 posts 36 karma points
    Mar 09, 2012 @ 11:56
    Kelvin Thursby
    0

    adding a value from the macro to the template

    Hi,

    I have a macro which will be recursive. The macro starts by getting the values passed in the page

    <xsl:param name="link1" select="/macro/link1"/>
    <xsl:param name="link2" select="/macro/link2"/>

    <xsl:param name="dat1" select="umbraco.library:GetXmlNodeById($link1)"/>
    <xsl:param name="dat2" select="umbraco.library:GetXmlNodeById($link2)"/>

    then a template will be selected

    <xsl:call-template name="DoSlider" /> (more code left out for ease - but it needs to be called like this)

    and from that template i want to call another template recursivly for a list it

    <ul class="touchcarousel-container">
    <xsl:call-template name="SliderTemplate" slide="[$dat1]" />

    <xsl:call-template name="SliderTemplate" slide="[$dat2]" />
    </ul>

    in the other template call something like this

    <xsl:template name="SliderTemplate">
    <xsl:param name="dat" select="$slide"/>

    But it doesn't like the slide="[$dat2]" bit and probably the select="$slide"

    Can anyone help with this.

    Thanks

    Kelvin

  • 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