This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] XInclude: multiple <preface>s


On Mon, Mar 31, 2003 at 10:06:43PM +0200, Michael Wiedmann wrote:
> I try to separate a large <book> into smaller XML file using XInclude.
> That works of course in general but how do I put several <prefaces>s 
> into a separate XML file and XInclude it?
[...]
> If 'preface.xml' contains more than one <preface> (which is IMHO valid
> DocBook), then 
> 
> $ xmllint -xmllint book-master.xml > book.xml
> 
> complains like:
> 
> preface.xml:76: error: Extra content at the end of the document
> <preface id="download">
> ^
> XInclude: could not load preface.xml, and no fallback was found

  preface.xml is not an XML document.

> Any workaround?

  The XIncluded parts must be well formed XML documents. That's
completely indepedant of the DocBook syntax, you don't have the
right to put multiple roots in an XML document, be it XIncluded or not.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard at redhat dot com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]