#### 24.6.2 Applying attributes to DITA tables

Suppose you want to apply a DITA outputclass attribute to a table or group of tables.

If you want to be able to use outputclass for pretty much everything, based on the table format name (fixed for CSS use) for tables, and on either the paragraph or character format name or the [Class] setting for paragraph and character elements, just use [DITAOptions]UseOutputClass=Yes; see §24.4.6.6 Providing outputclass attributes for all elements.

To apply a DITA outputclass attribute value to table formats only:

    [TableAttributes]
    MySpecialTableFormatName = outputclass="myspecialclass"

Add any other special attributes you want for that table format on the same line, and use another line for each additional format; see §33.4.2 Overriding attributes for selected tables.

You can also specify an outputclass attribute for an individual table with a TableOutputclass PI marker in the text flow before the table anchor, or in the table title or first table row; see §33.1.1 Understanding precedence of assignment methods.

Previous Topic: 24.6.1 Designating ancestors for <table> elements

Next Topic: 24.6.3 Configuring DITA table components

Parent Topic: 24.6 Specifying options for tables in DITA XML

Sibling Topics:

24.6.1 Designating ancestors for <table> elements

24.6.3 Configuring DITA table components

Table of Contents • Index