Yelp

(The Help System)

db2html.entry.implicit

Parameters

$entry

The entry element currently being processed

$colspecs

The colspec elements currently in scope

$spanspecs

The spanspec elements currently in scope

$colsep

Whether column separators are currently enabled

$rowsep

Whether column separators are currently enabled

$colpos

The output column position currently being considered

$colnum

The actual column number of $entry

$colspan

How many columns the implicit td currently spans

$spanstr

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.