Skip to main content


developerWorks  >  XML  >

XSL-FO advanced techniques

developerWorks

Level: Intermediate

Doug Tidwell (dtidwell@us.ibm.com), developerWorks Cyber Evangelist, IBM

11 Feb 2003

Register now or sign in using your IBM ID and password.

This intermediate-level tutorial shows advanced techniques for working with XSL Formatting Objects (XSL-FO) for formatting data, such as handling lists and tables, creating complex documents with multiple layouts, adding repeating elements, and converting HTML elements to formatting objects and thence to PDF documents. Examples include XSLT templates, FO samples, and PDF output files, all processed in Java with the Apache XML Project's Xalan XSLT processor and FOP (Formatting Objects to PDF) tool.

Prerequisites

Although you can use other XSL-FO rendering engines, this tutorial is written for the Apache XML Project's FOP (Formatting Objects to PDF) translator. The examples in this tutorial work with FOP Version 0.20.4, which was released on July 5, 2002. If you try them with other versions of FOP, they may or may not work. The XSL-FO spec became an official recommendation of the W3C on 15 October 2001. The FOP tool supports most of the final spec.

The first tutorial in this series is:


System requirements

To go through the exercises in this tutorial, you'll need a Java Developer's Kit (JDK) Version 1.3 or later, as well as the FOP package from the Apache XML Project. You can find the FOP package at xml.apache.org/dist/fop. Download the latest version and unzip it. Once you have the JDK and FOP installed, you need to set the classpath.



Duration

Under two hours


Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed


My developerWorks needs you!

Connect to your technical community