Posted on 2006-06-16
rather than using:
<xsl:when test="position() mod 2 = 0">
<xsl:when test="position() mod 2 = 1">
...for color-changing line layout, I'll have to increment a local variable and then to test for...
I have a for-each loop and want to change line color from one to the other line, but cannot use above method since there may be some gaps in between (line 1, 5, 8, 10 etc.). So I' d like to use a variable.
Any way to do that:
MOD on i