This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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
Thanks! Fixed. Please close.