Jump to content

Talk:XQuery

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 220.227.68.5 (talk) at 13:31, 12 March 2009 (→‎Purpose of XQuery). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Purpose of XQuery

I feel the description of the purpose of XQuery misses the point. While you can use XQuery on a single XML document, the main intended use is to search through collections, e.g. databases, of XML documents, analogous to SQL for RDBMSs.

From the W3C site: "The mission of the XML Query project is to provide flexible query facilities to extract data from real and virtual documents on the World Wide Web, therefore finally providing the needed interaction between the Web world and the database world. Ultimately, collections of XML files will be accessed like databases. "

The view that this article conveys is understandible given that current tutorials often assume a single document as the student is likely to be using a command line processor against a sample file. This creates the impression that XQuery is a weird form of XSLT. I believe that XSLT is a better fit for problems of transforming XML files and that the justification for XQuery is that it allows processors to optimise the search across a collection of XML documents. — 11:02, 4 August 2004 193.120.126.114