33.4.7 Eliminating automatically generated attributes

DITA2Go automatically generates the following attributes for tables in HTML (but not XML):

border, cellspacing, cellpadding

align, valign

bgcolor

You might not want these automatically generated attributes in HTML output, especially if you are using CSS to control table appearance.

To exclude automatically generated attributes from HTML output, while preserving any of the same attributes you specify explicitly in the configuration file or in markers:

[Tables]
; TableAttributes = Yes (default for HTML) or No (default for XML)
TableAttributes=No
; CellAlignAttributes = Yes (default for HTML) or No (default for XML)
CellAlignAttributes=No
; CellColorAttributes = Yes (default for HTML) or No (default for XML)
CellColorAttributes=No

border, cellspacing, cellpadding

When TableAttributes=No, automatically generated border, cellspacing, and cellpadding attributes are excluded from HTML output; see §33.4.8.3 Excluding border, cellspacing, and cellpadding attributes.

align, valign

When CellAlignAttributes=No, automatically generated align and valign attributes based on FrameMaker table properties are excluded from HTML output.

bgcolor

When CellColorAttributes=No, automatically generated bgcolor attributes based on FrameMaker table properties are excluded from HTML output.

Excluded from XML output

If you are generating XML, by default DITA2Go excludes these automatically generated attributes; however, DITA2Go still includes any of these attributes that you specify explicitly in markers or in either of the following sections:

See §23.1 Setting up a generic XML project and §23.3.2 Eliminating HTML attributes and tags for generic XML.

Previous Topic:  33.4.6 Specifying attributes for table cells

Next Topic:  33.4.8 Adjusting borders, cell spacing, and cell padding

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.4 Using PI markers to assign attributes to tables, rows, or cells

33.4.5 Specifying attributes for table rows

33.4.6 Specifying attributes for table cells

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