XML technologies / XML / XML in a Nutshell / XLinks
(Excerpt from "XML in a Nutshell" by Elliotte Rusty Harold & W. Scott Means)
XLinks provide an attribute-based syntax for assigning links to XML documents. XLinks can be simple point-A-to-point-B links, like those provided by the Aelement in HTML. XLinks can also be bidirectional, connecting two documents in both directions so you can go from A to B and from B to A. They can even be multidirectional, representing many different paths among any number of XML documents. The documents need not be XML: XLinks can reside in an XML document listing connections among other documents that are not necessarily XML themselves. Web graffiti artists take note: these third-party links let you attach links to pages you do not control, such as the home page of the New York Times or the CIA. At its core, XLink is nothing more or less than an XML syntax for describing directed graphs whose nodes are documents at particular URIs and whose edges are links between documents. What you put in that graph is up to you.
Current web browsers support only simple XLinks, which merely reproduce the functionality of the A element in HTML. Many browsers, including Internet Explorer, do not support XLinks at all. Custom applications, however, can go much further. Given the power of XLinks, it should be no surprise that they can do more than produce blue underlined links on web pages. XLinks can describe tables of contents or indexes, connect annotations with the text they describe, and mark possible paths through online courses or virtual worlds. Different applications interpret different sets of XLinks differently. Just as no browser truly understands the semantics of every XML application, no program can process every collection of XLinks.
Copyright © 2005 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from the book "XML in a Nutshell" is subject to the same conditions as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de
back to top