diff options
Diffstat (limited to 'utility/remove_namespace.xsl')
-rw-r--r-- | utility/remove_namespace.xsl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/utility/remove_namespace.xsl b/utility/remove_namespace.xsl new file mode 100644 index 0000000..6775901 --- /dev/null +++ b/utility/remove_namespace.xsl @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" +> + +<xsl:template match="*" mode="remove_namespace"> + <xsl:element name="{local-name()}"> + <xsl:copy-of select="@*"/> + <xsl:apply-templates select="node()" mode="remove_namespace"/> + </xsl:element> +</xsl:template> + +<xsl:template match="comment() | processing-instruction()" mode="remove_namespace"> + <xsl:copy/> +</xsl:template> + +</xsl:stylesheet> |