XLink

From Seo Wiki - Search Engine Optimization and Programming Languages
Jump to navigationJump to search

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

XLink 1.0 remains the current version of XLink where it received W3C Recommendation status on 2001 June 27.[1] XLink 1.1 entered W3C Candidate Recommendation status on 2006 March 28.[2]

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:

<?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>

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 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

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 (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 xlink:actuate or xlink:show attributes.
  • In XML documents XLinks cannot be applied to elements in the XHTML namespace (Firefox 2.0)

Internet explorer

Internet Explorer support very limited xlinks if msxml version 4.0 is used.

Netscape

Netscape (7.2) has the same support for simple XLinks as Firefox, except that the xlink:show="new" attribute works correctly.

SVG applications

Hypertext links in SVG can currently be defined as XLink simple links.[3] The W3C Working Draft of SVG 1.2 proposes using XLink extended links as well.[4]

RDDL

The XML language RDDL, an extension to XHTML Basic that is used to describe XML 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 2009, XBRL is probably the most extensive use of XLink in production systems.

METS

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.[5])[6]

References

External links

de:XLink (Syntax) es:XLink fr:XLink is:XLink it:XLink nl:XLink ko:XLink ja:XLink pl:XLink ru:XLink fi:XLink sv:XLink tr:XLink uk:XLink

If you like SEOmastering Site, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...