[Bug 10004] New: fn:doc errors FODC0002 and FODC0005

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10004

           Summary: fn:doc errors FODC0002 and FODC0005
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators
        AssignedTo: mike@saxonica.com
        ReportedBy: mike@saxonica.com
         QAContact: public-qt-comments@w3.org


This problem exists in both the first and proposed second editions of F+O
1.0/2.0, and also in the draft F+O 1.1.

What should be the error code if fn:doc is called to retrieve a document that
does not exist, for example fn:doc('nonexistent.xml')?

In one place we say "If the Available documents provides no mapping for the
absolutized URI, an error is raised [err:FODC0005]."

In another place we say "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]."

They can't both be right. Since this error is likely to be a common candidate
for try/catch, it's important that we provide clarity about the expected error
code.

See also bug 868 in the member-only bugzilla, raised against the XSLT test
suite on this issue.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 24 June 2010 09:53:06 UTC