[Bug 1432] New: [FO] Editorial: fn:collection rewording

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

           Summary: [FO] Editorial: fn:collection rewording
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators
        AssignedTo: ashok.malhotra@oracle.com
        ReportedBy: mrys@microsoft.com
         QAContact: public-qt-comments@w3.org


The spec currently says: "If $arg is the empty sequence, the function behaves 
as if it had been called without an argument. See below."
The text appears above! 

It also seem to produce two conflicting error messages. It says:

"If $arg ... cannot be resolved, an error is raised [err:FODC0002]." and "If 
Available collections provides no mapping for the string, an error is raised 
[err:FODC0004]." The second case seems like it is the case where the URI 
cannot be resolved. Or is the term "resolved" used with two different meanings 
(looking up the meaning of the URI vs adding it to the base-URI?). Please 
clarify.

Proposed rewording of the relevant section (without taking care of resolve and 
two errors yet since intent not clear):

"Summary: This function takes an xs:string as argument $arg and returns a 
sequence of nodes obtained by interpreting $arg as an xs:anyURI and resolving 
it according to the mapping specified in "Available collections described in 
Section C.2 Dynamic Context Components"XP. 

If $arg is the empty sequence, the function behaves as if it had been called 
without an argument (see below).

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, 
or cannot be resolved, an error is raised [err:FODC0002].

Otherwise, if Available collections provides a mapping from this string to a 
sequence of nodes, the function returns that sequence. If Available 
collections maps the string to an empty sequence, then the function returns an 
empty sequence. If Available collections provides no mapping for the string, 
an error is raised [err:FODC0004]. 

If $arg is not specified, the function returns the sequence of the nodes in 
the default collection in the dynamic context. See Section "C.2 Dynamic 
Context Components"XP. If the value of the default collection is undefined an 
error is raised [err:FODC0002].

Received on Friday, 13 May 2005 23:03:45 UTC