Someone else already wrote a nice and short tutorial :
http://www.sagehill.net/docbookxsl/InstallingAnFO.html This gives you more than enough information about how to get
started with FOP. When you've read this one page tutorial and all you've downloaded all the necessary jars.
The next step must be taken : download docbook :
http://prdownloads.sourceforge.net/docbook/docbook-xsl-1.66.1.zip?download unzip it somewhere and remember that /fo/docbook.xsl is the most interesting file to remember.
When you're done write some run.bat that will do all the hard work for you. While you can drink, relax or sleep a little bit more than you're used to do. When you're a linux adapt, just rewrite the following run.bat file that I've written :
Did you remember the path to docbook.xsl? My path is : ../fo/docbook.xsl
Also just put the jars on your classpath. My jars are in lib/ , for example lib/fop.jar
The last part is writing some docbook file.
Therefore I've written a small docbook file.
So give it a try!
When you're done and succesful, your almost done.
Because this is just a bat file processing some docbook file.
But that is not a real life example.
The
java code that can do the job is :
Well and when you did understand every part of it.
And you've realized that the performance of the code isn't very good and you can rewrite it in a nice way.
Start reading a quick reference :
http://www.csis.gvsu.edu/~adams/XML/docbook_quickref.html Or start reading :
http://www.sagehill.net/book-description.html Welcome to the real world ;-)
[ September 30, 2004: Message edited by: Arnold Reuser ]