W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2004

ORA-XQ-229-C: Using concatenation to define the result of the FLWOR expr is vague

From: Stephen Buxton <Stephen.Buxton@oracle.com>
Date: 16 Feb 04 14:01:13
Message-Id: <200402162201.i1GM1D209137@rgmgw6.us.oracle.com>
To: public-qt-comments@w3.org
Cc:

SECTION 3.8.3: Order by and Return Clauses

In 3.8.3,  the Xquery spec says "The return clause of a
FLWOR expression is evaluated once for each tuple in the 
tuple stream, and the results of these evaluations are
concatenated to form the result of the FLWOR expression".

The usage of the word 'concatenated' is vague here. Since the XQuery
result does not support nested sequences, if a tuple contains
a sequence, all the items of the sequence become the items of the
sequence for the return clause of the FLWOR expression. So in this
sense, the 'concatenation' here really means "Constructing Sequences"
as defined in "3.3.1".  We should define this concatenation process  to be the same as the construction of Sequences specified in 3.3.1.
This also implies that the empty sequence in the tuple is dropped as defined in constuction of Sequences. 'concatenation' does not clarify whether the empty sequence is dropped.

- Steve B.
Received on Monday, 16 February 2004 17:01:21 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:17 UTC