Skip to content

Instantly share code, notes, and snippets.

@edegula
Created April 29, 2015 03:30
Show Gist options
  • Save edegula/78c41eef059f93bba7d0 to your computer and use it in GitHub Desktop.
Save edegula/78c41eef059f93bba7d0 to your computer and use it in GitHub Desktop.
XSLT Template - Copy the entire document
<!--This identity rule when selected for execution matches all attributes (@*) and elements (node()) in the source xml
It results in a copy the entire document 'as-is' -->
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment