XML technologies / XML / XML in a Nutshell / XLinks / Link semantics
(Excerpt from "XML in a Nutshell" by Elliotte Rusty Harold & W. Scott Means)
A link describes a connection between two resources. These need not be XML documents, and even if they are, their relationships can differ greatly. Links can express parent-child, previous-next, employer-employee, customer-supplier relationships and many others. XLink elements can have xlink:title and xlink:role attributes to specify the meaning of the connection between resources. The attribute xlink:title contains a short text describing the external resource. Think of it as a tooltip appearing when the user moves the pointer over the link. The attribute xlink:role contains a URI indicating the meaning of the link. For example, one might assume that the URI "http://www.isi.edu/in-notes/iana/assignments/media-types/text/css" indicates that the link points to a CSS stylesheet for the document containing the link. However, there is no standard for the meanings of role URIs. Applications may assign their own meanings to their own URIs.
For example, this book element is a simple XLink pointing to Scott’s author page at O'Reilly. The attribute xlink:title contains his name, while the attribute xlink:role contains the URI for the Dublin Core-creator property, indicating that he is the book’s author:
<book xlink:type="simple" xlink:href="http://www.oreillynet.com/cs/catalog/view/au/751" xlink:title="W. Scott Means" xlink:role="http://purl.org/dc/elements/1.1/creator">XML in a Nutshell</book>As with almost everything involving XLink, it remains to be determined exactly what browsers or other applications should do with this information and how to present it to readers.
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