12 Sep 2012 16:15
Re: docbook5, getting started
Markus Hoenicka <markus.hoenicka <at> mhoenicka.de>
2012-09-12 14:15:33 GMT
2012-09-12 14:15:33 GMT
Tim Arnold <jtim.arnold <at> gmail.com> was heard to say:
> As for the problem with the chapter vs book root element:
> When I have a source xml file (test1_full.xml) with chapter as the
> root and citations like this:
> <citation role="REFDB"><xref linkend="IDbart_m66-X"/></citation>.
>
> runbib gives me an error:
> -----------------------------------
> runbib -d saslatexbib -S Chicago -t db50x test1_full.xml
> Variable $SGML_CATALOG_FILES not set
> Please enter your password:
> Parse error at line 1:
> no element found
> error
> -----------------------------------
>
I see. This is caused by a limitation of
/usr/local/share/refdb/xsl/citations.xsl. This stylesheet is used to
extract the citations from the source document and write them into the
foo.id.xml file. For reasons that I don't quite understand right now,
the script limits itself to processing book and article elements. As a
short term fix you could simply extend the regexp in line 39 like this
(untested!):
<xsl:template match="article|d:article|chapter|d:chapter">
I'll try to figure out if there was some obscure reason for this
(Continue reading)

RSS Feed