About keyrefs and keydefs
The keyref feature allows you to use indirect addressing in places such as xrefs and related-links.
Instead of referring to a topic directly by its file name, the link is made by means of a symbolic name (keys=”some_name”).
<xref keyref="locale">Import a localized map and its topics</xref>The link to the target topic is made with the keyref attribute, instead of an href.
The target of this link is established in the map file by inserting the keys attribute into the appropriate topic reference. You can see an example below.
<topicref href="dit1142432953484.xml" keys="locale"/>
<keydef href="dit1142432953484.xml" keys="locale"/>
|Keyref resolved with an href.|
|Keyref resolved with a keyref.|
|Keyref resolved with a null link.|