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 29625 - [QT3] XQST0046 for invalid URIs
Summary: [QT3] XQST0046 for invalid URIs
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Working drafts
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-13 19:14 UTC by Benito van der Zander
Modified: 2016-06-23 18:09 UTC (History)
0 users

See Also:


Attachments

Description Benito van der Zander 2016-05-13 19:14:46 UTC
XQST0046 is a MAY. Should it even be tested?


misc-CombinedErrorCodes: 
XQST0046_13, XQST0046_14: <a xmlns="%gg" /> What does xml-names say? "it is not REQUIRED to check that namespace names are URI reference"
XQST0046_01: base-uri(<a xml:base="%gg" />), also accepts <assert-string-value>%gg</assert-string-value>  would it not be resolved to an absolute URI? It might be a relative path without percent-encoding
XQST0046_08: import schema "%gg" at "http://www.w3.org/"; can't find a schema => XQST0059
XQST0046_12: for $x in ("a", "a", "a") order by $x collation "%gg", accepts XQST0038, but that only happens for default collations, it should be XQST0076


K2-OrderbyExprWithout-4
collation "http:\\invalid%>URI\someURI" return
XQST0076, too ?
Comment 1 O'Neil Delpratt 2016-06-23 18:09:32 UTC
The WG decided at the telcon 21st June 2016 to remove test cases that have XQST0046 as the assertion. For the test cases XQST0046_01 and XQST0046_12 that have more than one possible assertion I have decided to leave these ones in.

For the test XQST0046_01 which has the invalid URI refering to '%gg' I think the expected result is correct according to the section: https://www.w3.org/TR/xpath-functions-31/#func-base-uri. Rule 2 states:

2. Otherwise, the function returns the value of the dm:base-uri accessor applied to the node $arg. This accessor is defined, for each kind of node, in the XDM specification (See Section 5.2 base-uri Accessor DM30).