Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 32 lines (26 sloc) 0.954 kB
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="node_modules/grunt-jquery-content/tasks/jquery-xml/entries2html-base.xsl"/>
<xsl:import href="notes.xsl"/>
<xsl:variable name="version-category-links" select="true()"/>
<xsl:template name="example-code">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;<xsl:if test="css/text()">
&lt;style&gt;<xsl:copy-of select="css/text()" />&lt;/style&gt;</xsl:if>
&lt;script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt;<xsl:if test="code/@location='head'">
&lt;script&gt;
<xsl:copy-of select="code/text()" />
&lt;/script&gt;
</xsl:if>
&lt;/head&gt;
&lt;body&gt;
<xsl:copy-of select="html/text()" />
<xsl:choose>
<xsl:when test="code/@location='head'"></xsl:when>
<xsl:otherwise>
&lt;script&gt;<xsl:copy-of select="code/text()" />&lt;/script&gt;</xsl:otherwise>
</xsl:choose>
&lt;/body&gt;
&lt;/html&gt;
</xsl:template>
</xsl:stylesheet>
Jump to Line
Something went wrong with that request. Please try again.