Copied to clipboard

Flag this post as spam?

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


  • Damiaan 442 posts 1302 karma points MVP 6x 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? 

     

Please Sign in or register to post replies

Write your reply to:

Draft