|
[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.comThu Dec 18 10:52:29 PST 2008
> > 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






