Document Generator uses XSL:FO to produce PDF files from XML document.
The XSL:FO processor is Apache's FOP currently version 0.93.
In a drive not to overcomplicate things with documents, we have chosen a simplistic architecture. Simply, the product tells the document generator, via its definition, which product it is and the style required. The process adds the only other piece of information which the type of document.
The rendering process it presented with a single XML document and a single XML Formating Objects Style-Sheet (XSL:FO). This then does two tasks:
- Produce an FO (Formating Objects) marked up document
- Renders it into the required presentation format. We have chosen at this point to only offer PDF as the original XML is stored in the Database. But Apache FOP can support other formats which may be made available if requested and time allows.