Created
April 28, 2011 19:15
-
-
Save greystate/947083 to your computer and use it in GitHub Desktop.
Code listings for some Behind The Scenes info
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:template match="snippet//@*[name() = substring-after(../@hi:lite, '@')]"> | |
| <xsl:text> </xsl:text> | |
| <span class="hilite attr"> | |
| <xsl:value-of select="concat(name(), '="', ., '"')" /> | |
| </span> | |
| </xsl:template> |
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
| <snippet language="XSLT"> | |
| <xsl:template match="movie"> | |
| <p class="odd" hi:lite="@class"> | |
| <hi:lite><xsl:if test="position() mod 2 = 0"> | |
| <xsl:attribute name="class">even</xsl:attribute> | |
| </xsl:if></hi:lite> | |
| <!-- do stuff --> | |
| </p> | |
| </xsl:template> | |
| </snippet> |
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:template match="@hi:*" priority="2" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment