XQuery 1.0 Grammar Test Page
This page is meant to be a tool for readers and parser implementers of XQuery 1.0. It allows them to type in an expression, and then view the parse tree, or else obtain an error if it is syntactically incorrect.
http://www.w3.org/2003/11/applets/xqueryApplet.html