Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

26 Identifying HTML table structure for WAI > 26.2 Associating table cells with header cells > 26.2.2 Using paragraph formats for table-cell attributes > 26.2.2.3 Assigning values to WAI attributes


26.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"



26 Identifying HTML table structure for WAI > 26.2 Associating table cells with header cells > 26.2.2 Using paragraph formats for table-cell attributes > 26.2.2.3 Assigning values to WAI attributes