File: remove-namespaces.xsl

package info (click to toggle)
rabbitmq-server 3.3.5-1.1%2Bdeb8u1
  • links: PTS
  • area: main
  • in suites: jessie
  • size: 12,024 kB
  • ctags: 18,432
  • sloc: erlang: 78,203; python: 3,187; xml: 2,843; makefile: 903; sh: 831; java: 660; perl: 64; ruby: 63
file content (18 lines) | stat: -rw-r--r-- 612 bytes parent folder | download | duplicates (4)
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="">
      <xsl:apply-templates select="@*|node()"/>
    </xsl:element>
  </xsl:template>

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