W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2006

[Bug 3486] [XQuery] relative base URI

From: <bugzilla@wiggum.w3.org>
Date: Wed, 16 Aug 2006 15:42:52 +0000
To: public-qt-comments@w3.org
Message-Id: <E1GDNXg-0001z8-Ml@wiggum.w3.org>


------- Comment #3 from mike@saxonica.com  2006-08-16 15:42 -------
Here's a detailed proposal (requested by action A-305-08).

Part 1: the static base URI

In 4.5, delete "overriding any implementation-defined default".

Add at the end of the section: "In the terminology of RFC 3986 (section 5.1),
the URILiteral of the base URI declaration is considered to be a "base URI
embedded in content". If no base URI declaration is present, the base URI in
the static context should be established according to the principles outlined
in RFC 3986 section 5.1: that is, it should default first to the base URI of
the encapsulating entity, then to the URI used to retrieve the entity, and
finally to an implementation-defined default. If the URILiteral in the base URI
declaration is a relative URI, then it is made absolute by resolving it with
respect to this same hierarchy: for example if the URILiteral is "../data/",
and the query is contained in a file whose URI is
"file:///C:/temp/queries/query.xq", then the absolute base URI should be taken
as "file:///C:/temp/data/".

It is not intrinsically an error if this process fails to establish an absolute
base URI; however, the static base URI in the static context is then undefined,
and any attempt to use its value may result in an error.

Part 2: xml:base

In 5.b.i, change "the value of the constructed node's attribute named
xml:base, if this attribute exists;" to "if the constructed node has an
attribute named xml:base, then the value of this attribute, resolved if it is
relative against the base URI in the static context".

In, 2nd list, 4.b.i, make the same change.

Received on Wednesday, 16 August 2006 15:43:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:13 UTC