Skip to content

Instantly share code, notes, and snippets.

@cheongwy
Created July 3, 2012 08:15
Show Gist options
  • Save cheongwy/3038428 to your computer and use it in GitHub Desktop.
Save cheongwy/3038428 to your computer and use it in GitHub Desktop.
Simple xsl
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version = '1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:param name="myparam">Not set</xsl:param>
<xsl:template match="/root">
<h1>
<xsl:value-of select="content"/>
</h1>
<param><xsl:value-of select="$myparam"/></param>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment