How to publish a DocBook Book

Questions about XML that are not covered by the other forums should go here.
ManuelS
Posts: 6
Joined: Thu Jun 01, 2017 11:54 am

How to publish a DocBook Book

Post by ManuelS »

Hi,

I created some DocBook (5.1) chapters and now I would like to merge them to a DocBook Book and publish them as a whole.

Kind regards
Radu
Posts: 9046
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to publish a DocBook Book

Post by Radu »

Hi,

With Docbook you can use xi:include to put together a larger publication:

http://www.sagehill.net/docbookxsl/ModularDoc.html

Basically the Docbook 5.1 Book file should look like this:

Code: Select all

<?xml-model href="http://docbook.org/xml/5.1/rng/docbookxi.rng" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="http://docbook.org/xml/5.1/rng/docbook.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<book xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.1">
<info>
<title/>

</info>
<xi:include href="chapter1.xml"/>
<xi:include href="chapter2.xml"/>
.........
</book>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
ManuelS
Posts: 6
Joined: Thu Jun 01, 2017 11:54 am

Re: How to publish a DocBook Book

Post by ManuelS »

Thank you very much Radu!
Post Reply