Created
September 21, 2011 17:51
-
-
Save ethangardner/1232790 to your computer and use it in GitHub Desktop.
Applies an alternate class to even numbered results in XSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:if test="position() mod 2 != 1"> | |
<xsl:attribute name="class">alt</xsl:attribute> | |
</xsl:if> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment