Skip to content

Commit

Permalink
Utility: identity transform.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jun 21, 2010
1 parent 1c2cac2 commit 2680378
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions build/identity.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
identity.xsl
Identity transform.
Author: Ian A. Young <ian@iay.org.uk>
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!--By default, copy text blocks, comments and attributes unchanged.-->
<xsl:template match="text()|comment()|@*">
<xsl:copy/>
</xsl:template>

<!--By default, copy all elements from the input to the output, along with their attributes and contents.-->
<xsl:template match="*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>

</xsl:stylesheet>

0 comments on commit 2680378

Please sign in to comment.