##### 35.2.2.3 Assigning values to WAI attributes

The following configuration-file sections can include settings for WAI attributes that are assigned to paragraph formats in the [HTMLParaStyles]section:

    [StyleCellAbbr]
    ; format name = abbr attribute value to insert in enclosing cell

    [StyleCellAxis]
    ; format name = axis attribute value to insert in enclosing cell

    [StyleCellScope]
    ; format name = scope attribute value to insert in enclosing cell,
    ; required by WAI to be one of col, colgroup, row, or rowgroup.

    [StyleCellAttribute]
    ; doc style = attribute to insert in enclosing table cell start tag,
    ;   used in addition to other cell attributes given under [Table...]

You can use the format or an abbreviation of the cell content to specify the scope:

Format example

Abbreviation example

Format example

For example, if you are using column groups and a table has a column header that applies to (has a scope of) more than one column, you might give the text of the header a unique paragraph format (such as WideHdr), and specify the following settings:

    [HTMLParaStyles]
    WideHdr=Scope

    [StyleCellScope]
    WideHdr=colgroup

Instead of using [StyleCellScope], you could specify the colgroup attribute like this:

    [HTMLParaStyles]
    WideHdr=CellAttribute

    [StyleCellAttribute]
    WideHdr= scope="colgroup"

Abbreviation example

Suppose the header-cell content with paragraph format WideHdr is “Type of convention”. To abbreviate this text to “Type”, you could specify both attributes like this:

    [HTMLParaStyles]
    WideHdr=Scope CellAttribute

    [StyleCellAttribute]
    WideHdr= abbr="Type" scope="colgroup"

or like this:

    [HTMLParaStyles]
    WideHdr=Scope Abbr

    [StyleCellScope]
    WideHdr=colgroup
    [StyleCellAbbr]
    WideHdr="Type"

Previous Topic: 35.2.2.2 Assigning WAI attributes to paragraph formats

Next Topic: 35.2.2.4 Specifying a different HTML table-cell tag

Parent Topic: 35.2.2 Using paragraph formats for table-cell attributes

Sibling Topics:

35.2.2.1 Choosing how to use paragraph formats for WAI markup

35.2.2.2 Assigning WAI attributes to paragraph formats

35.2.2.4 Specifying a different HTML table-cell tag

35.2.2.5 Identifying table cells with formats: an example

Table of Contents • Index