(The Help System)




The entry element currently being processed


The colspec elements currently in scope


The spanspec elements currently in scope


Whether column separators are currently enabled


Whether column separators are currently enabled


The output column position currently being considered


The actual column number of $entry


How many columns the implicit td currently spans


The string representation of the row spans

CALS tables in DocBook don't need to have entry elements for each column in each row, even when the column is not covered by a row-spanning entry from a previous row. An entry can explicitly specify which column it's in, and any previous unfilled columns are considered blank. Since HTML tables don't have this mechanism, we have to insert blank td elements to fill the gaps.

When db2html.entry detects a blank entry, it will call this template with the approprite parameters. This template then calls itself recursively, each time adjusting the $colpos, $colspan, and $spanstr parameters, until it comes across the last column that needs to be filled. It then outputs a td element with an appropriate colspan attribute.

Finally, this template calls db2html.entry again on $entry. With the values of $colpos and $spanstr suitably adjusted, that template is then able to output the td for the entry element.