This function builds the entire table element.
Section 10.31, “hist.cgi: foTableStart(): Build the table
preamble” builds the
table start tag and its first two child
types: table-column elements defining the
column formats, and the table-header
element that defines the running heads that will also
appear on continuation pages.
Section 10.34, “hist.cgi: foTableBody()” builds the table-body element containing the census report.
# - - - 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)