Omni Systems, Inc. Mif2Go User's Guide, Version 55

<< Prev | Next >>

> 24 Converting tables to HTML > 24.3 Specifying table structure > 24.3.3 Identifying table headers and footers > 24.3.3.2 Specifying different header and footer counts for selected tables

#### 24.3.3.2 Specifying different header and footer counts for selected tables

You can override the default number of header columns, header rows, or footer rows with [TableAccess] settings; for example:

[TableAccess]

; table ID = method list (overrides default in [Tables]); can

; include HColsN and HRowsN, where N is the number of cols or rows

; to make td -> th (overrides TableHeaderCols and TableHeaderRows),

; and FRowsN to override TableFooterRows.

aa132446=HCols1

aa133564=HCols2 HRows3 FRows2

FormatA=FRows1

These [TableAccess] settings have the following effects:

HCols N | Treats cells in the first N columns (counting from the left) as row headers; tags the cells <th> if [Tables]UseTbHeaderCode=Yes. See §24.3.2.2 Designating table header cells).
HRows N | Treats cells in the first N rows (counting from the top) as column headers; tags the cells <th> if [Tables]UseTbHeaderCode=Yes. See §24.3.2.3 Enumerating table column groups).
FRows N | Treats the last N rows (counting from the bottom) as footer rows; wraps them in a <tfoot>...</tfoot> element if [Tables]HeadFootBodyTags=Yes. See §24.3.2.4 Wrapping table row groups).

You could use these settings to specify the structure of every table in your document. However, if all or most of the tables in your document happen to need HCols1 (for example), it is easier to specify [Tables]TableHeaderCols=1, and use the [TableAccess] settings only for exceptions.

If [Tables]UseTbHeaderCode=No (the default setting), even if you specify HCols N or HRows N, the affected cells are tagged <td> instead of <th>; however, all Mif2Go settings for header cells work just as though the cells were tagged <th>.