[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

collection-node()

Michael Kay mike at saxonica.com
Thu Dec 18 10:52:29 PST 2008


  collection-node()
> 
> Why does XQuery not have a collection node?
> 

We did consider at one time making collections into first-class objects. I
think the reason it didn't happen was simply that it looked like a lot of
work for a relatively small advantage.

If a collection is a node, then it's rather different from other kinds of
node. Documents can belong to more than one collection, and the documents in
a collection are unordered. (Would the documents in a collection be children
of the collection node? In that case, would they be siblings of each
other?...)

One of the questions we didn't want to answer was whether collections can
contain other collections. Different XML databases have different answers to
that question and it would therefore have absorbed a lot of WG time.

Someone suggested, wisely I think, that it would be a good idea to see what
implementors did with the concept of a collection, see what kind of
consensus emerged, and if there was enough commonality, the WG could then
consider standardizing the functionality further.

Michael Kay
http://www.saxonica.com/



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.