This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2938 - what of the Base URI is set by the implementation?
Summary: what of the Base URI is set by the implementation?
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.6
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-25 00:07 UTC by Marc Van Cappellen
Modified: 2006-05-17 22:13 UTC (History)
0 users

See Also:


Attachments

Description Marc Van Cappellen 2006-02-25 00:07:33 UTC
base-URI-8.xq seems to expect that the Base URI is not set.
However, what if the implementation always defines this static context 
component?

We believe that requiring to raise error FONS0005 is too strict.

Thanks,
Marc
Comment 1 Marc Van Cappellen 2006-02-26 22:16:45 UTC
We might have a similar sceanrio for Functions\AccessorFunc\BaseURIFunc.xq

In http://www.w3.org/TR/xquery/#id-documentConstructors we read in 4.a:
base-uri is taken from base URI in the static context. If no base URI is 
defined in the static context, the base-uri property is empty.

What of the implementation sets the base URI?
Comment 2 Andrew Eisenberg 2006-02-28 15:08:14 UTC
As you point out, an implementation-may override the default value of "none" for
the Base URI component (in C.1 Static Context Components).

Perhaps these tests should include a conditional based on the value of
fn:static-base-uri?
Comment 3 Marc Van Cappellen 2006-02-28 15:21:01 UTC
Yes, I think that's probably the way to make this type of test work for both 
implementatons that set and don't set the Base URI.

For example, change the query as such that the "computed base uri" is compared 
against fn:static-base-uri(). The test can then either result in an error 
(FONS0005) or be positive and result in "true"

Thanks,
Marc
Comment 4 Carmelo Montanez 2006-03-14 22:27:53 UTC
Correct.  Changed query to use conditional against computed base uri
and allowed for either value ("true" or error).  Please close the bug when
able to verify and if in agreement.

Thanks,
Carmelo
Comment 5 Marc Van Cappellen 2006-05-17 22:13:52 UTC
verified and looks ok