XSLT Alternating Colors for HTML Table Rows
<xsl:template match="my_repeating_item"> <tr> <xsl:if test="position() mod 2 != 1"> <xsl:attribute name="style">background-color:#dddddd</xsl:attribute> </xsl:if> <xsl:apply-templates/> </tr> <xsl:template>