Re: ORA-FO-COLLECTION 15.4.5 fn:collection

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