This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: how to increment a variable in a for-each loop
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 23 Jan 2002 22:56:32 -0000
- Subject: RE: [xsl] how to increment a variable in a for-each loop
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I wonder if any one knows how to increment a variable
> value in a for-each loop just like in other
> programming languages. I need to check this value so
> that I can change the background color for every other
> column in a table.
You don't need a variable; use the position() function which increments
automatically.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list