Re: [Refdb-users] docbook5, getting started
Status: Beta
Brought to you by:
mhoenicka
From: Markus H. <mar...@mh...> - 2012-09-12 14:15:44
|
Tim Arnold <jti...@gm...> 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 limitation. If not I'll adapt the stylesheet to the current DocBook V5 top-level elements. regards, Markus -- Markus Hoenicka http://www.mhoenicka.de AQ score 38 |