diff --git a/src/main/xslt/modules/functions.xsl b/src/main/xslt/modules/functions.xsl index a7fb6ee7c..2eaa856ad 100644 --- a/src/main/xslt/modules/functions.xsl +++ b/src/main/xslt/modules/functions.xsl @@ -125,9 +125,10 @@ + + select="$list/ancestor-or-self::*[preceding-sibling::db:orderedlist][1] + /preceding-sibling::db:orderedlist[1]"/> diff --git a/src/test/resources/xml/orderedlist.004.xml b/src/test/resources/xml/orderedlist.004.xml index aae4a3a3e..e5fa85e5d 100644 --- a/src/test/resources/xml/orderedlist.004.xml +++ b/src/test/resources/xml/orderedlist.004.xml @@ -30,4 +30,20 @@ Fourth Item + +What about this one (hat tip to Gerrit Imsieke). + + +First item +Second item + + Item 2.a + + Interstitial paragraph. + + Item 2.b + + + +