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: Re: [docbook-apps] bibliography target file problem

It's a bug (actually an omission).  Add these two templates to your
customization layer as a workaround for now. I'll check these into the
source when I get a chance.

<xsl:template match="bibliography|bibliodiv" mode="olink.mode">
  <xsl:call-template name="div"/>

<xsl:template match="biblioentry|bibliomixed" mode="olink.mode">
  <xsl:call-template name="obj"/>

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Yan Bilik" <yan.bilik@wanadoomaps.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, March 10, 2004 6:19 AM
Subject: [docbook-apps] 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
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=""

And of course, <olink>s are not solved (eg: <olink targetdoc="bib"
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"
<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=""
  <ttl>Three-part standard for coding the names of countries ...</ttl>
    <span xmlns="http://www.w3.org/1999/xhtml"; class="abbrev">ISO
As you can see, there is several <obj> tags, but no unique root xml tag, as
it should be (?).

To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit

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