Processing some texts with FO

The Script

Here you can download the st-script: Download st.tar.gz (version 0.23).

The archive contains the script st.xsl and the directory stemplates. Both has to bee in the same directory, so that st.xsl can find the templates in stemplates.

Please notice: from version 0.1 to 0.2, the biggest change was the turnaround from p- and content-tags. A p-tag in version 0.1 is now a content-tag in 0.2, and a content tag in 0.1 is now a p tag!

For a complete description and how to use it, please take a look at the manual. Here's just a quick-start:

Create your text as XML-file in the described form. A good idea should be to use QuickStartTemplate.xml. This is an example file which contains no content. Then translate the XML-file with the use of st.xsl into a FO-file. The FO-file can then with a FOP-processor translated into PDF, PostScript or whatever.

If you use the Apache FOP - and this is highly recommended! - you don't need any separate software because the Apache FOP has everything on board. Just make sure that Apache FOP works and then use the fop - executable in the root-directory of FOP with this arguments:

fop -xml YourXMLFile.xml -xsl st.xsl -pdf YourPDF.pdf

by Thomas Zastrow