| This is thetalk page for discussing improvements to theXQuery article. This isnot a forum for general discussion of the subject of the article. |
Article policies |
| Find sources: Google (books ·news ·scholar ·free images ·WP refs) ·FENS ·JSTOR ·TWL |
| This article is ratedStart-class on Wikipedia'scontent assessment scale. It is of interest to the followingWikiProjects: | |||||||||||||||||
| |||||||||||||||||
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 2004193.120.126.114
I have not used this language, but I feel it would be neater if the body of the for loop in the example script was indented. This would look much clearer, and that's how I would present it myself, if the language permits it. I am assuming the "return" expression is actually evaluated once per iteration of the loop, and dumps output sequentially (unlike return statements in other languages).82.32.31.166 (talk)23:17, 6 March 2012 (UTC)[reply]
Helllo! Wikipedia recommended for me to improve XQuery by adding citations. I don't rly have a background in this topic and am having trouble understanding where to find links. Is Chatgpt useful for helping editors find links? Or is this considered a no-no? lmk! thank youSpindella000 (talk)14:56, 6 November 2025 (UTC)[reply]