summaryrefslogtreecommitdiff
path: root/docs/remove-namespaces.xsl
blob: 2b67bf5fac301d122042f939475d9888dbd33ef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?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"
                xmlns="http://www.w3.org/1999/xhtml"
                version='1.0'>

<xsl:output method="xml" />

  <!-- Copy every element through with local name only -->
  <xsl:template match="*">
    <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml">
      <xsl:apply-templates select="@*|node()"/>
    </xsl:element>
  </xsl:template>

  <!-- Copy every attribute through -->
  <xsl:template match="@*"><xsl:copy/></xsl:template>
</xsl:stylesheet>