An olink is a type of link between two DocBook XML documents.
The olink element is used for linking outside the current DocBook document. It has the attribute targetdoc for the document ID that contains the target element and the attribute targetptr for the ID (the value of an id or xml:id attribute) of the target element. The combination of those two attributes provides a unique identifier to locate cross references.
For example, a Mail Administrator Guide with the document ID MailAdminGuide might contain a chapter about user accounts, like this:
<chapter id="user_accounts"> <title>Administering User Accounts</title> <para>blah blah</para> ...
You can form a cross reference to that chapter by adding an olink, as in the following example:
You may need to update your <olink targetdoc="MailAdminGuide" targetptr="user_accounts">user accounts </olink> when you get a new machine.
To use an olink to create links between documents, follow these steps: