Skip to content

Instantly share code, notes, and snippets.

@dwcramer
Last active December 26, 2015 04:08
Show Gist options
  • Save dwcramer/7090470 to your computer and use it in GitHub Desktop.
Save dwcramer/7090470 to your computer and use it in GitHub Desktop.
Simple xslt that does an identity copy but removes one element.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="thingToDiscard"/> <!-- Add a namespace if necessary!!! -->
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment