Copied to clipboard

Flag this post as spam?

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


  • Paul 55 posts 76 karma points
    Nov 14, 2011 @ 01:58
    Paul
    0

    Need help with parsing and concatenating array values in xslt

    I have the following

    <xsl:variable name="Categories">
      <Category Item="A" />
      <Category Item="B" />
      <Category Item="C" />
      <Category Item="D" />
      <Category Item="D" />
    </xsl:variable>

     

    I will like to use it in the following by concatenating the curent category in the for-each loop to an attribute in order to

    get the value of that attribute

              <xsl:for-each select="Categories">
                
                <tr class="odd">
                  <td align="left" style="height:48px;">
                    <xsl:value-of select="umbraco.library:ReplaceLineBreaks($currentPage/* [@alias = concat('Dept', @Item)])" disable-output-escaping="yes"/>
                   </td>

    ....

    </tr>

    </xsl:for-each>

    ...


    The issue I am seeing is it is not even transversing the loop

     

    Please help

  • 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