6.3.4 Mapping wrapper-element outputclass attributes to formats

If your DITA XML document was created from material authored in a non-DITA environment such as FrameMaker, it might include <xref> tags automatically wrapped in <ph> elements, to allow <xref> elements in places where they would not otherwise be valid in DITA XML.

To map <ph> wrapper elements for cross references, index terms, and footnotes to output formats:

[InlineOutclassMaps]
; outputclass attribute of block or inline element = format
; For example, for the ph wrapper formats from Mif2Go:
phxref = PhXref
phindex = PhIndex
phfoot = PhFootnote

These format assignments are effective even if UseOutputClassForFormat=No (see §6.2 Specifying options for naming formats), and they override all other assignments of block and inline element formats.

For HTML output you might want to include the following settings to eliminate style tags for the wrapper elements:

[CharStyles]
; eliminate wrapper classes
PhXref =
PhIndex =
PhFootnote =

See §30.3 Mapping character formats.

Previous Topic:  6.3.3 Mapping cross-reference outputclass attributes to formats

Next Topic:  6.4 Mapping element paths to output formats

Parent Topic:  6.3 Mapping outputclass attribute values to formats

Sibling Topics:

6.3.1 Mapping block and inline outputclass attributes to formats

6.3.2 Mapping table outputclass attributes to formats

6.3.3 Mapping cross-reference outputclass attributes to formats

Table of ContentsIndex