Copied to clipboard

Flag this post as spam?

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


  • Delete me 45 posts 66 karma points
    Nov 08, 2009 @ 21:40
    Delete me
    0

    Select several data alias

    Hi all

    I have 5 values from data [@alias = 'download_1'], data [@alias = 'download_2'], etc

    I want to output them using "value-of select" or similar, so i don't have to write the same code 5 times. How to do that?

    Thanks,

    /Mathias

  • Chris Houston 535 posts 980 karma points MVP admin c-trib
    Nov 08, 2009 @ 22:21
    Chris Houston
    2

    Hi Mathias,

    This should work for you:

    <xsl:for-each select="$currentPage/data [substring(@alias,1,8) = string('download')] ">
    <!-- This will output each of your download_ values -->
    <xsl:value-of select="."/> <br/>
    </xsl:for-each>

    Cheers,

    Chris

     

  • Delete me 45 posts 66 karma points
    Nov 09, 2009 @ 10:17
    Delete me
    0

    Thanks, just what I needed!

    /Mathias

  • 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