Next / Previous / Contents / Shipman's homepage

12. root()

Most of the functions are very short, consisting of single calls to sox.start() or sox.leaf(). This one uses Section 10.1, “FO_NAMESPACE to define the xmlns attribute of the generated file.

fosox.py
# - - -   r o o t


def root(s):
    '''Generate a root element.

      [ s is a sox.Sox instance ->
          s  +:=  an open root element
          return that element ]
    '''
    return s.start("root", xmlns=FO_NAMESPACE)