summaryrefslogtreecommitdiff
path: root/tools/xml-to-html.xsl
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2021-01-09 08:41:44 +0300
committerdefanor <defanor@uberspace.net>2021-01-09 08:41:44 +0300
commit3fd41ca76d84c96b22e58666eefbe863b81b4f89 (patch)
tree148835d014c5b7c7da995e43d190afada5df972d /tools/xml-to-html.xsl
parent0e777ddcf2e9982f0092f964d76c8e4b79410428 (diff)
Copy <body/> attributes
Diffstat (limited to 'tools/xml-to-html.xsl')
-rw-r--r--tools/xml-to-html.xsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/xml-to-html.xsl b/tools/xml-to-html.xsl
index c895bf2..f6aac5b 100644
--- a/tools/xml-to-html.xsl
+++ b/tools/xml-to-html.xsl
@@ -73,6 +73,7 @@
<meta name="robots" content="noarchive" />
</head>
<body>
+ <xsl:apply-templates mode="body" select="xhtml:body/@*" />
<xsl:apply-templates mode="body" select="xhtml:body/*" />
<footer>
<xsl:if test="not(//notes) and @created and @modified">
@@ -132,7 +133,7 @@
</xsl:copy>
</xsl:template>
- <xsl:template mode="body" match="node()" priority="0">
+ <xsl:template mode="body" match="@* | node()" priority="0">
<xsl:copy>
<xsl:copy-of select="@*" />
<xsl:apply-templates mode="body" />