This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
XSL-PDF: Wrong Numbering of References to Bibliography
- From: Stephan Wiesner <stephan at stephan-wiesner dot de>
- To: "'Robert P. J. Day'" <rpjday at mindspring dot com>,'docbook apps list' <docbook-apps at lists dot oasis-open dot org>
- Date: Sun, 03 Nov 2002 07:01:48 +0100
- Subject: DOCBOOK-APPS: XSL-PDF: Wrong Numbering of References to Bibliography
Good Morning list,
Using the latest XSL style, the numbering for the bibliography files is
wrong.
There are three problems with this:
- First: When I have more than one <bibliodiv>, the numbering starts
with one for every of these. This means for the PDF version, that a
reference in the text is displayed as for example: [DocBook][1], but
there are more than one entrie numbered [1].
- Second: The number is wrong. I have attached a sample file. In it
there is a <blockquote>, with the attribution pointing to a bookentry.
The generated number is two, but that is the wrong book, it should have
been 1. When I have more books, the number might even be bigger than the
number of books and thus pointing to nothing at all.
- Third: This is part of my bookentry block:
<biblioentry id="biblioDocBook">
<abbrev>DocBook</abbrev>
<title id="biblioDocBookT">DocBook: The Definitive Guide</title>
When I reference this with:
<attribution><xref linkend="biblioDocBook"/></attribution>
The display is "[DocBook][1]", which I consider correct (see above).
If however, I reference it like this:
<attribution><xref linkend="biblioDocBookT"/></attribution>
[DocBook][]
In this case, I would want it to look like this: [DocBook: The
Definitive Guide][1],
as I referenced the title explicitly.
Stephan Wiesner
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE book SYSTEM "file:///C:/x/saxon/dtd/docbookx.dtd">
<?xml-stylesheet type="text/xsl" href="C:/x/docbookxsl/old/html/docbook.xsl" ?>
<!--DOCTYPE book SYSTEM "C:/x/docbookxsl/docbook-xsl-1.51.1/docbookx.dtd"-->
<!--?xml-stylesheet type="text/xsl" href="C:/x/docbookxsl/docbook-xsl-1.51.1/html/docbook.xsl" ?-->
<book lang="en">
<title>Micropayment</title>
<chapter id="chap_Print">
<title>Print On Demand</title>
<section id="sec_PrintDefin">
<title>Definition</title>
<para>Print on demand (POD) is a relatively new technology that allows a
complete book to be printed and bound in a matter of minutes.
This makes it easy and cost-effective to produce books in small lots, rather
than in print runs of several thousand. </para>
<blockquote>
<title>Read fast and save</title>
<attribution><xref linkend="biblioDocBook"/></attribution>
<para> Many critics of e-books have complained that high-priced electronic files that cannot
be lent or borrowed or put on a shelf don’t offer the consumer enough.</para>
<para>Now RosettaBooks is lowering the price to a buck and offering an e-book
that only lasts for 10 hours.</para>
</blockquote>
</section>
</chapter>
<bibliography>
<title>Bibliography</title>
<bibliodiv><title>Books</title>
<biblioentry id="biblioDocBook">
<abbrev>DocBook</abbrev>
<title id="biblioDocBookT">DocBook: The Definitive Guide</title>
<author><firstname>Norman</firstname><surname>Walsh</surname></author>
<author><firstname>Leonard</firstname><surname>Muellner</surname></author>
<isbn>156592-580-7</isbn>
<publisher>
<publishername>O'Reilly and Associates</publishername>
<address>
<country>USA</country>
</address>
</publisher>
</biblioentry>
<biblioentry id="biblio_GoF">
<abbrev>GoF</abbrev>
<title>Design Patterns - Elements of Reusable Object-Oriented Software</title>
<author><surname>Gamma</surname></author>
<author><surname>Helm</surname></author>
<author><surname>Johnson</surname></author>
<author><surname>Vlissides</surname></author>
<publisher>
<publishername>Addison-Wesley</publishername>
<address>
<country>USA</country>
</address>
</publisher>
</biblioentry>
</bibliodiv>
<bibliodiv>
<title>Weblinks</title>
<biblioentry>
<abbrev>bibSunXML</abbrev>
<biblioset relation='webl'>
<title>The Java API for Xml Processing (JAXP) Tutorial</title>
<bibliosource id="linkSunXML">
<ulink url="http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/index.html">
http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/index.html</ulink></bibliosource>
</biblioset>
</biblioentry>
<biblioentry>
<abbrev>SW</abbrev>
<title>My Own Home Page</title>
<bibliosource id="link_SW">
<ulink url="http://www.stephanwiesner.de/java">
http://www.stephanwiesner.de/java</ulink>
</bibliosource>
</biblioentry>
</bibliodiv>
</bibliography>
</book>