#### 6.5.1 Listing elements whose attributes can affect output formats

To specify that DITA2Go should apply a prefix to the name of the output format assigned to an element, based on one or more attributes of that element:

    [ElementAttrPrefixes]
    ; element name = section with list of attrs for which
    ; prefixes should possibly be applied to the format name
    element = ElemSectionName

By default:

    [ElementAttrPrefixes]
    note = NoteAttrPrefixes
    step = StepAttrPrefixes
    * = AttributePrefixes

The element name can include wildcards. These default settings are located in configuration template %omsyshome%\d2g\system\config\d2g_config.ini; see §39.1.3 Understanding how templates are chained together.

The setting for <note> directs DITA2Go to look up the attributes listed in configuration section [NoteAttrPrefixes], and to use those attributes to determine which Note format to apply to a given instance of <note>; or, in effect, how to modify the base [Note] format. And similarly for <step>.

The last setting above directs DITA2Go to look up the attributes listed in configuration section [AttributePrefixes] for all elements. (The importance attribute is included there by default; see §6.5.2 Listing attributes whose values can affect output formats.)

Previous Topic: 6.5 Mapping element attributes to output formats

Next Topic: 6.5.2 Listing attributes whose values can affect output formats

Parent Topic: 6.5 Mapping element attributes to output formats

Sibling Topics:

6.5.2 Listing attributes whose values can affect output formats

6.5.3 Assigning format-name prefixes to attribute values

6.5.4 Assigning run-in headings to format-name prefixes

6.5.5 Deciding which formats need a run-in heading property

6.5.6 Understanding the order of prefixes for multiple attributes

6.5.7 Understanding how prefixes modify output formats

6.5.8 Understanding default attribute-based prefixes and headings

Table of Contents • Index