xmlns:xlink

XLink Namespace Declaration

This is not an attribute, but the namespace pseudo-attribute. The value provides a prefix and URI to use for the XLink linking attributes. All namespace prefixes must be associated with a URL, and the prefix “xlink” has been set to the URL for the World Wide Web Consortium (W3C) XLink Recommendation.

Used on these Elements:

ValueMeaning
http://www.w3.org/1999/xlinkThe prefix “xlink” has been set to the URL for the W3C XLink Recommendation.
Restriction@xmlns:xlink has a fixed value which may not be changed in the document.

Used on these Elements:

ValueMeaning
http://www.w3.org/1999/xlinkWhen this attribute is used, the prefix “xlink”” should be set to the URL for the W3C XLink Recommendation.
Restriction@xmlns:xlink is an optional attribute; there is no default.

Example


<book
  xmlns:mml="http://www.w3.org/1998/Math/MathML"
  xmlns:xi="http://www.w3.org/2001/XInclude"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  book-type="gov"
  dtd-version="2.0"
  indexed="yes"
  xml:lang="en">
<book-meta>...</book-meta>
<book-body>...</book-body>
<book-back>...</book-back>
</book>