summaryrefslogtreecommitdiff
path: root/docs/remove-namespaces.xsl
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2010-04-07 14:49:54 +0100
committerMatthew Sackman <matthew@lshift.net>2010-04-07 14:49:54 +0100
commit87ab69f95a5e1ad5c84bcb7dbed84c798f1cb3c4 (patch)
tree767b1d1bcae44b5edb8669ca11f798935196fe59 /docs/remove-namespaces.xsl
parent4cc02485583ba5104de6b34eee8c6f4ab83f2eaf (diff)
parent81fa43bd8070a377c5bb0efce9f8bc63864f6b8e (diff)
downloadrabbitmq-server-git-87ab69f95a5e1ad5c84bcb7dbed84c798f1cb3c4.tar.gz
Merging default into bug 22500
Diffstat (limited to 'docs/remove-namespaces.xsl')
-rw-r--r--docs/remove-namespaces.xsl17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/remove-namespaces.xsl b/docs/remove-namespaces.xsl
new file mode 100644
index 0000000000..58a1e826d2
--- /dev/null
+++ b/docs/remove-namespaces.xsl
@@ -0,0 +1,17 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:doc="http://www.rabbitmq.com/namespaces/ad-hoc/doc"
+ version='1.0'>
+
+<xsl:output method="xml" />
+
+ <!-- Copy every element through with local name only -->
+ <xsl:template match="*">
+ <xsl:element name="{local-name()}">
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:element>
+ </xsl:template>
+
+ <!-- Copy every attribute through -->
+ <xsl:template match="@*"><xsl:copy/></xsl:template>
+</xsl:stylesheet>