summaryrefslogtreecommitdiff
path: root/xsl
diff options
context:
space:
mode:
Diffstat (limited to 'xsl')
-rw-r--r--xsl/convert-xhtml-to-html.xsl12
1 files changed, 10 insertions, 2 deletions
diff --git a/xsl/convert-xhtml-to-html.xsl b/xsl/convert-xhtml-to-html.xsl
index 54a651b..67f6363 100644
--- a/xsl/convert-xhtml-to-html.xsl
+++ b/xsl/convert-xhtml-to-html.xsl
@@ -1,11 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
- exclude-result-prefixes="html xlink svg"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:svg="http://www.w3.org/2000/svg">
+ xmlns:svg="http://www.w3.org/2000/svg"
+ exclude-result-prefixes="html xlink svg"
+ >
<xsl:output method="html" indent="yes" encoding="utf-8"
cdata-section-elements="script style"
@@ -13,6 +14,13 @@
doctype-system="about:legacy-compat"
/>
+ <xsl:template match="html:html">
+ <html>
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates />
+ </html>
+ </xsl:template>
+
<xsl:template match="*">
<xsl:copy>
<xsl:copy-of select="@*"/>