24.4.3.5 Overriding element mapping
for paragraph formats
To override the element-name mapping for a given paragraph,
insert a DITATag marker in
the paragraph, with content the desired element name.
If mapping (or overriding mapping) does not suffice,
and you do not need to specify a required ancestry for the element, use
the following instead:
- [HTMLStyles] CodeBefore and CodeAfter properties for
the format
- [StyleCodeBefore] and [StyleCodeAfter] sections
to specify the element tags to surround the text.
See §37.9.3
Surrounding or replacing text with code or macros.
Another alternative would be to bracket the text with
Config PI markers,
with content such as [StyleCodeBefore]=<element> and [StyleCodeAfter]=</element>; see §42.2.2
Overriding settings with configuration PI markers.
Note: Mappings provided via [StyleCode*] settings or
markers do not participate in any ancestry you specify for the element
in question; see §24.5 Nesting DITA block elements.
Previous Topic: 24.4.3.4 Omitting
invalid tags for default DITA block elements
Next Topic: 24.4.3.6 Providing
aliases for paragraph formats
Parent Topic: 24.4.3 Mapping
paragraph formats to DITA block elements
Sibling Topics:
24.4.3.1 Assigning
DITA elements to paragraph formats
24.4.3.2 Omitting
element tags for selected paragraph formats
24.4.3.3 Specifying
a default element for unmapped paragraph formats
24.4.3.4 Omitting
invalid tags for default DITA block elements
24.4.3.6 Providing
aliases for paragraph formats
24.4.3.7 Mapping
paragraph format aliases to different elements
24.4.3.8 Mapping
paragraph format aliases algorithmically
24.4.3.9 Mapping
several paragraphs formats to the same element