### 8.4 Overriding border and shading properties

By default, DITA2Go checks the outputclass attribute of each element for a format name, and also for possible border and shading subformat names; see §6.2 Specifying options for naming formats:

    [ElementOptions]
    ; UseOutputClassForFormat = Yes (default, use whenever present) or
    ; No (go on to mappings in [*FormatMaps] as the next choice)
    UseOutputClassForFormat = Yes
    ; OutputclassHasBorderShadeFormats = Yes (default, look for border and
    ; shading format specifications in outputclass attributes), or No.
    OutputclassHasBorderShadeFormats = Yes

To override border or shading properties for a particular instance of an element, you can specify different properties in the outputclass attribute for that instance When UseOutputClassForFormat=Yes and OutputclassHasBorderShadeFormats=Yes, DITA2Go checks outputclass attributes for multiple classes and separates them. If any contain the key BorderType or ShadeType (see §8.10 Localizing output headings, labels, and names), DITA2Go uses the value assigned to that key as the border format or shading format name, respectively. If neither key is present, but there are multiple classes, DITA2Go uses the first as the real outputclass (usually a block or inline format), the second as the border format, and the third as the shading format. The BorderType and ShadeType keys are defined in [ElementText] in the language file.

As an alternative, you can insert a BorderType or ShadeType PI marker in the element; see §38.1 Understanding DITA2Go PI markers.

Previous Topic: 8.3 Defining shading subformats

Next Topic: 8.5 Configuring output numbering properties

Parent Topic: 8. Configuring format components

Sibling Topics:

8.1 Managing format components

8.2 Defining border subformats

8.3 Defining shading subformats

8.5 Configuring output numbering properties

8.6 Configuring run-in headings for text formats

8.7 Defining cross-reference output formats

8.8 Configuring index see and see-also entries

8.9 Configuring trademark formats

8.10 Localizing output headings, labels, and names