<xsl:choose>
<xsl:when test=".[position() mod 2 = 1">
...
<xsl:otherwise>
...
-----Original Message-----
From: Eric Smith [mailto:es(_at_)fruitcom(_dot_)com]
Sent: Wednesday, August 20, 2003 3:57 AM
To: XSL List
Subject: [xsl] algorithm for alternation [faked-from]
Would some generous person please suggest a algorithm to
lazy me for alternation in xsl. I want to do different
things to every alternate node. So first node has
attributes A, second node attributes B, third node
attributes A ... n.
Thanks a lot!
--
Eric Smith
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list