XML technologies / XML / XML in a Nutshell / XLinks / Linkbases

(Excerpt from "XML in a Nutshell" by Elliotte Rusty Harold & W. Scott Means)

One of XLinks’ most revolutionary features is linking documents you do not control. The example An extended link with three locators and four arcs is an extended link connecting three documents unrelated to this book’s authors. Links between external resources are called third-party links (third-party links). They occur when both the xlink:from and the xlink:to attributes of an arc contain locator labels. Links from external to local resources are called inbound links. An inbound link occurs when an arc’s xlink:from attribute contains a locator label and its xlink:to attribute a resource label. Links from local to external resources are called outbound links. An outbound link occurs when an arc’s xlink:from attribute contains a resource label and its xlink:to attribute a locator label. Simple links are outbound too.

An XML document containing inbound or third-party links is a linkbase. A linkbase establishes links from other documents, potentially beyond its author’s control. How browsers load linkbases and discover links remains open, perhaps by visiting a site offering one. When a browser encounters third-party links, it should ask whether the user wants to accept them. The attributes xlink:role and xlink:title could help users decide. However, if experience with cookies, Java applets, and ActiveX controls is any guide, early interfaces will likely be poor and offer limited options.

After loading a linkbase, a browser reaching a starting resource should notify the user and offer access to its links. This interface remains to be designed: perhaps a popup listing third-party links, or embedded links underlined in a different color. Users could activate them like ordinary HTML links.

If this approach prevails, starting resources should be able to identify parts of documents—a paragraph, person’s name, or book title. A starting resource’s URI can indeed be extended with an XPointer that selects or references that part.

  

 

 

 

back to top