#### 6.4.2 Mapping block and inline element paths to formats

To map element paths of block elements to output formats (for example):

[BlockFormatMaps]
; block element path = paragraph format name
title/concept/1 = ChapTitle
p/conbody/concept/1 = Body
li^ol/* = NumberedFirst
li/ol/* = Numbered
li/ul/* = Bulleted

These settings prescribe the following formats:

- ChapTitle for every title in a concept topic that occurs at the highest topic level.
- Body for every <p> element in the <conbody> of a concept topic, at the highest topic level.
- NumberedFirst for every first <li> in <ol> anywhere in the document.
- Numbered for all other <li> elements in <ol> anywhere in the document.
- Bulleted for any <li> in a <ul> anywhere in the document.

To map element paths of inline elements to output formats (for example):

[InlineFormatMaps]
; inline element path = character format name
b/p/conbody/concept/1 = Bold
i/p/conbody/concept/1 = Italic

These settings indicate that <b> elements should be mapped to a format named Bold wherever those elements occur in the DITA document; and that <i> elements should be mapped to a format named Italic, wherever they occur.

Note: If you explicitly assign a format to the outputclass for an element in [BlockOutclassMaps] or [InlineOutclassMaps], that format takes precedence over any format assigned to the element in [BlockFormatMaps] or [InlineFormatMaps]. See §6.2 Specifying options for naming formats.

Configuration template d2g_config.ini, located in %omsyshome%\d2g\configs, includes elephant paths for all default formats included in the DITA2Go distribution.

Previous Topic: 6.4.1 Understanding element paths

Next Topic: 6.4.3 Overriding element paths for default formats

Parent Topic: 6.4 Mapping element paths to output formats

Sibling Topics:

6.4.1 Understanding element paths

6.4.3 Overriding element paths for default formats

6.4.4 Mapping the same element to different formats

6.4.5 Filtering out elements via format mapping

Table of Contents • Index