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

Please Sign in or register to post replies

Write your reply to:

Draft