Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
XLink
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{short description|Method for linking XML documents together}} {{Redirect|XLL}} {{Other uses|Xlink (disambiguation)}} '''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.<ref>{{citation |url=http://www.w3.org/TR/NOTE-xlink-req/ |title=XML XLink Requirements |publisher=W3C |date=1999-02-24 |last=DeRose |first=Steven J.}}</ref> ==The XLink specification== XLink 1.1 is a W3C recommendation<ref name="xlink11">{{citation |url=http://www.w3.org/TR/xlink11/ |publisher=W3C |title=XML Linking Language (XLink) Version 1.1 |date=May 6, 2010}}</ref> and the successor of XLink 1.0, which was also a W3C recommendation.<ref name="xlink10">{{citation |url=http://www.w3.org/TR/xlink/ |publisher=W3C |title=XML Linking Language (XLink) Version 1.0 |date=June 8, 2006}}</ref><ref name="timelinehistory">{{cite web|url=http://www.dblab.ntua.gr/~bikakis/XML%20and%20Semantic%20Web%20W3C%20Standards%20Timeline-History.pdf |title=XML and Semantic Web W3C Standards Timeline }}</ref> ==Linking with XLink== XLink defines a set of [[Attribute (computing)#XML|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 [[Uniform Resource Identifier|URI]]. Example: <syntaxhighlight lang=xml><?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>Here is <anchor xlink:type="simple" xlink:href="#someHeading">a link</anchor> to the header.</para> <para>It is an anchor that points to the element with the id "someHeading" on the current page.</para> </document></syntaxhighlight> ===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 <var>A</var>, then an arc within that link declaring <code>from="<var>A</var>", to="<var>A</var>"</code> 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=== ====SVG==== Hypertext links in [[Scalable Vector Graphics]] can currently be defined as simple XLinks.<ref>{{citation |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}}</ref> The [[W3C#Certification|working draft]] of SVG 1.2 proposes using extended XLinks as well.<ref>{{citation |url=http://www.w3.org/TR/2004/WD-SVG12-20041027/extendedlinks.html |publisher=W3C |title=Extended Links (SVG 1.2) |date=June 8, 2006}}</ref> In the SVG 2 specification, XLink was deprecated in favor of non-namespaced equivalent attributes.<ref>{{Cite web|url=https://www.w3.org/TR/SVG2/linking.html#XLinkRefAttrs|title=Linking β SVG 2|website=www.w3.org|access-date=2016-09-18}}</ref> ====RDDL==== The [[RDDL|Resource Directory Description Language]], an extension to [[XHTML Basic]] that is used to describe [[XML Namespaces]], uses simple XLinks.<ref>{{citation |url=http://www.rddl.org/#attributes |title=Resource Directory Description Language (RDDL) |first1=Jonathan |last1=Borden |first2=Tim |last2=Bray |date=2002-02-18 |publisher=The Open Healthcare Group, Antarcti.ca Systems}}</ref> ====XBRL==== The [[XBRL|eXtensible Business Reporting Language]] has used simple and extended XLinks since the XBRL 2.0 specification was published in 2001.<ref>{{citation |url=http://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html#_3.5 |title=Extensible Business Reporting Language (XBRL) 2.1 - XLink in XBRL |publisher=XBRL International Inc.}}</ref> Most large XBRL taxonomies contain extensive linkbases. As of 2009, XBRL is probably the most extensive use of XLink in production systems. ====METS==== 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 <code>to</code> and <code>from</code> attributes to type IDREF instead of NMTOKEN).<ref>{{citation |url=https://www.loc.gov/standards/mets/METSOverview.v2.html |title=METS: An Overview & Tutorial |publisher=Library of Congress}}</ref><ref>{{citation |url=https://www.loc.gov/standards/mets/METS%20Documentation%20final%20070930%20msw.pdf |title=Metadata Encoding and Transmission Standard: Primer and Reference Manual |publisher=Library of Congress |date=September 2007 |pages=133}}</ref> ====GML==== [[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 [[Resource Description Framework|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. ===Implementations=== ====Mozilla Firefox==== [[Mozilla Firefox]] has supported simple XLinks since version 1.5, but only for [[Scalable Vector Graphics|SVG]] and [[MathML]] documents. It is unsupported in other XML documents.<ref>{{citation |url=https://developer.mozilla.org/en/XLink |title=XLink - MDC |publisher=Mozilla |access-date=2010-02-19 |archive-date=2012-04-06 |archive-url=https://web.archive.org/web/20120406120631/https://developer.mozilla.org/en/XLink |url-status=dead }}</ref> Only the <code>xlink:href</code>, <code>xlink:show</code>, <code>xlink:target</code> and <code>xlink:title</code> attributes are supported.<ref>{{citation |url=https://developer.mozilla.org/en/SVG_in_Firefox |title=SVG in Firefox |publisher=Mozilla |access-date=2010-02-19 |archive-date=2008-08-29 |archive-url=https://web.archive.org/web/20080829121506/http://developer.mozilla.org/en/SVG_in_Firefox |url-status=dead }}</ref> ====Prince==== [[Prince (software)|Prince]] supports simple XLinks.<ref>{{citation |url=http://www.princexml.com/doc/7.0/xml-input/ |title=Prince: XML Input |publisher=YesLogic}}</ref> ==References== <!--See http://en.wikipedia.org/wiki/Wikipedia:Footnotes for an explanation of how to generate footnotes using the <ref> tags--> {{Reflist|30em}} == External links == *[http://www.w3.org/TR/xlink11/ W3C Recommendation] *[http://www.w3.org/TR/xlink/ W3C Recommendation (version 1.0)] *[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] for [[Mozilla]] browsers {{W3C Standards}} {{Hypermedia}} {{Authority control}} {{DEFAULTSORT:Xlink}} [[Category:Markup languages]] [[Category:XML-based standards]] [[Category:World Wide Web Consortium standards]] [[Category:Hypertext]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Authority control
(
edit
)
Template:Citation
(
edit
)
Template:Cite web
(
edit
)
Template:Hypermedia
(
edit
)
Template:Other uses
(
edit
)
Template:Redirect
(
edit
)
Template:Reflist
(
edit
)
Template:Short description
(
edit
)
Template:W3C Standards
(
edit
)