FOP is an XSL formatter and renderer that works with an XSLT transformer to produce PDF (and eventually other output formats) from XML documents.

To get an overview of the FOP process, begin with the class org.apache.fop.apps.Driver.