File: XHTML.xsl

package info (click to toggle)
jaxe 3.5-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 38,816 kB
  • ctags: 4,479
  • sloc: java: 40,767; xml: 20,913; sh: 87; makefile: 51
file content (20 lines) | stat: -rw-r--r-- 687 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding='ISO-8859-1' ?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="html" indent="no"
              doctype-public="-//W3C//DTD HTML 4.01//EN"
              doctype-system="http://www.w3.org/TR/html4/strict.dtd"
              encoding="ISO-8859-1"/>

  <xsl:template match="*">
    <xsl:element name="{local-name()}" namespace="">
      <xsl:for-each select="@*">
        <xsl:if test="namespace-uri(.)='' or namespace-uri(.)=namespace-uri(..)">
          <xsl:copy-of select="."/>
        </xsl:if>
      </xsl:for-each>
      <xsl:apply-templates/>
    </xsl:element>
  </xsl:template>

</xsl:stylesheet>