Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

27 Marking HTML table cells for WAI > 27.3 Using the id/headers method to identify table cells > 27.3.8 Identifying individual table cells by row and column


27.3.8 Identifying individual table cells by row and column

When you use the following settings, Mif2Go automatically generates the WAI id attribute for all row and column headers, and the headers attribute for all individual cells:

[Tables]

;RowIDs and ColIDs set row and col IDs in table header cells

; and the matching headers attribute in table body cells.

; ColIDs = No (to not use), or Yes

; adds id=colN to first cell in header row of each column,

; adds headers=colN to each cell below in the same column(s).

ColIDs=No

; ColHead is often seen in examples as "header", but this is

; not essential; it can be any useful identifier:

ColHead=col

; RowIDs = No (to not use), or Yes

; if ColIDs are used, does not affect all the header rows.

; adds id=rowN attribute to the first cell of each body row,

; adds headers=rowN to each following cell in that row.

RowIDs=No

; RowHead is usually row, but again could be anything:

RowHead=row

You can override each of the *IDs settings in the [TableAccess] section for selected tables by specifying the same setting, prefixed with No, as a property; see §27.4 Overriding default table-cell settings.

Column and row identifiers

The values you specify for ColHead and RowHead are the names Mif2Go uses for column and row identifiers. For example, if you specify ColHead=name, every cell in column N gets attribute id="nameN". If you do not specify values for ColHead and RowHead, Mif2Go uses the defaults: col and row, respectively.

Columns

When you specify ColIDs=Yes, Mif2Go generates the following identifiers for each column:

[spacer]

id="colN"

for the first (top left) header cell in column n

headers="colN"

for each body cell in column n

Mif2Go interprets straddled column-header cells as applying to all the body cells under them. For example, if the header cell for column 3 also straddles columns 4 and 5, Mif2Go generates headers="col3" for the body cells in columns 3, 4, and 5.

Rows

When you specify RowIDs=Yes, Mif2Go generates the following identifiers for each row:

[spacer]

id="rowN"

for the first (top left) cell in row n that does not already contain an id attribute (such as id="col1" in the first header row)

headers="rowN"

for each body cell in row n to the right of the id=rown cell



27 Marking HTML table cells for WAI > 27.3 Using the id/headers method to identify table cells > 27.3.8 Identifying individual table cells by row and column