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 3386 - Editorial, 15.5.4 fn:doc: error code not explicitly specified
Summary: Editorial, 15.5.4 fn:doc: error code not explicitly specified
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 minor
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 10:28 UTC by Frans Englich
Modified: 2006-07-02 11:49 UTC (History)
0 users

See Also:


Attachments

Description Frans Englich 2006-06-24 10:28:17 UTC
Close to the end of 15.5.4 fn:doc is this paragraph found:

<quote>
One possible processing model for this function is as follows. The resource identified by the URI Reference is retrieved. If the resource cannot be retrieved, an error is raised [err:FODC0002]. The data resulting from the retrieval action is then parsed as an XML document and a tree is constructed in accordance with the [XQuery 1.0 and XPath 2.0 Data Model]. If the top-level media type is known and is "text", the content is parsed in the same way as if the media type were text/xml; otherwise, it is parsed in the same way as if the media type were application/xml. If the contents cannot be parsed successfully, an error is raised. Otherwise, the result of the function is the document node at the root of the resulting tree. This tree is then optionally validated against a schema.
</quote>

It says "If the contents cannot be parsed successfully, an error is raised," without specifying the error code. I assume it's FODC0002, but specifying it explicitly would be clearer. The description for FODC0002 reads "Error retrieving resource."


Frans
Comment 1 Ashok Malhotra 2006-07-02 11:48:33 UTC
Thanks!  Fixed.  Please close.