Copied to clipboard

Flag this post as spam?

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


  • Damiaan 438 posts 1290 karma points MVP 3x c-trib
    Jun 01, 2011 @ 01:42
    Damiaan
    0

    mimic recusive property from a field

    I am probably not the first, but I'am trying to mimic the recusive property with XSLT.

    I found already this

    <xsl:value-of select="$currentPage/ancestor-or-self::* [@isDoc][string(headerImage)!=''] [position()=last()] /headerImage"/>

    But this give the property from the root.  And that is not what the "recursive" property comes up with.

    e.g. First example.  Here I get from the recursive 1005, but from my xslt 1001

    - 1001
      - -  1005
        - - - [empty]
          - - - - current node

    e.g. First example.  Here I get from the field with recursive option still 1005, but from my xslt 1001

    - 1001
      - -  [empty]
        - - - 1005
          - - - - current node

    What's wrong with my xslt? 

     

  • 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