[Bug 14185] New: fn:collection/fn:doc FODC0002

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

           Summary: fn:collection/fn:doc FODC0002
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators 3.0
        AssignedTo: mike@saxonica.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


There is (inconsistent overloading of error codes in fn:doc and fn:collection.

fn:doc

FODC0002 - dereferencing/parsing fails
        OR available documents provides no mapping for the absolutized URI.
FODC0005 - invalid URI

Here FODC0002 is overloaded with two possible meanings.

fn:collection
FODC0002 - dereferencing/parsing failso
FODC0004 - invalid URI
        OR available collections provides no mapping for the absolutized URI.

Here FODC004 is overloaded.  It seams inconsistent that FODC0004 is overloaded
here, rather than FODC0002.  The brief description of FODC0002 as "Error
retrieving resource." seems to indicate that FODC0002 should be the code when
available collections provides no mapping fo the absolutized URI.

Vaguely related bug reports are Bug 3726 and Bug 7072.  The proposed text in
7072:

" The collection URI is dereferenced to yield a resource that provides a set of
document URIs. If this dereferencing operation fails, an error is raised
[err:FODC0002]"

seems to suggest that FODC0002 should indeed be used when no mapping is
available.

-- 
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 Friday, 16 September 2011 15:40:18 UTC