From Seo Wiki - Search Engine Optimization and Programming Languages
The XML Linking Language, or XLink, is an XML markup language used for creating hyperlinks in XML documents. XLink is a W3C specification that outlines methods of describing links between resources in XML documents, whether internal or external to the original document.
The XLink specification
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.
<?xml version="1.0"?> <document xmlns="http://example.org/xmlns/2002/document" xmlns:xlink="http://www.w3.org/1999/xlink"> <heading id="someHeading">Some Document</heading> <para>The <anchor xlink:type="simple" xlink:href="#someHeading">Some Document</anchor> header.</para> </document>
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 supplementary 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
|This section may need to be updated. Please update this section to reflect recent events or newly available information, and remove this template when finished. Please see the talk page for more information. (October 2009)|
Software support for XLink, as of 2006 June, includes the following:
Mozilla Firefox (1.5.0) has very limited support for simple XLinks (in CSS-formatted XML only).
- Links with an
xlink:show="embed"attribute do not work.
- Links with an
xlink: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 of
- In XML documents XLinks cannot be applied to elements in the XHTML namespace (Firefox 2.0)
Internet Explorer support very limited xlinks if msxml version 4.0 is used.
Netscape (7.2) has the same support for simple XLinks as Firefox, except that the
xlink:show="new" attribute works correctly.
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 2009, XBRL is probably the most extensive use of XLink in production systems.
The Metadata Encoding and Transmission Standard language supported and maintained by the Library of Congress for describing file aggregations uses simple XLinks in pointing to file locations as well as linkbases which describe relationships among external files (though these restrict 'to' and 'from' attributes to type IDREF instead of NMTOKEN.)
- W3C Recommendation
- XLink: Who Cares?
- XML Linking Implementations (Last Updated 2000)
- Demo of XLinks for Mozilla browsers