Next / Previous / Contents / Shipman's homepage

8. class FlowTree: The entire document

This class represents a complete XSL-FO document. See Section 4.1, “The FlowTree class”.

fohelpers.py
# - - - - -   c l a s s   F l o w T r e e

class FlowTree(object):
    '''Represents an XSL-FO document.

      Exports:
        FlowTree(): [ return a new, empty FlowTree ]
        .doc:       [ the document as an et.ElementTree ]
        .root:      [ the document root as an et.Element ]
        .masters:
          [ the layout-master-set as an et.Element ]
        .write(outFile):
          [ outFile is a writeable file-like object ->
              outFile  +:=  self as XML ]
    '''