#### 36.3.3 Grouping header cells for identification

Use the following settings to specify whether header cells should be grouped. These settings work in concert with ColGroup and RowGroup cells: header cells that are assigned [HtmlStyles] property ColGroup or RowGroup, described in §35.2.2 Using paragraph formats for table-cell attributes; or that contain PI marker type CellGroup, described in §35.2.4 Using PI markers for table-cell attributes.

    [Tables]
    ; ColGroupHead is "group" by default; it is used in the id attrs
    ;  of header cells containing a para format with [HtmlStyles]ColGroup.
    ColGroupHead=group
    ; RowGroupHead is "group" by default; it is used in the id attrs
    ;  of left cells containing a para format with [HtmlStyles]RowGroup.
    ;  If ColGroup is used, first ID numerically follows last ColGroup ID.
    RowGroupHead=group
    ; ColGroupIDs = No (default)
    ;  or Yes (to use id="groupN" in col head cells identified
    ;  as ColGroup via [HtmlStyles] or the CellGroup marker col.)
    ColGroupIDs=No
    ; RowGroupIDs = No (default)
    ;  or Yes (to use id="groupN" in row head cells identified
    ;  as RowGroup via [HtmlStyles] or the CellGroup marker row.)
    RowGroupIDs=No

Column-group and row-group identifiers

The values you specify for ColGroupHead and RowGroupHead are the names DITA2Go uses for column-group and row-group identifiers. For example, if you specify ColGroupHead=gname, every ColGroup cell gets attribute id="gname N". If you do not specify values for ColGroupHead and RowGroupHead, DITA2Go uses the default name, group, for both; and numbers the row groups starting where the column-group numbers end.

Column groups

When you specify ColGroupIDs=Yes, DITA2Go generates the following identifiers:

- id="group N"
  - for each ColGroup cell (header cell that contains either a paragraph designated [HtmlStyles] ColGroup, or a CellGroup PI marker with content col).

  headers="group N"

- for each cell to the right of the id="group N" cell until the next ColGroup cell;
- for each cell below the id="group N" cell;
- for each cell below the headers="group N" cells that are in the id=group n row.

Specifying ColGroupIDs=Yes prevents assignment of a single-column ID to the id="group N" cell, but does not prevent this assignment to the headers=group N cells to the right of the id="group N" cell. See §36.3.8 Identifying individual table cells by row and column for information about specifying IDs for individual columns. See also §36.5.1 Understanding how the ColGroup property works.

Row groups

When you specify RowGroupIDs=Yes, DITA2Go generates the following identifiers:

- id="group N"
  - for each RowGroup cell (header cell that contains either a paragraph designated [HtmlStyles] RowGroup, or a CellGroup PI marker with content row) and that does not have a column ID.

  headers="group N"

- for each cell below the id="group N" cell until the next RowGroup cell;
- for each cell to the right of the id="group N" cell;
- for each cell to the right of the headers="group N" cells that are in the id="group N" column.

Specifying RowGroupIDs=Yes prevents assignment of a row ID to the RowGroup cell, but does not prevent this assignment to the headers="group N" cells below the id="group N" cell. See §36.3.8 Identifying individual table cells by row and column for information about specifying IDs for individual rows. See also §36.5.2 Understanding how the RowGroup property works.

Previous Topic: 36.3.2 Specifying id/headers attributes for table cells

Next Topic: 36.3.4 Column-group and row-group 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.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.8 Identifying individual table cells by row and column

36.3.9 Column and row extent

36.3.10 Using span IDs with row or column IDs