aboutsummaryrefslogtreecommitdiff
path: root/utility
diff options
context:
space:
mode:
Diffstat (limited to 'utility')
-rw-r--r--utility/xhtml.xsl10
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>