XQuery is intended for labeling information extracted from multiple structured sources, such as XML documents, object repositories, and relational databases.
The Outline view displays the list of all components (namespace declarations, variables, and functions) from the imported modules, along with the components declared in the current file. Components can be sorted by name and grouped by type, location, and namespace.
The Outline view's 'filter text' field allows you to quickly find a component by its name, or to display in the tree only the components matching the search expression.
The Content Completion Assistant is triggered by the CTRL+SPACE shortcut at any point in the expression. It shows the list of all the available XQuery functions and keywords.
For all the supported XML database engines (eXist, MarkLogic, Tiger Logic, Oracle, SQL Server, Documentum xDB (X-Hive/DB), etc.), the Content Completion Assistant displays both the XQuery standard functions and the extension functions available for that engine.
Each of the extension functions are displayed, along with their documentation, thus the relevant information is readily available.
The Content Completion Assistant offers variables and functions from the edited file and also from the imported XQuery modules.
Modifications in other modules trigger the list of collected components to be automatically updated.
XQueries are similar to the XSLT stylesheets in the sense that they are both capable of transforming an XML input into another format. You can define transformation scenarios that specify the input URL, preview mode, XML or XHTML. The results can be saved and opened in the associated application. You can even run an FO processor on the output of an XQuery.
The transformation scenarios may be shared amongst many XQuery files, and are exported at the same time as the XSLT scenarios.
When editing an XQuery file, oXygen detects the documents used as inputs and displays a simplified outline for each one. The Input view can analyze documents that are stored on the local file system.
You can use the drag-and-drop triggered pop-up menu to easily create XQuery FLWOR constructs or XPath expressions.
If you have a transformation scenario for the XQuery file and you specify an input XML file, it will also be added to the displayed input trees.
The Saxon EE (Schema Aware) that is bundled with oXygen can be used as an XQuery processor.
For XQuery, oXygen uses the Saxon EE processor which is bundled with oXygen. This conforms to the XQuery Working Draft http://www.w3.org/TR/xquery/. The processor is used in two cases, validation and execution of the XQuery document. Although the execution implies a validation, it is faster to check the expression and make sure it is valid before executing it.
Using the bundled Saxon EE XSLT processor, oXygen offers support for XQuery Update 1.0. Aside from querying XML documents, you can modify them using the various insert/delete/modify/create methods available in the XQuery Update 1.0 standard.
You can simply choose Saxon EE as a transformer in the scenario associated with XQuery files containing update statements, and oXygen will notify you if the update was successful.
oXygen integrates the xqDoc tool to generate HTML documentation for XQuery files with just a few clicks. It accepts one or more XQuery files as input and the namespace functions are configurable.