<oXygen/> Author allows you to declare some elements to be links. This is especially useful when working with many documents which refer each other. The links allow for an easy way to get from one document to another. Clicking on the link marker will open the referred resource in an editor.
To define the element which should be considered a link, you must use the property
link
on the before or after pseudo element. The value of the property
indicates the location of the linked resource. Since links are usually indicated by
the value of an attribute in most cases it will have the a value similar to
attr(href)
![]() | Note |
---|---|
|
Example 8.9. Docbook Link Elements
All the elements below are defined to be links on the before pseudo element and their value is defined by the value of an attribute.
*[href]:before{ link:attr(href); content: "Click " attr(href) " for opening" ; } ulink[url]:before{ link:attr(url); content: "Click to open: " attr(url); } olink[targetdoc]:before{ link: attr(targetdoc); content: "Click to open: " attr(targetdoc); }