You can create inline links in the content of a DITA topic using the xref
element. To insert a link in Oxygen XML Editor
Author mode, use the actions
available in the
Link drop-down list from the DITA Toolbar.
To make links easier to manage, you may choose to use keys for linking, rather than creating direct links to topics. By using keys, you avoid creating a direct dependency between topics, which can make it easier to reuse topics in various publications. It can also be helpful in verifying the completeness of a publication, by ensuring that a publication map provides a key definition for every key reference used in the content.
Links based on keys require two pieces. The first piece is a key definition, which assigns a key to a topic so that other topics can link to it. The second piece is a key reference, which is created in an xref element and specifies the key to link to. Thus, the key reference points to a key definition, and the key definition points to a topic.
Key definitions are created in maps, as an element on the topicref element that points to a topic. Thus, a key reference points to a key definition on a topicref that points to a topic.
To add a key to a map:
To create a link using a key:
Link drop-down list that
is available in the DITA Toolbar. The Insert Key
Reference dialog is displayed.