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
...@@ -6,7 +6,11 @@ ...@@ -6,7 +6,11 @@
<xsl:template match="p[child::ul or child::ol]" priority="1"> <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>
......
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