xsl-list
[Top] [All Lists]

RE: algorithm for alternation

2003-08-20 04:38:05
FAQ,

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.

xsl:when with test "position() mod 2 = 1" and xsl:otherwise.

Cheers,

Jarno - Lifeforce: Further (VNV Nation cover)

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>