[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] algorithm for alternation


Subject: RE: [xsl] algorithm for alternation
From: Jarno.Elovirta@xxxxxxxxx
Date: Wed, 20 Aug 2003 14:38:05 +0300

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



Current Thread