#### 36.3.8 Identifying individual table cells by row and column

When you use the following settings, DITA2Go 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 §36.4 Overriding default table-cell settings.

Column and row identifiers

The values you specify for ColHead and RowHead are the names DITA2Go 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, DITA2Go uses the defaults: col and row, respectively.

Columns

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

id="colN" | for the first (top left) header cell in column n
headers="colN" | for each body cell in column n

DITA2Go 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, DITA2Go generates headers="col3" for the body cells in columns 3, 4, and 5.

Rows

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

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

Previous Topic: 36.3.7 Column-span and row-span extent

Next Topic: 36.3.9 Column and row extent

Parent Topic: 36.3 Using the id/headers method to identify table cells

Sibling Topics:

36.3.1 Choosing an id/headers level

36.3.2 Specifying id/headers attributes for table cells

36.3.3 Grouping header cells for identification

36.3.4 Column-group and row-group extent

36.3.5 Choosing a different row-group method

36.3.6 Using span attributes to identify rows and columns

36.3.7 Column-span and row-span extent

36.3.9 Column and row extent

36.3.10 Using span IDs with row or column IDs

Table of Contents • Index