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 3387 - Editorial, FODC0005 is used by both fn:doc() and fn:doc-available(), but only specified for fn:doc().
Summary: Editorial, FODC0005 is used by both fn:doc() and fn:doc-available(), but only...
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 1.0 (show other bugs)
Version: Candidate Recommendation
Hardware: Other Linux
: 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: editorial
Depends on:
Blocks:
 
Reported: 2006-06-24 11:23 UTC by Frans Englich
Modified: 2006-07-02 11:47 UTC (History)
0 users

See Also:


Attachments

Description Frans Englich 2006-06-24 11:23:34 UTC
The description for FODC0005 reads:

err:FODC0005, Invalid argument to fn:doc.

However, FODC0005 is also used in fn:doc-available(). Here's the cases it's used:

fn:doc(): If $uri is not a valid xs:anyURI, an error is raised [err:FODC0005].

fn:doc(): If the Available documents provides no mapping for the string, an error is raised [err:FODC0005]

fn:doc-available(): If $uri is not a valid xs:anyURI, an error is raised [err:FODC0005].


Possible solutions:
* Change the description for FODC0005 to "Invalid argument to fn:doc or fn:doc-available". I think this is the least intrusive change, and aligns with what currently is specified.
* Allocate a new error code for fn:doc-available(). If detailed error codes are of interest, this is probably an appealing alternative.

I have no preference, I can understand both. Conservatism is understandable, but on the other hand it's neither that intrusive to allocate a new error code.


Frans
Comment 1 Ashok Malhotra 2006-07-02 11:46:03 UTC
Thanks!  Fixed by making error description refer to both functions.  Please close.