#### 6.5.2 Listing attributes whose values can affect output formats

To list the attributes that DITA2Go should use to add format-name prefixes for a given element, in the section assigned to that element in [ElementAttrPrefixes] (see §6.5.1 Listing elements whose attributes can affect output formats):

    [ElemSectionName]
    ; attribute name = section with list of values, or
    ; attribute name = * to use the value itself as a prefix
    attributename = AttrSectionName

The attribute name cannot include wildcards.

When attributename=*, DITA2Go prefixes the format name for the element with the value of the attribute.

When attributename=AttrSectionName, DITA2Go looks up the attribute in [AttrSectionName] to determine what prefix to apply.

By default:

    [NoteAttrPrefixes]
    type = *

    [StepAttrPrefixes]
    importance = StepImportancePrefixes

    [AttributePrefixes]
    importance = ElemImportancePrefixes

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.

In the first setting, for each <note> element, DITA2Go prefixes the name of the Note format with the value of the type attribute.

In the second setting, for each <step> element, DITA2Go looks up the value of the importance attribute in configuration section [StepImportancePrefixes], to determine what prefix to use for that instance of <step>. See §6.5.3 Assigning format-name prefixes to attribute values.

In the third setting, for every element that includes an importance attribute, DITA2Go looks up its value in configuration section [ElemImportancePrefixes], to determine what prefix to use for the format name.

Previous Topic: 6.5.1 Listing elements whose attributes can affect output formats

Next Topic: 6.5.3 Assigning format-name prefixes to attribute values

Parent Topic: 6.5 Mapping element attributes to output formats

Sibling Topics:

6.5.1 Listing elements whose attributes 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