This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
I may be completely off the mark here, but comparing the error codes from fn:collection and fn:doc, there seems to be an inconsistency. Why does fn:collection not return FODC0004 when the argument is not a valid xs:anyURI? fn:collection If the $arg is a relative xs:anyURI, it is resolved against the value of the base-URI property from the static context. If $arg is not a valid xs:anyURI, an error is raised [err:FODC0002]. FODC0002 = Error retrieving resource. fn:doc $uri is not a valid xs:anyURI, an error is raised [err:FODC0005]. If it is a relative URI Reference, it is resolved relative to the value of the base URI property from the static context. FODC0005 = Invalid argument to fn:collection.
Slightly related; there were some editorial fixes in this area previously: http://www.w3.org/Bugs/Public/show_bug.cgi?id=3387 Frans
On Sept. 19, the XSL and XML Query WGs agreed to resolved this bug report by making the suggested change to the second paragraph of fn:collection. This paragraph will now read: "If the $arg is a relative xs:anyURI, it is resolved against the value of the base-URI property from the static context. If $arg is not a valid xs:anyURI, an error is raised [err:FODC0004]." Please close this bug report if you agree with this resolution.
Thanks.