[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Re: [docbook] Bibliographic references and more
Giannis, I will give test with your test documents (if nobody else does first) and then let you know what I get. In the mean time, please post output from running "xmllint --version" in your environment. Giannis Georgalis <jgeorgal@uoc.gr> writes: > Hello Bob, > > On Sunday 05 December 2004 20:30, Bob Stayton wrote: > > [I'm moving this over to the docbook-apps mailing list, which is where > > such topics should be discussed. The docbook list is for DTD questions.] > > I am sorry. > > > I can't duplicate this error when validating your file with xmllint. I > > don't have xmlto, so perhaps someone who is using xmlto could provide more > > help. > > Actually "xmlto" uses xmllint. For me xmllint produces the same error as > mentioned in the previous e-mail. > > I've put the minimum number of files (that represent the organization of my > document) with minimum file-contents that produces the error (I hope I can > attach a 4KB file). Just unpack it and run "make" to validate it. > > Note: I've included my entities.xml file intact, in case someone finds it > useful. > > Thank you, > Giannis > > previous e-mail for quick reference: > > > > 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.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]