There are no sections in itemized lists
diff --git a/xslt/pass2.xsl b/xslt/pass2.xsl
index 087fb78..13cd23a 100644
--- a/xslt/pass2.xsl
+++ b/xslt/pass2.xsl
@@ -27,7 +27,7 @@
<xsl:template match="div[not(normalize-space())]" priority="1.0"/>
- <xsl:template match="p[descendant::div|descendant::p]" priority="0.9">
+ <xsl:template match="p[descendant::div|descendant::p and not(ancestor::item)]" priority="0.9">
<div type="section">
<xsl:apply-templates/>
</div>
@@ -51,6 +51,12 @@
</p>
</xsl:template>
- <xsl:template match="p[normalize-space(.) = ' ']"/>
+ <xsl:template match="div[ancestor::item]">
+ <p>
+ <xsl:apply-templates/>
+ </p>
+ </xsl:template>
+
+ <xsl:template match="p[normalize-space(.) = ' ']"/>
</xsl:stylesheet>