File: remove-namespaces.xsl

package info (click to toggle)
rabbitmq-server 1.8.1-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,284 kB
  • ctags: 2,309
  • sloc: erlang: 12,095; xml: 1,605; sh: 648; python: 630; makefile: 243
file content (17 lines) | stat: -rw-r--r-- 546 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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>