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 20:07:27 +0000
To: public-qt-comments@w3.org
Message-Id: <E1GDRfj-0004H1-Qa@wiggum.w3.org>


------- Comment #7 from davidc@nag.co.uk  2006-08-16 20:07 -------
(In reply to comment #6)
> None of the xml attributes affect the static context during construction.

Yes, I think that's (probably:-) the right design, and anyway I don't suggest
changing it, but I do think that in this case it wouldn't harm to say it
explictly in the case of xml:base.
<a xml:base="http://a/b">
  <b xml:base="c"/>

is legal syntax both as XML and XQuery, but if the nodes are generated by an
XML parser that supports xml base, then the base uri of <b/> is
http://a/c but if the nodes are generated by an XQuery processor then
(according to comment #3) the base uri of <b/> will be the absolute URI
resulting from resolving "c" against the base URI of the static context of the
This is justifiable but I think it wouldn't harm if the spec explictly gave
such an example, as it may surprise people used to the way xml base works in
XML (and in XSLT2).

So am I right that comment #3 implies that the answer to the question in
comment #4 is


(I just want confirmation that I understand the proposal before agreeing to

Received on Wednesday, 16 August 2006 20:07:48 UTC

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