We find that it is very useful to be able to incorporate XQuery expressions within full-text searching expressions and propose that the attached use case be added to the XQuery and XPath Full-Text Use Cases. Best regards, Chavdar Botev -- Chavdar Botev Cornell University Office: (+1 607)255 3914 Use Case: Nested XQuery expression Description -------------- Find all the books published after 2001 that share a subject with a book on "Improving Web Site Usability". This query finds words in an element. It uses an XQuery expression for specifying the words to search. * Operands "Improving Web Site Usability" * Functionality: word query, and query, nested xquery expression * Context: books/book/metadata//@shortTitle, books/book/metadata//subject * Return: books/book/metadata/title, books/book/metadata/author * Comments: This query returns a book if its date of publishing or of last revision is after 2001 and one of its subjects contains the words from a subject of the book whose title is "Improving Web Site Usability". This query uses an XQuery expression to dynamically (at query time) find the subjects of this book. Expected result ---------------- <title shortTitle="Usabilityguy Manuscript Guide">John Wesley Usabilityguy: A Register of His Papers</title> <authors> <author>Millicent Marigold</author> <author>Morty Marigold</author> </authors>Received on Tuesday, 4 November 2003 13:51:28 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:03 GMT