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 3726 - Errors from fn:collection
Summary: Errors from fn:collection
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 1.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ashok Malhotra
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-14 08:11 UTC by Tim Mills
Modified: 2006-10-16 10:28 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2006-09-14 08:11:25 UTC
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.
Comment 1 Frans Englich 2006-09-25 19:37:43 UTC
Slightly related; there were some editorial fixes in this area previously:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=3387


Frans
Comment 2 Andrew Eisenberg 2006-10-12 19:20:38 UTC
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.
Comment 3 Tim Mills 2006-10-16 10:28:29 UTC
Thanks.