- From: Paul Cotton <pcotton@microsoft.com>
- Date: Mon, 6 May 2002 00:31:37 -0400
- To: "Ivan Mikhailov" <iv_an_ru@yahoo.com>, <www-xml-query-comments@w3c.org>
Please repost your comment to the new comments list at
public-qt-comments@w3.org@w3.org referenced in the April 30
publications.
/paulc
Paul Cotton, Microsoft Canada
17 Eleanor Drive, Nepean, Ontario K2E 6A3
Tel: (613) 225-5445 Fax: (425) 936-7329
<mailto:pcotton@microsoft.com>
> -----Original Message-----
> From: Ivan Mikhailov [mailto:iv_an_ru@yahoo.com]
> Sent: Friday, May 03, 2002 6:38 AM
> To: www-xml-query-comments@w3c.org
> Subject: Incomplete explanation of the effect of unordered() in "2.9
FLWR
> Expressions"
>
> The spec states that...
>
> The following query returns the same results as
> "for $i in (1, 2), $j in (3, 4)...", but the tuples may occur in any
order
>
> for $i in unordered((1, 2)),
> $j in unordered((3, 4))
> return
> <tuple>
> <i>{ $i }</i>
> <j>{ $j }</j>
> </tuple>
>
> Can it return the following result?
>
> <tuple>
> <i>1</i>
> <j>3</j>
> </tuple>
> <tuple>
> <i>2</i>
> <j>3</j>
> </tuple>
> <tuple>
> <i>1</i>
> <j>4</j>
> </tuple>
> <tuple>
> <i>2</i>
> <j>4</j>
> </tuple>
>
> I think it can't. At lease it would be better if it can't, because I
want
> to have guaranteed
> grouping by $i even if I have unordered() on $i.
>
> Similarly, I hope that
> for $i in unordered((1, 2)), $j in (3, 4) ...
> and
> for $i in (1, 2), $j in unordered((3, 4)) ...
> preserves the order of 'ordered' sequences.
>
> Best Regards,
> IvAn Mikhailov
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
> http://health.yahoo.com
Received on Monday, 6 May 2002 00:32:10 UTC