|
Resources
The primary XQuery resource is www.w3.org/XML/Query. This has links to the draft standards, mailing lists, and implementations. The main documents are
* The actual XQuery specification (www.w3.org/TR/xquery/) is not difficult to read, and is probably where you should go next.
* The Data Model specification (www.w3.org/TR/query-datamodel/) goes into nodes and the functions you can use to manipulate them.
* The Functions and Operators specification (www.w3.org/TR/xquery-operators/) defines the other (non-node) functions, including string and date/time functions.
* The Use Cases document (www.w3.org/TR/xmlquery-use-cases) contains lots of useful examples of XQuery programs to solve specific problems.
* The Formal Semantics specification (www.w3.org/TR/query-semantics/) uses formal mathematical notation and is not for the faint of heart. Most people should skip it.
There's only one XQuery book so far, mainly because there are significant loose ends in the specification: Early Adopter XQuery from Wrox. I am co-authoring (with James McGovern, Kurt Cagle, James Linn and Vaidyanathan Nagarjan) XQuery Kick Start for Sams Publishing, due to be released in 2003. There are no complete standards-conforming implementations either, but the XQuery site lists known implementations, some of which have executable demos. The only open-source implementation currently available seems to be my Qexo. (The Qexo implementation is interesting in that it compiles XQuery programs on-the-fly directly to Java bytecodes.) I recommend considering XQuery when you need a powerful and convenient tool for analyzing or generating XML. |
|