RE: [xsl] how to increment a variable in a for-each loop

Subject: RE: [xsl] how to increment a variable in a for-each loop
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 23 Jan 2002 22:56:32 -0000
> 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


Current Thread