Re: docbook5, getting started
Markus Hoenicka <[email protected]> Wed, 12 Sep 2012 16:15:33 +0200
| Newsgroups | gmane.text.refdb.general |
|---|---|
| Message-ID | <[email protected]> |
Tim Arnold <[email protected]> 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/