Re: [xsl] Increment a Value in xsl:for-each

Subject: Re: [xsl] Increment a Value in xsl:for-each
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 8 Mar 2001 22:41:42 GMT
> Can you please tell me how can I increment iCount in for-each loop.

You can't change th evalue of a variable once it is bound.
Just select the elements for which position() mod 2 = 1 is true.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

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


Current Thread