Creating a Formatted Document

To process planets.fo and create a formatted document, I'll use the only XSL formatting object processor currently available as far as I know: James Tauber's FOP (formatting objects processor), which has now been donated to the Apache XML Project. (The alphaWorks XML for Java parsers I've been using for several chapters is based on the Apache XML Project's Xerces XML parser.)

Here's how the Apache XML Project describes FOP:

FOP is the world's first print formatter driven by XSL formatting objects. It is a Java application that reads a formatting object tree and then turns it into a PDF document. The formatting object tree can be in the form of an XML document (output by an XSLT engine like XT or Xalan) or can be ...

Get Inside XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.