#### 33.4.4 Using PI markers to assign attributes to tables, rows, or cells

If you give a PI marker type a name that starts with Table, Row, or Cell, DITA2Go uses the content of the marker for the value of whatever HTML attribute is designated by the rest of the PI marker-type name, and puts the attribute and its value in the generated <table>, <th>, <tr>, or <td> tag. An attribute value assigned with a PI marker takes precedence over values of the same attribute assigned any other way; see Table 33-1.

For example, to guarantee that a certain table cell is top-aligned in HTML regardless of its properties in DITA or any properties assigned in the configuration file, you could insert a PI marker of type CellValign just before the cell in DITA, and make the content of that marker top. In HTML, the resulting tag for that cell would be <td valign="top">.

See also:

§34.1.3 Inserting PI markers for WAI attributes

§38.3 Adding attributes with PI markers

Previous Topic: 33.4.3 Assigning a CSS class to a table

Next Topic: 33.4.5 Specifying attributes for table rows

Parent Topic: 33.4 Specifying table attributes

Sibling Topics:

33.4.1 Specifying attributes for all tables

33.4.2 Overriding attributes for selected tables

33.4.3 Assigning a CSS class to a table

33.4.5 Specifying attributes for table rows

33.4.6 Specifying attributes for table cells

33.4.7 Eliminating automatically generated attributes

33.4.8 Adjusting borders, cell spacing, and cell padding

33.4.9 Determining the width of table columns

33.4.10 Deciding what to do with empty paragraphs in table cells

Table of Contents • Index