How to publish a DocBook Book

Questions about XML that are not covered by the other forums should go here.
ManuelS
Posts: 6

How to publish a DocBook Book

Mon Jun 12, 2017 10:22 am

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: 5097

Re: How to publish a DocBook Book

Mon Jun 12, 2017 10:33 am

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

Re: How to publish a DocBook Book

Mon Jun 12, 2017 11:36 am

Thank you very much Radu!

Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 4 guests