The applet on this page contains a parser for the language defined by XQuery 1.0 and XPath 2.0 Formal Semantics (Second Edition). It allows you to type in an expression, and then view the parse tree, or else obtain an error if it is syntactically incorrect. The results should not be used as an absolute reference, and may flag legal syntax or errors not intended by the drafts. However, the parser used here was generated by processing the same representation of the grammar that was used to produce the EBNF productions in the corresponding specification(s). This parser is also used by the working groups to validate the integrity of the grammar.
This page is meant to be a tool for readers and parser implementers. Implementers are invited to visit the Resources section below the applet.
Type in a XQuery/XPath Core expression then click on the button:
If the Applet box above is gray, or non-functional, it is likely that your browser does not support Java. In particular, Microsoft no longer distributes their Java VM. You may install the Sun Java Plug-in. Go to http://java.sun.com/products/plugin/ and follow the "Download the JRE" link, and install.
Implementers interested in the details of how this applet is produced are invited to view/download the following files.
Files specific to the applet on this page (and the particular syntax it recognizes):