24.4.6 Assigning
attributes to DITA elements
You can apply attributes to a DITA block
or inline element by assigning attribute="value" pairs to
the format mapped to the element. The attributes you assign with configuration
settings apply to all instances of the element in question. Only those
attributes assigned to elements mapped from paragraph formats can be
overridden with markers.
The following are special cases:
- A
value for the id attribute
can be assigned only with a DITAElemID
marker.
- Attributes
of <xref>
elements require different settings; see §24.9
Configuring cross references and links for DITA.
- The
outputclass
attribute can be assigned to the root element only with a DITATopicOutputclass
marker.
In this section:
§24.4.6.1
Specifying a value for the id attribute
§24.4.6.2
Including an id attribute in every element
§24.4.6.3
Specifying attribute values for the root element of a topic
§24.4.6.4
Specifying attribute values for a block element or parent
§24.4.6.5
Specifying attribute values for an inline element
§24.4.6.6
Providing outputclass attributes for all elements
See also:
§24.6
Specifying options for tables in DITA XML
Previous Topic:
24.4.5 Assigning
multiple typographic elements to a format
Next Topic:
24.4.6.1 Specifying
a value for the id attribute
Parent Topic:
24.4 Configuring
DITA elements
Sibling Topics:
24.4.1 Understanding
how DITA2Go delimits DITA elements
24.4.2 Treating
format names as DITA element names
24.4.3 Mapping
paragraph formats to DITA block elements
24.4.4 Mapping
character formats to DITA inline elements
24.4.5 Assigning
multiple typographic elements to a format
24.4.7 Preserving
whitespace in block elements
Table of Contents • Index