##### 26.4.2.4 Overriding element mapping for paragraph formats

To override the element-name mapping for a given paragraph, insert a DocBookTag PI 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:

- [HTMLParaStyles] CodeBefore and CodeAfter properties for the format
- [ParaStyleCodeBefore] and [ParaStyleCodeAfter] 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 [ParaStyleCodeBefore]=<element> and [ParaStyleCodeAfter]=</element>; see §42.2.2 Overriding settings with configuration PI markers.

Note: Mappings provided via [ParaStyleCode*] settings or markers do not participate in any ancestry you specify for the element in question; see §26.5 Nesting DocBook block elements.

Previous Topic: 26.4.2.3 Omitting invalid tags for default DocBook block elements

Next Topic: 26.4.2.5 Providing aliases for paragraph formats

Parent Topic: 26.4.2 Mapping paragraph formats to DocBook elements

Sibling Topics:

26.4.2.1 Assigning DocBook elements to paragraph formats

26.4.2.2 Specifying a default element for unmapped paragraph formats

26.4.2.3 Omitting invalid tags for default DocBook block elements

26.4.2.5 Providing aliases for paragraph formats