World Library  
Flag as Inappropriate
Email this Article


Article Id: WHEBN0000656350
Reproduction Date:

Title: XLink  
Author: World Heritage Encyclopedia
Language: English
Subject: XBRL, Hypertext, Scalable Vector Graphics, Uniform Resource Locator, XHTML
Collection: Hypertext, Markup Languages, World Wide Web Consortium Standards, Xml-Based Standards
Publisher: World Heritage Encyclopedia


XML Linking Language, or XLink, is an XML markup language and W3C specification that provides methods for creating internal and external links within XML documents, and associating metadata with those links.[1]


  • The XLink specification 1
  • Linking with XLink 2
    • Simple links 2.1
    • Extended links 2.2
  • Support for XLink 3
    • Within other specifications 3.1
      • SVG 3.1.1
      • RDDL 3.1.2
      • XBRL 3.1.3
      • METS 3.1.4
      • GML 3.1.5
    • Implementations 3.2
      • Mozilla Firefox 3.2.1
      • Prince XML 3.2.2
  • References 4
  • External links 5

The XLink specification

XLink 1.1 is a W3C recommendation[2] and the successor of XLink 1.0, which was also a W3C recommendation.[2] [3]

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. Simple links connect only two resources, similar to HTML links. Extended links can link an arbitrary number of resources.

Simple links

A simple link creates a unidirectional hyperlink from one element to another via a URI. Example:

  Some Document
  Here is a link to the header.
  It is an anchor that points to the element with the id "someHeading" on the current page.

Extended links

Extended links allow multiple resources, either remote or local, to be connected by multiple arcs. An arc is information about the origin, destination and behavior of a link between two resources. The origin and destination resources are defined by labels. By using one or more arcs, an extended link can achieve specific sets of connections between multiple resources.

For example, if all resources in an extended link were given the label A, then an arc within that link declaring from="A", to="A" would form connections between all 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 of each resource in an arc.

Support for XLink

Within other specifications


Hypertext links in Scalable Vector Graphics can currently be defined as simple XLinks.[4] The working draft of SVG 1.2 proposes using extended XLinks as well.[5]


The Resource Directory Description Language, an extension to XHTML Basic that is used to describe XML Namespaces, uses simple XLinks.[6]


The eXtensible Business Reporting Language has used simple and extended XLinks since the XBRL 2.0 specification was published in 2001.[7] 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, 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).[8][9]


Geography Markup Language uses simple XLinks to implement referencing. In particular, GML uses xlink:href to support a graph model for geospatial information. GML's graph model is essentially the same as RDF, on which early versions of GML were based. The GML specification constrains the semantics of XLinks to be essentially the same as rdf:resource (from the RDF/XML syntax) i.e. the referent can logically be placed in-line and the data is still valid.


Mozilla Firefox

Mozilla Firefox has supported simple XLinks since version 1.5, but only for SVG and MathML documents. It is unsupported in other XML documents.[10] Only the xlink:href, xlink:show, xlink:target and xlink:title attributes are supported.[11]

Prince XML

Prince XML supports simple XLinks.[12]


  1. ^ DeRose, Steven J. (1999-02-24), XML XLink Requirements, W3C 
  2. ^ a b XML Linking Language (XLink) Version 1.1, W3C, May 6, 2010 
  3. ^ "XML and Semantic Web W3C Standards Timeline" (PDF). 
  4. ^ Scalable Vector Graphics (SVG) 1.1 Specification: Linking, W3C, June 8, 2006 
  5. ^ Extended Links (SVG 1.2), W3C, June 8, 2006 
  6. ^ Borden, Jonathan; Bray, Tim (2002-02-18), Resource Directory Description Language (RDDL), The Open Healthcare Group, Systems 
  7. ^ Extensible Business Reporting Language (XBRL) 2.1 - XLink in XBRL, XBRL International Inc. 
  8. ^ METS: An Overview & Tutorial, Library of Congress 
  9. ^ Metadata Encoding and Transmission Standard: Primer and Reference Manual (PDF), Library of Congress, September 2007, p. 133 
  10. ^ XLink - MDC, Mozilla 
  11. ^ SVG in Firefox, Mozilla 
  12. ^ Prince: XML Input, YesLogic 

External links

  • W3C Recommendation
  • W3C Recommendation (version 1.0)
  • XLink: Who Cares?
  • XML Linking Implementations (Last Updated 2000)
  • Demo of XLinks for Mozilla browsers
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.