Jump to content

XML Base

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by SmackBot (talk | contribs) at 09:33, 24 December 2009 (Delink dates (WP:MOSUNLINKDATES) using Project:AWB). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

XML Base is a World Wide Web Consortium recommended facility for defining base URIs for parts of XML documents.

XML Base recommendation was adopted on 2001-06-27.

The attribute xml:base may be inserted in XML documents to specify a base URI other than the base URI of the document or external entity. The value of this attribute is interpreted as a URI Reference as defined in RFC 3986 [IETF RFC 3986]. It serves the function described in section 5.1.1 of RFC3986, establishing the base URI (or IRI) for resolving any relative references found within the effective scope of the xml:base attribute.

In namespace-aware XML processors, the "xml" prefix is bound to the namespace name http://www.w3.org/XML/1998/namespace as described in Namespaces in XML [XML Names]. Note that xml:base can be still used by non-namespace-aware processors.