This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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
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?
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?
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
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
verified and looks ok