W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2007

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

From: <bugzilla@wiggum.w3.org>
Date: Tue, 16 Jan 2007 12:38:27 +0000
To: public-qt-comments@w3.org
Message-Id: <E1H6na7-0001Me-HR@wiggum.w3.org>


------- 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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:32 UTC