Copied to clipboard

Flag this post as spam?

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


  • Barry 99 posts 187 karma points
    Oct 08, 2009 @ 19:36
    Barry
    0

    XSLT OR

    I have this

    position() mod 2 != 0  as a test condition. I want to extend it and say "OR position() mod 2 =0 AND position() = count()"

    How is that done?

  • Barry 99 posts 187 karma points
    Oct 08, 2009 @ 20:26
    Barry
    0

    Sorted it

    <xsl:if test="position() mod 2 != 1 or (position() mod 2 = 1 and position() = last()) ">

     

    Works just fine

  • 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