Next / Previous / Contents / TCC Help System / NM Tech homepage

10.30. hist.cgi: foTable(): Format the main table

This function builds the entire table element.

hist.cgi
# - - -   f o T a b l e

def foTable(s, cbcHist):
    '''Format the main history table in XSL-FO.
    '''
    #-- 1
    # [ s  +:=  an open table element with its table-column and
    #           table-header children added from cbcHist's
    #           effort information
    #   table  :=  that element ]
    table = foTableStart(s, cbcHist)

    #-- 2
    # [ s  +:=  a table-body element representing cbcHist's
    #           census rows ]
    foTableBody(s, cbcHist)    

    #-- 3
    # [ s  +:=  table, closed ]
    table.end()

    #-- 4
    # [ s  +:=  a colophon ]
    foColophon(s)