OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]