1.2.1. Specifying the targetdoc and targetptr attributes of an olink element

The easiest way to specify the targetdoc and targetptr attributes of an olink element is to right-click anywhere inside the olink element. Doing this displays a contextual menu containing "Set Link Target" in addition to "Follow Link". Menu item "Set Link Target" displays the following specialized dialog box:

The Attributes tool also can help you specify a value for the targetdoc attribute by listing[5] all the symbolic names of the target documents. Once the targetdoc attribute has been specified, the Attributes tool can help you specify a value for the targetptr attribute by listing all the IDs found in the target document.

However for the two above facilities to work, you first need to declare the collection of DocBook documents in which olink is used for cross-referencing. How to do this is explained in next section.



[5] Type a value in the Value field and use auto-completion or use the Edit button which is found at the right of this text field to display a specialized dialog box.