I’ve seen Best tools for working with DocBook XML documents, but my question is slightly different. Which is the currently recommended formatting toolchain – as opposed to editing tool – for XML DocBook?
In Eric Raymond’s ‘The Art of Unix Programming’ from 2003 (an excellent book!), the suggestion is XML-FO (XML Formatting Objects), but I’ve since seen suggestions here that indicated that XML-FO is no longer under development (though I can no longer find that question on StackOverflow, so maybe it was erroneous).
Assume I’m primarily interested in Unix/Linux (including MacOS X), but I wouldn’t automatically ignore Windows-only solutions.
Is Apache’s FOP the best way to go? Are there any alternatives?
I’ve been doing some manual writing with DocBook, under cygwin, to produce One Page HTML, Many Pages HTML, CHM and PDF.
I installed the following:
Edit: In the below code I’m using more than the 2 files. If someone wants a cleaned up version of the scripts and the folder structure, please contact me: guscarreno (squiggly/at) googlemail (period/dot) com
I then use a configure.in:
and a Makefile.in:
to automate the production of the above mentioned file outputs.
I prefer to use a nix approach to the scripting just because the toolset is more easy to find and use, not to mention easier to chain.