An indexterm directly below a varlistentry causes a warning like this from FOP:
Page 2: Unresolved ID reference "idp9317436" found.
To reproduce, process the attached example document
xsltproc -o test.fo http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl test.xml
(or also with --param variablelist.as.blocks 1
) and then with fop
:
fop -fo test.fo -pdf test.pdf
Also attached is a proposed fix.
patch
Well, that is not a valid location for an indexterm. The content model of varlistentry allows only term and listitem, so that is why the stylesheet does not handle your file. The stylesheet does not try to compensate for invalid XML, so I don't think the patch should be applied.
Interesting. This is coming from DocBook SGML 4.2, which is happy with that file. But if I run the converted XML file through OpenSP, is complains. The content model for varlistentry looks the same in SGML, so I'm puzzled why it allowed the indexterm elements there. But you're right, this patch is not worth applying.