ZVON > Tutorials > XLink - Extended Links
Prev | [Help]

11. Linkbases

Description

The role of linkbases is to gather together a number of related linking elements and to make link management easier.




Linkbase format
Linkbases must be XML.


How to instruct XLink applications to access linkbase.
The instruction takes the form of an arc specification, where the arcrole attribute must have the following value:

 <zvon:doc_with_base
    xmlns:zvon="http://www.zvon.org"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xlink:type="extended">
   <doc
      xmlns:xlink="http://www.w3.org/1999/xlink"
      xlink:type="locator"
      xlink:href="mydoc.xml"
      xlink:label="label_doc">
   </doc>
   <base
      xmlns:xlink="http://www.w3.org/1999/xlink"
      xlink:type="locator"
      xlink:href="mybase.xml"
      xlink:label="label_base">
   </base>
   <loadbase
      xmlns:xlink="http://www.w3.org/1999/xlink"
      xlink:type="arc"
      xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase"
      xlink:from="label_doc"
      xlink:to="label_base">
   </loadbase>
 </zvon:doc_with_base>