This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] XInclude: multiple <preface>s
- From: Michael Wiedmann <mw at miwie dot in-berlin dot de>
- To: DocBook-Apps ML <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 31 Mar 2003 22:06:43 +0200
- Subject: [docbook-apps] XInclude: multiple <preface>s
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?
<book>
<bookinfo>
...
</bookinfo>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="preface.xml" />
<chapter>
...
</chapter>
</book>
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
Any workaround?
Michael
--
mw at miwie dot in-berlin dot de http://www.miwie.org
mw at miwie dot org
---------------------------------------------------------------------
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