W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2006

[Bug 3726] Errors from fn:collection

From: <bugzilla@wiggum.w3.org>
Date: Thu, 14 Sep 2006 08:11:25 +0000
To: public-qt-comments@w3.org
Message-Id: <E1GNmJh-0004LQ-Lb@wiggum.w3.org>


           Summary: Errors from fn:collection
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators
        AssignedTo: ashok.malhotra@oracle.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org

I may be completely off the mark here, but comparing the error codes from
fn:collection and fn:doc, there seems to be an inconsistency.  Why does
fn:collection not return FODC0004 when the argument is not a valid xs:anyURI?


If the $arg is a relative xs:anyURI, it is resolved against the value of the
base-URI property from the static context. If $arg is not a valid xs:anyURI, an
error is raised [err:FODC0002].

FODC0002 = Error retrieving resource.

$uri is not a valid xs:anyURI, an error is raised [err:FODC0005]. If it is a
relative URI Reference, it is resolved relative to the value of the base URI
property from the static context. 

FODC0005 = Invalid argument to fn:collection.
Received on Thursday, 14 September 2006 08:11:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:14 UTC