Commit 3a1dd3db authored by Fabien Boucaud's avatar Fabien Boucaud

Update html2xhtml3.xsl with the fix for text nodes siblings from ul or ol...

Update html2xhtml3.xsl with the fix for text nodes siblings from ul or ol nodes that were disappearing since the implementation of nested lists.
parent 10787aa8
......@@ -5,9 +5,13 @@
<xsl:output method="xml" indent="yes"/>
<xsl:template match="p[child::ul or child::ol]" priority="1">
<xsl:apply-templates select="./*"></xsl:apply-templates>
<xsl:apply-templates select="./ul"/>
<xsl:apply-templates select="./ol"/>
<p>
<xsl:apply-templates select="./node()[not(self::ul) and not(self::ol)]"/>
</p>
</xsl:template>
<xsl:template match="//ul[parent::ul or parent::ol]" priority="1">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment