aboutsummaryrefslogtreecommitdiff
path: root/utility/xhtml.xsl
blob: 7347962c7dc0ca8dd18bfa15dbfef06338d4ae49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
	version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>

<xsl:template match="*" mode="xhtml">
    <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml">
        <xsl:copy-of select="@*"/>
        <xsl:apply-templates select="node()" mode="xhtml"/>
    </xsl:element>
</xsl:template>

<xsl:template match="comment() | processing-instruction()" mode="xhtml">
    <xsl:copy/>
</xsl:template>

</xsl:stylesheet>