- XLink
The XML Linking Language, or XLink, is an
XML markup language used for creatinghyperlinks in XML documents. XLink is aW3C specification that outlines methods of describing links between resources in XML documents, whether internal or external to the original document.The XLink specification
XLink 1.0 remains the current version of XLink where it received W3C Recommendation status on
2001 June 27 .cite news
url=http://www.w3.org/TR/xlink/
publisher=W3C
title=XML Linking Language (XLink) Version 1.0
date=June 8, 2006] XLink 1.1 entered W3C Candidate Recommendation status on2006 March 28 .cite news
url=http://www.w3.org/TR/2006/CR-xlink11-20060328
publisher=W3C
title=XML Linking Language (XLink) Version 1.1
date=June 8, 2006]Linking with XLink
XLink defines a set of attributes that may be added to elements of other XML namespaces. XLink provides two kinds of hyperlinking for use in XML documents. Extended links are out–of–band hyperlinks that, in a linkbase document, can link resources over which the link editor has no control. Simple links offer similar functionality to
HTML links, which are in–band links.Simple links
A simple link is similar to those native to HTML; it simply creates a unidirectional
hyperlink arc from one element to another via a URI. Example:Extended links
The XLink specification supports not only simple links but also extended links. Extended links allow multiple resources, either remote or local, to be connected by multiple arcs. Arcs are explicitly unidirectional — they only define traversal in a single direction. By grouping resources with labels and using one or more arcs, an extended link can achieve specific traversal pathways among the resources.
For example, if all resources in an extended link were given the label A, then an arc within that link which was
from="A", to="A"
would connect every resource to every other resource and allow traversal from any of those resources to any other of those resources.Extended links do not need to be contained in the same document as the elements they link to. This makes it possible to associate metadata or other supplemental information with resources without editing those resources.
XLink also supports richer information about link types and the roles for each resource that an XLink connects.
Uses of XLink
Software support for XLink, as of 2006 June, includes the following:
Mozilla Firefox
Mozilla Firefox (1.5.0) has very limited support for simple XLinks.
* Links with anxlink:show="embed"
attribute do not work.
* Links with anxlink:actuate="onLoad"
attribute work if they are the only thing on the page.
* All other links open the target in the current window, when requested, irrespective of the presence ofxlink:actuate
orxlink:show
attributes.
* In XML documents XLinks cannot be applied to elements in the XHTML namespace (Firefox 2.0)Netscape
Netscape (7.2) has the same support for simple XLinks as Firefox, except that thexlink:show="new"
attribute works correctly.SVG applications
Hypertext links in SVG can currently be defined as XLink simple links.cite news
url=http://www.w3.org/TR/SVG11/linking.html#hyperlinking-mod
publisher=W3C
title=Scalable Vector Graphics (SVG) 1.1 Specification: Linking
date=June 8, 2006] The W3C Working Draft of SVG 1.2 proposes using XLink extended links as well.cite news
url=http://www.w3.org/TR/2004/WD-SVG12-20041027/extendedlinks.html
publisher=W3C
title=Extended Links (SVG 1.2)
date=June 8, 2006]RDDL
The XML language
RDDL , an extension toXHTML Basic that is used to describeXML Namespaces , uses XLink simple links.XBRL
The Extensible Business Reporting Language (
XBRL ) has used XLink simple and extended links since the XBRL 2.0 specification was published in 2001. Most large XBRL taxonomies contain extensive linkbases. As of 2006, XBRL is probably the most extensive use of XLink in production systems.References
External links
* [http://www.w3.org/TR/xlink/ W3C Recommendation]
* [http://www.xml.com/pub/a/2002/03/13/xlink.html XLink: Who Cares?]
* [http://www.w3.org/XML/2000/09/LinkingImplementations.html XML Linking Implementations (Last Updated 2000)]
* [http://www.snee.com/xml/xlink/sxlinkdemo.xml Demo of XLinks] forMozilla browsers
Wikimedia Foundation. 2010.