Creating a Formatted Document

To process ch14_03.po and create a formatted document, I'll use James Tauber's FOP (Formatting Objects Processor), which has now been donated to the Apache XML Project. (The alphaWorks XML for Java parsers that I've been using for several chapters are based on the Apache XML project's Xerces XML parser.)

Here's how the Apache XML Project describes FOP:

FOP (Formatting Objects Processor) is the world's first print formatter driven by XSL formatting objects and the world's first output independent formatter. It is a Java application that reads a formatting object tree and then renders the resulting pages to a specified output. Output formats currently supported are PDF, PCL, PS, SVG, XML (area tree representation), ...

Get Real World 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.