docbook/xslt20-stylesheets — Issue #6: Failure with itemized lists wrapped in para
Author: maxbg
Created: 2012-02-01 14:41:25+00:00
State: open

problem using SaxonHE9-4-0-2J:

It seems to come from lists being wrapped into paragraphs, which is a very bad practice, but it is allowed by the 5.0 schema, so...

Error on line 71 of xlink.xsl:
XPTY0004: A sequence of more than one item is not allowed as the first argument of
generate-id() (, )
at xsl:apply-templates (file:////.../.../docbook-xslt2-2.0.3/xslt/base/html/chunktemp.xsl#79)
processing /book/chapter[2]

I fixed it by changing line 58 of xlink.xsl:

<!-- Taking only the first para -->
<xsl:variable name="para" select="ancestor::db:para[1]"/>

From there it worked fine.

I noticed that the problem isn't there for saxonhe9-2-1-5j