This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
fn-collection-3 fn:collection("invalidURI<>") expectes FODC0002 15.5.6 of F+O states: "if $arg is not a valid xs:anyURI, an error is raised [err:FODC0004]." (For what its worth, the recently added K2-SeqCollectionFunc-1 collection("http:\\invalid>URI\someURI") is testing the same thing, but with the correct error)
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.
Ah, yes, thanks I was making that assumption. But even once it is escaped I still think the error is wrong as then: "If Available collections provides no mapping for the string, an error is raised [err:FODC0004]." applies. err:FODC0002 is only thrown if there is no arguement and no default collection.
Hey Nick: Thanks for teh comment. It looks like FODC0004 is a morte appropriate error code for this case. Changed the expected error to FODC0004. Thanks, Carmelo
Thanks