Copied to clipboard

Flag this post as spam?

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


  • dominik 711 posts 733 karma points
    Mar 28, 2011 @ 09:56
    dominik
    0

    Repeatable Content from root directory

    Hi,

    Ive got the following XSLT script

    <div class="tags">
      <xsl:if test="$currentPage/tagCloudItems/items/item ">
        <xsl:for-each select="$currentPage/tagCloudItems/items/item">
          <h3>
            <a href="#"><xsl:value-of select="./data [@alias = 'Tag']" disable-output-escaping="yes" /></a>
          </h3>
          <div>
            <xsl:value-of select="./data [@alias = 'Size']" disable-output-escaping="yes" />
          </div>
       </xsl:for-each>
      </xsl:if>
    </div>


    I set the Tag information on the Root of my site and the property alias is "tagCloudItems". How can i get the recursive items? I tryed to add "ancestor-or-self::*" but this doesnt work.

    Can someone help?

  • dominik 711 posts 733 karma points
    Mar 28, 2011 @ 10:56
    dominik
    0

    ok i got it,

    just added: $currentPage/ancestor-or-self::* [@level = 1]

Please Sign in or register to post replies

Write your reply to:

Draft