To use the XQuery window for querying:
To display the XQuery window, from the Plugins menu select "XQuery->XQuery". Note that you may select where a Plugin is docked from "Utilize->Global Options->jEdit->Docking", or from the docking menu found next to the window name when it is displayed.
Set a Base URI, by typing it or by using the "Select base URI" button and subsequent dialog. The button is located next to the Base URI text field at the top of the window.
The base uri is used to determine where to find the documents referenced in the XQuery.
Select a XML context, this can be either the buffer or a file (in this case you can again type or use the "Select Context source from file" button and dialog. It is also possible to have no context.
The XML context contains the XML information needed to execute the query.
Select a XQuery input, this can be either the buffer or a file (in this case you can again type or use the "Select XQuery source from file" button and dialog. It is also possible to use the pane, but here no syntax highlighting is provided, so the use of it is mainly restricted to small queries or XPath 2.0 expressions (for more information on how to evaluate XPath 2.0 expressions see section Evaluating XPath 2.0 expressions ).
The XQuery input is the query you want to evaluate.
Run the query using the "Evaluate XQuery" button. What kind of output you will get and where it will be displayed, depends on the options you set in the XQuery options pane (for more information see chapter Setting the options.