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.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Tuesday, 1 July 2003 05:32:54 UTC

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