[Bug 5647] [XQuery] Default collection

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

           Summary: [XQuery] Default collection
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Platform: PC
               URL: http://www.w3.org/TR/xquery/
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery
        AssignedTo: chamberl@almaden.ibm.com
        ReportedBy: mukul_gandhi@yahoo.com
         QAContact: public-qt-comments@w3.org


In the XQuery 1.0 specification, at http://www.w3.org/TR/xquery/

It's mentioned in section: "2.1.1 Static Context", the following point:

Statically known default collection type. This is the type of the sequence of
nodes that would result from calling the fn:collection function with no
arguments. Unless initialized to some other value by an implementation, the
value of statically known default collection type is node()*.

Then in section, "2.4.4 Input Sources", it's mentioned:
The fn:collection function with zero arguments returns the default collection,
an implementation-dependent sequence of nodes.

My question is:
What practical criterias can implementation consider, when returning non-null
values from fn:collection function?

Should we not have simply said, nothing is returned (or, void) when
fn:collection function is called with no arguments?

Regards,
Mukul

Received on Saturday, 19 April 2008 04:30:44 UTC