XQuery: A Typed Functional Language for Querying XML
暂无分享,去创建一个
XQuery is a typed, functional language for querying XML, currently being designed by the XML Query Working Group of the World-Wide Web Consortium. Here are examples of XQuery queries on a suitable XML document describing books. To list titles of all books published before 2000 you might write: document (books.xml)/BOOKS/BOOK[@YEAR { $book/@YEAR, $book/TITLE } And to list for each author the titles of all books by that author you might write: let $books:= document(books.xml)/BOOKS for $author in distinct($books/BOOK/AUTHOR) return { $books/BOOK[AUTHOR = $author]/TITLE }
[1] toExcel. Extensible Markup Language (Xml) 1.0 Specifications: From the W3c Recommendations , 2000 .
[2] Philip Wadler,et al. The essence of XML , 2003, POPL '03.
[3] C. M. Sperberg-McQueen,et al. eXtensible Markup Language (XML) 1.0 (Second Edition) , 2000 .
[4] James Clark,et al. XSL Transformations (XSLT) Version 1.0 , 1999 .
[5] S. Boag,et al. XQuery 1.0 : An XML query language, W3C Working Draft 12 November 2003 , 2003 .