Page 1 of 1

How to publish a DocBook Book

Posted: Mon Jun 12, 2017 10:22 am
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

Re: How to publish a DocBook Book

Posted: Mon Jun 12, 2017 10:33 am
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

Re: How to publish a DocBook Book

Posted: Mon Jun 12, 2017 11:36 am
by ManuelS
Thank you very much Radu!