Next in thread → Next in month →

Re: [docbook-apps] bibliography target file problem

From
"Cob Rtayton"
Date
2004-03-10T18:09:49+00:00
ID
056901c406cc$d2504ef0$6501a8c0@toshiro
Thread
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>

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

Bob Stayton
Sagehill Enterprises
DocBook Consulting


----- Original Message ----- 
From: "Yan Bilik" <>
To: <>
Sent: Wednesday, March 10, 2004 6:19 AM
Subject: [docbook-apps] bibliography target file problem

Hello,

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幨as, 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

References:
==========
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">
<title>Bibliography</title>

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

And the corresponding target data:
-----------------------
<obj element="bibliography" href="#bib" number="" targetptr="bib">
  <ttl>Bibliography</ttl>
  <xreftext>Bibliography</xreftext>
</obj><obj element="biblioentry" href="#iso3166" number=""
targetptr="iso3166">
  <ttl>Three-part standard for coding the names of countries ...</ttl>
  <xreftext>
    <span xmlns="http://www.w3.org/1999/xhtml" class="abbrev">ISO
3166</span>
  </xreftext>
</obj>
-----------------------
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
, or visit
http://www.oasis-open.org/mlmanage/.
Next in thread → Next in month →