#### 24.9.2 Specifying an outputclass for cross-reference wrappers

When DITA2Go encounters a cross reference, index term, or footnote reference in a context where an <xref> tag would be invalid, the <xref> gets wrapped in a <ph> element. These DITA2Go-generated <ph> wrapper elements need an outputclass attribute. The default outputclass attribute names for cross-reference, index-term, and footnote wrappers are as follows:

    [DITAOptions]
    ; XrefWrapClass = outputclass to use for generated ph elements that
    ; wrap xrefs where they would otherwise be invalid
    XrefWrapClass = phxref
    ; IndexWrapClass = outputclass to use for generated ph elements that
    ; wrap indexterms where they would otherwise be invalid
    IndexWrapClass = phindex
    ; FootnoteWrapClass = outputclass to use for generated ph elements
    ; that wrap footnotes where they would otherwise be invalid
    FootnoteWrapClass = phfoot

You can specify other outputclass attribute names.

Previous Topic: 24.9.1 Understanding how DITA2Go converts cross references

Next Topic: 24.9.3 Linking to elements below topic level

Parent Topic: 24.9 Configuring cross references and links for DITA

Sibling Topics:

24.9.1 Understanding how DITA2Go converts cross references

24.9.3 Linking to elements below topic level

24.9.4 Omitting <xref> elements from footnotes

24.9.5 Overriding <xref> attribute values

Table of Contents • Index