summaryrefslogtreecommitdiff
path: root/docs/remove-namespaces.xsl
diff options
context:
space:
mode:
authorDavid Wragg <dpw@lshift.net>2010-04-15 17:20:57 +0100
committerDavid Wragg <dpw@lshift.net>2010-04-15 17:20:57 +0100
commit369fdd03cdc8225ecbaa562aec975b489af015e0 (patch)
tree451f80322dd892926d4a006154522cbc9caef017 /docs/remove-namespaces.xsl
parent52bc28f38f5a60c4bfd4570690bd1aed2e2c2c75 (diff)
parent5c5c868ba1e4e1f64cda44ec5d5b6e51241f0964 (diff)
downloadrabbitmq-server-git-369fdd03cdc8225ecbaa562aec975b489af015e0.tar.gz
Merge from default
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>