Next / Previous / Contents / Shipman's homepage

4.1. The FlowTree class

This constructor creates an empty XSL-FO document:

FlowTree()

There are no optional arguments. The instance has these exported attributes:

.root

The root node of the document as an et.Element instance, where et is the lxml version of the standard Python ElementTree XML interface.

.masters

The layout-master-set node that contains the descriptions of the various page layouts and rules governing when to use them.

.doc

The entire document as an et.ElementTree instance.

The FlowTree class has one method:

.write(outFile)

Serialize the document as XML and write it to the given outFile.