35.2.3 Using special paragraphs for table-cell attributes

Instead of inventing another paragraph format every time you need to assign a different combination of WAI attributes, you can dedicate a small set of paragraph formats to this purpose: one for each WAI attribute. The text of each instance of such a paragraph format becomes the value of the attribute:

[HtmlStyles]
; These para format properties all make their content into attributes.
; If you do not want the content in the text also, use with Delete.
;  AbbrVal makes current para content into abbr for table cell
;  AxisVal makes current para content into axis for table cell

Probably you would not want the text of these special paragraphs to appear either in printed output or in HTML output; therefore you would assign property Delete to each such paragraph format in section [HtmlStyles].

For example, suppose you assign paragraph format WAIabbr to an element, and assign a WAI attribute to this format:

[HtmlStyles]
WAIabbr = AbbrVal Delete

If a header cell in a table reads Type of Widget and you want to provide the abbreviation Type, somewhere in that cell you would place an element assigned format WAIabbr and give it content Type. The Delete property would exclude the paragraph (as such) from HTML output, and the HTML source would show <abbr="Type"> for the cell in question; see §30.2.6 Eliminating unwanted paragraphs.

Previous Topic:  35.2.2.5 Identifying table cells with formats: an example

Next Topic:  35.2.4 Using PI markers for table-cell attributes

Parent Topic:  35.2 Associating table cells with header cells

Sibling Topics:

35.2.1 Specifying group properties for header cells

35.2.2 Using paragraph formats for table-cell attributes

35.2.4 Using PI markers for table-cell attributes