OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: bibliography target file problem


I wrote a bibliography docbook file, which contains several biblioentries.
This file should allow three things:
1. other documents use it to generate their own included partial bibliography section
2. the bibliography file will produce a standalone complete XHTML bibliography
3. other documents use the "olinks" mechanism in order to create href to the standalone complete bibliography.

(1) and (2) work well.
In order to allow (3), I have to generate the target data for the bibliography. I use xsltproc (last binaries files) and the docbook stylesheets 1.65.1:
xsltproc --stringparam collect.xref.targets "only"
   --stringparam targets.filename "bib.db"
   /docs/docbook/xsl/xhtml/docbook.xsl bib.xml

Hélas, the resulting target data seems not to be valid. There are no warnings while building it, but when I compile another docbook document with the target database document (which includes, after xinclude replacements, the bibliography target file contents), I get the following warning:
bib.db:4: parser error : Extra content at the end of the document
</obj><obj element="biblioentry" href="#iso3166" number="" targetptr="iso3166">

And of course, <olink>s are not solved (eg: <olink targetdoc="bib" targetptr="iso3166"/>)
Any idea ?

Yan Bilik

Here is the original bib.xml test file:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE bibliography PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN" "http://www.docbook.org/xml/4.3CR3/docbookx.dtd";>
<bibliography id="bib">

<biblioentry id="iso3166">
	<abbrev>ISO 3166</abbrev>
	<title>Three-part standard for coding the names of countries ...</title>

And the corresponding target data:
<obj element="bibliography" href="#bib" number="" targetptr="bib">
</obj><obj element="biblioentry" href="#iso3166" number="" targetptr="iso3166">
  <ttl>Three-part standard for coding the names of countries ...</ttl>
    <span xmlns="http://www.w3.org/1999/xhtml"; class="abbrev">ISO 3166</span>
As you can see, there is several <obj> tags, but no unique root xml tag, as it should be (?).

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]