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]

[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


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