View Single Post
  #2 (permalink)  
Old June 5th, 2003, 09:33 AM
pgtips pgtips is offline
Friend of Wrox
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post

try the position() function instead, it reflects the sorted order. I assume you're trying to do something like this:
<xsl:element name="tr">
<xsl:if test="position() mod 2 = 0">
   <xsl:attribute name="class">even</xsl:attribute>

Reply With Quote