W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2005

[Bug 1249] New: [XQuery] Is it too restrictive to only allow last path step to return atomic values?

From: <bugzilla@wiggum.w3.org>
Date: Thu, 14 Apr 2005 17:26:45 +0000
To: public-qt-comments@w3.org
Cc:
Message-Id: <E1DM873-0006qh-ST@wiggum.w3.org>

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

           Summary: [XQuery] Is it too restrictive to only allow last path
                    step to return atomic values?
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: All
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery
        AssignedTo: chamberl@almaden.ibm.com
        ReportedBy: henryluo@vibrasoft.net
         QAContact: public-qt-comments@w3.org


Under Section 3.2 Path Expressions,

There's a Note specifying that:
Since each step in a path provides context nodes for the following step, in 
effect, only the last step in a path is allowed to return a sequence of atomic 
values.

Is it too restrictive to only allow atomic values returned in last step?
It might be enough just require that Axis Steps preceed Filter Steps.

So that several steps of atomic value sequences can be used to create useful 
value sequences.
For example, (1, 2)/(.+1, .+2)/(.*2, .*3) gives a result sequence of
(4,6,6,8,6,9,9,12).
It'll be more tedious to write that in for expressions.
Received on Thursday, 14 April 2005 17:26:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:37 GMT