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

[XQuery] SAG-XQ-002 Input collection

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Thu, 27 Nov 2003 12:56:33 +0100
Message-ID: <DFF2AC9E3583D511A21F0008C7E62106073DD2E9@daemsg02.software-ag.de>
To: public-qt-comments@w3.org
SAG-XQ-002 Input collection

We regret that there is no simple intuitive way of writing a query whose
input is some implicit (context-defined) collection of documents.

The input() function went some way to meeting this need, but this has
disappeared.

The context item is restricted to a single node or value, which sends the
wrong message about the purpose of XQuery, which is that it is designed
primarily to process large collections of documents, unlike XPath, which is
designed primarily to locate nodes within a single document.

Other mechanisms for supplying a collection as input to the query (using
parameter variables, and using the collection() function) are syntactically
cumbersome.

We think that for XQuery (as distinct from XPath and XSLT) the concept of an
implicit input collection is a useful one, and that there should be a
convenient syntax to refer to it. (How about "~", or perhaps "$$"?)

Michael Kay
for Software AG
Received on Thursday, 27 November 2003 06:57:52 UTC

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