W3C home > Mailing lists > Public > public-qt-comments@w3.org > July 2003

Re: ORA-FO-COLLECTION 15.4.5 fn:collection

From: Jeni Tennison <jeni@jenitennison.com>
Date: Tue, 1 Jul 2003 10:32:45 +0100
Message-ID: <52481366398.20030701103245@jenitennison.com>
To: Stephen Buxton <stephen.buxton@oracle.com>
CC: public-qt-comments@w3.org

Hi Stephen,

> *Functions and Operators, Section 15.4.5 fn:collection*
> It would be nice if there were some way, using fn:collection, to get
> metadata (eg document name) alongside nodes, probably in a sequence
> of tuples or a tuple of sequences.

XPath/XQuery doesn't have the notion of "tuple"; the best that
collection() could do is return a sequence in which document names and
document nodes alternated, and that would be messy, particularly in
terms of typing.

Instead, you have to capture the sequence of document nodes in a
variable and use other functions to access information about them. I
don't think that this is too onerous.



Jeni Tennison
Received on Tuesday, 1 July 2003 05:32:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:48 UTC