This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: [docbook] Bibliographic references and more
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: <jgeorgal at uoc dot gr>, <docbook at lists dot oasis-open dot org>
- Date: Fri, 3 Dec 2004 14:53:31 -0800
- Subject: Re: [docbook] Bibliographic references and more
- References: <200412031520.39011.jgeorgal@uoc.gr>
It looks what what you are trying to do should work.
Perhaps you could also show us what your files named "contents.xml" and
"common/entites.xml" contain.
Regarding setting the 'bibliography.numbered' parameter, you don't need to
edit the xsl files in your distribution. You want to create a customization
layer. See:
http://www.sagehill.net/docbookxsl/Parameters.html
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Giannis Georgalis" <jgeorgal@uoc.gr>
To: <docbook@lists.oasis-open.org>
Sent: Friday, December 03, 2004 5:20 AM
Subject: [docbook] Bibliographic references and more
> Hello,
> I'm a new user of docbook (and xml in general).
>
> I use the "xsltproc" (from debian unstable) toolchain and specifically the
> "xmlto" (from debian unstable xmlto package) command to compile my
document
> in html format.
>
> I have the following questions:
>
> 1) How can I make a validating document that references a bibliographic
> reference that resides at the end of the document (the very last page
> actually) ?
>
> My root xml document looks like this:
>
> ##################################################
> <?xml version="1.0" encoding="utf-8"?>
>
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
> "/usr/share/xml/docbook/schema/dtd/4.2/docbookx.dtd" [
>
> <!-- source in the article content and other entities -->
> <!ENTITY % entities SYSTEM "common/entities.xml">
> %entities;
> <!ENTITY % contents SYSTEM "contents.xml">
> %contents;
> ]>
>
> <article>
> <articleinfo>
> ...
> <abstract>
> <para>
> <xref linkend="foo"/> ...
> </para>
> </abstract>
> </articleinfo>
>
> §ion01;
> §ion02;
> §ion03;
>
> &references;
> </article>
> ##################################################
>
> where id "foo" is defined in the file referenced by the "references"
entity
> which looks like this:
>
> ##################################################
> <bibliography> <title>References</title>
> <biblioentry id="foo">
> ...
> </biblioentry>
> ....
> </bibliography>
> ##################################################
>
> The problem is that when I try to compile the xml with the command: "xmlto
> html-nochunks report.xml", I get the error:
>
> element xref: validity error : IDREF attribute linkend references an
unknown
> ID "foo"
>
> If I, however, shut down the validation and thus run the command: "xmlto
> --skip-validation html-nochunks report.xml", everything works fine. (I
don't
> get the [..] however for the '[Abbrev]').
>
>
> 2) Skimming through the XML spec. I understood that I should write at the
> beginning of each section's xml document the directive:
> <?xml version="1.0" encoding="utf-8" standalone="no"?>
>
> ...however this is reported as a parse error, with my only option being
the
> directive:
> <?xml version="1.0" encoding="utf-8"?>
> What am I doing wrong ?
>
>
> 3) from http://www.sagehill.net/docbookxsl/NumberedBiblio.html I read:
> " If you set the stylesheet parameter bibliography.numbered to nonzero,
then
> the stylesheet will automatically number the entries in your
bibliography."
>
> Should I manually edit the xsl file ??? which xsl file should I edit to
set
> the parameter ???
>
> Thank you very much,
> Giannis
>
>