Related Links to Reltable

Generates a “reltable” map from the related links in a file or book.

This command relies on proper setup of parameters in the RellinksToReltable section of the fm2dita.ini file. It creates a 2-column reltable for each document. The first column is assigned relcolspec/@linking=’sourceonly’ and the second column is assigned relcolspec/@linking=’targetonly’.

The ElemName parameter in the RellinksToReltable section specifies the “related-links” element. This element is scanned for descendant elements that contain href or xtrf attributes with a non-null value. These attribute values are assumed to be the target topic and are used as the basis for generating links in the reltable. If you’d like this group of elements deleted after processing (from the ElemName element), set DeleteElem to “1”.

After processing, one or more separate maps are created that contain the relationship tables. You must manually link these “reltable” maps (with a mapref element) into your root or chapter maps, or copy/paste the reltables into those maps.

This command must be run after the Fix Cross-refs command has been run, and before Write XML Topics.