6.5.5 Deciding which formats need a run-in heading property

Instead of considering only the current element to determine prefixes and formatting, DITA2Go also looks up one level in the current topic in your DITA document. If the parent element does not have text of its own, and if the current element is the first child of that parent, DITA2Go processes the parent to determine what its format would be if it did have text. This process also identifies any applicable prefix. Then DITA2Go processes the current element, and determines its format; however, a prefix has already been identified from the parent. That parent prefix becomes the first prefix for the current element.

For example, if your document uses the <note> element as a wrapper for other text elements, <note> itself might have no text content, and therefore DITA2Go would not automatically look for an output format for <note>. However, if another text element is nested in <note>, DITA2Go checks <note> for possible format prefixes to apply to the nested element.

Previous Topic:  6.5.4 Assigning run-in headings to format-name prefixes

Next Topic:  6.5.6 Understanding the order of prefixes for multiple attributes

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.2 Listing attributes whose values 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.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