[Bug 4232] Incorrect expected error for fn-collection-3

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4232





------- Comment #1 from mike@saxonica.com  2007-01-16 12:38 -------
You are assuming that "invalidURI<>" is not a valid instance of xs:anyURI.

XML Schema Part 2 says that a string is a valid instance of xs:anyURI if it
becomes a valid URI after you apply the escaping procedure defined in section
5.4 of XLink. That procedure escapes "excluded characters listed in Section 2.4
of [IETF RFC 2396], except for the number sign (#) and percent sign (%)". That
set includes "<" and ">". So "invalidURI<>" is in fact valid.

As far as I can see, "http:\\invalid>URI\someURI" is also a valid instance of
xs:anyURI, for the same reasons. It's pretty meaningless as a URI, but the spec
doesn't require it to me meaningful, only syntactically valid.

Received on Tuesday, 16 January 2007 12:38:39 UTC