Skip to content

This is the Identity Transformation

by Jason Craft on March 12th, 2005

I like keeping it close so I don’t ever have to hunt for it again.

<!– The Identity Transformation –>
<xsl:stylesheet version=”1.0″ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform”>
<!– Whenever you match any node or any attribute –>
<xsl:template match=”node()|@*”>
<!– Copy the current node –>
<xsl:copy>
<!– Including any attributes it has and any child nodes –>
<xsl:apply-templates select=”@*|node()”/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

from this XSL/Identity page.

From → Uncategorized

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS