Index of /guides/xml/examples/xslfo

      Name                    Last modified       Size  Description

[DIR] Parent Directory 31-Oct-2010 18:04 - [   ] fop.bat 08-Dec-2005 22:03 1k [TXT] hello-page-html.xsl 08-Dec-2005 21:30 1k [TXT] hello-page-xslfo.xsl 08-Dec-2005 21:14 2k [   ] hello-page.fo 08-Dec-2005 21:05 1k [   ] hello-page.pdf 08-Dec-2005 21:16 1k [TXT] hello-page.xml 08-Dec-2005 21:19 1k Client side XML [TXT] hello-page.xml.text 08-Dec-2005 21:19 1k Ascii file (View Source with IE ?) [   ] make-fo.csh 08-Dec-2005 21:16 1k

XSL/FO Examples

XSL/FO Examples

Simple XML -> PDF. The trick is to put XSL/FO instructions in the XSLT stylesheet and then give the *.xml and the *.xsl file to a FO processor like Apache FOP. Some more examples and minimal doc may follow. Examples should with Apache FOP 0.20.5. E.g. use the instruction:

java org.apache.fop.apps.Fop -xml input.xml -xsl style-sheet.xsl output.pdf
See also Index of /tecfa/teaching/formcont/webmaster2005/programme and dig around in the directory.

If you run into trouble, translate first into xsl-fo. Have a look at it and try to understand what you did wrong. E.g. if you use saxon:

saxon hello-page.xml hello-page-xslfo.xsl > hello-page.fo


Last modified: Thu Dec 08 21:12:47 Europe de l'Ouest 2005
D.K.S.