- From: Richard Tobin <richard@inf.ed.ac.uk>
- Date: Tue, 9 Sep 2008 13:54:50 +0100 (BST)
- To: www-xml-linking-comments@w3.org
- Cc: Brett Zamir <brettz9@yahoo.com>
> From reading the documentation of xml:base, I am left unclear as to > whether xml:base can not only be used on the parent of an element, or > whether its presence on any previous ancestor is enough to trigger the > resolving of relative URIs. This is especially unclear as I see a > previous draft of the document did refer to "the nearest ancestor > element" rather than what seems to me to be a more ambiguous > "encapsulating entity". Section 4.3 states that the base URI used for resolving a relative URI is that of the element containing it. Section 4.2 states that the base URI of an element without an xml:base attribute is that of its parent element. So base URIs come from the nearest ancestor with an xml:base attribute. (There is an exception when entity boundaries intervene.) The phrase "encapsulating entity" appears in case 2 of section 4.1, and is quoted from RFC3986. The use of xml:base falls into case 1: it is a URI embedded in the document's content. So "encapsulating entity" has nothing to do with the ancestor elements within the document. -- Richard -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
Received on Tuesday, 9 September 2008 12:55:35 UTC