diff options
author | Adrian Kummerlaender | 2019-04-28 15:04:52 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2019-04-28 15:04:52 +0200 |
commit | 89619385a27b6687a2786970dafdb5d9361f4e48 (patch) | |
tree | 477b9a7a19b932207d7fe28288848d95a0522d04 | |
parent | 6659377fade3d1d6105e47c11d21b0930277159f (diff) | |
download | Overview-89619385a27b6687a2786970dafdb5d9361f4e48.tar Overview-89619385a27b6687a2786970dafdb5d9361f4e48.tar.gz Overview-89619385a27b6687a2786970dafdb5d9361f4e48.tar.bz2 Overview-89619385a27b6687a2786970dafdb5d9361f4e48.tar.lz Overview-89619385a27b6687a2786970dafdb5d9361f4e48.tar.xz Overview-89619385a27b6687a2786970dafdb5d9361f4e48.tar.zst Overview-89619385a27b6687a2786970dafdb5d9361f4e48.zip |
Fix XHTML output
-rw-r--r-- | utility/xhtml.xsl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/utility/xhtml.xsl b/utility/xhtml.xsl index 7347962..7b61466 100644 --- a/utility/xhtml.xsl +++ b/utility/xhtml.xsl @@ -11,6 +11,16 @@ </xsl:element> </xsl:template> +<xsl:template match="span" 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:if test="not(node())"> + <xsl:comment></xsl:comment> + </xsl:if> + </xsl:element> +</xsl:template> + <xsl:template match="comment() | processing-instruction()" mode="xhtml"> <xsl:copy/> </xsl:template> |