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 4234 - K2-SeqExprCast-207 contains valid xs:anyUri
Summary: K2-SeqExprCast-207 contains valid xs:anyUri
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC All
: P2 minor
Target Milestone: ---
Assignee: Frans Englich
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-16 13:26 UTC by Nick Jones
Modified: 2007-01-22 11:37 UTC (History)
0 users

See Also:


Attachments

Description Nick Jones 2007-01-16 13:26:17 UTC
xs:anyURI("http:\\invalid>URI\someURI")

expects an error thrown due to an invalid xs:anyUri, but it can be escaped to a valid URI "http:%5C%5Cinvalid%3EURI%5CsomeURI", so should not throw an error.
Comment 1 Michael Kay 2007-01-16 13:54:13 UTC
I think the processor has some latitude on this one. The XML Schema spec says that after escaping it must be a "legal URI according to [RFC 2396], as amended by [RFC 2732]. The term "legal URI" isn't actually used or defined in those specs. This URI conforms to the "general syntax" for URIs described in section 3 of the RFC, but not to "hierarchic syntax" used for http URIs. The Schema spec says in a non-normative note that "Each URI scheme imposes specialized syntax rules for URIs in that scheme, including restrictions on the syntax of allowed fragment identifiers", and that minimally-conforming processors are not expected to validate against these specialized syntax rules; but it's not clear that this Note makes it wrong for a processor to check that a URI in the http scheme adheres to the syntax of a hierarchic URI.  
Comment 2 Frans Englich 2007-01-21 12:45:53 UTC
A fix has been attempted in CVS, and XQTS_current.zip has been updated to contain the new change. If it can be verified that the change is correct, it would be appreciated.

If this resolution is satisfiable, feel free to change status to closed. Otherwise, reopen this report. If no opinion on the resolution is expressed within two weeks, I will change status to closed.

This change to this report was part of a batch-change of several reports.