I'm pretty happy with DocBook, although initial overclocking (including setting up style sheets) is not so simple. But once everything is done, it is really easy to use.
I am running docbook generation from Ant build.xml through the standard XSLT task. If Maven allows you to invoke the XSLT processor, then everything should be fine.
The only drawback (I found) is the way to manage large books (not to have everything in one huge XML file)
Each chapter is a separate XML file, which, unfortunately, is not a complete DocBook file, since it is included using system objects:
<? xml version = "1.0" encoding = "UTF-8"?>
<! DOCTYPE article PUBLIC "- // OASIS // DTD DocBook XML V4.5 // EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
[
<! ENTITY chapter_1 SYSTEM "chapter_1.xml">
<! ENTITY chapter_1 SYSTEM "chapter_1.xml">
]>
<? xml-stylesheet href = "html.css" type = "text / css"?>
<article lang = "en">
<title> The Manual </title>
& chapter_1;
& chapter_2;
</article>
Then chapter_1.xml looks like this:
<section id = "chapter_1">
....
</>
There may be better solutions, but I did not find them;)
a_horse_with_no_name
source share