XQuery Editor

XQuery is intended for labeling information extracted from multiple structured sources, such as XML documents, object repositories, and relational databases. oXygen offers help editing XQuery expression by the following means:

XQuery Outline View

The outliner presents the list of all components (namespace declarations, variables and functions) from the imported modules together with the components declared in the current file. Components can be sorted by name and grouped by type, location and namespace.

XQuery Input View

The outliner filter text field allows you to quickly find a component by knowing its name, or to display in the tree only the components matching the search expression.

Content Completion Assistant Offers XQuery Functions, Including XML Database Extensions

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 together with their documentation, thus the relevant information is at your fingertips.

XQuery Content Completion

Content Completion Assistant Offers the List of Components From Imported XQuery Modules

The Content Completion Assistant offers variables and functions not only from the edited file but also from the imported XQuery modules.

Modifications in other modules trigger the automatic update of the list of collected components

Transformation Scenarios

XQueries are very 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, the preview mode, XML or XHTML. The result can be saved and opened in the associated application. You can even run a FO processor on the output of an XQuery.

The transformation scenarios may be shared between many XQuery files, and are exported at the same time with the XSLT scenarios.

XQuery Transformation Scenario

XQuery Input View

When editing an XQuery file, oXygen detects the documents used as inputs and presents a simplified outline for each one. The Input view can analyze documents that are stored on the local file system.

XQuery Input View

You can use the drag-and-drop triggered pop-up menu to easily create XQuery FLWOR constructs or XPath expressions.

XQuery DnD

If you have a transformation scenario for the XQuery file and you specify an input XML file, this one will also be added to the displayed input trees.

Saxon EE can be used as XQuery Processor.

The Saxon EE (Schema Aware) that is bundled with oXygen can be used as XQuery processor.

XQuery Validation and Execution

oXygen uses for XQuery 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 syntactically check the expression and make sure it is valid before executing it.

XQuery validation

XQuery Update

Using the bundled Saxon EE XSLT processor oXygen offers support for XQuery Update 1.0. Thus, besides querying XML documents, you can modify them using the various insert/delete/modify/create methods available in the XQuery Update 1.0 standard.

Just 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.

XQuery Documentation

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 function namespaces are configurable.

HTML Documentation for XQuery Documents
Video Tutorials
Upcoming Events
Content Management Strategies/DITA North America 2015
DITA North America 2015
April 20-22, 2015
Chicago, Illinois, US
" oXygen XML Editor is the premier text editor for XML geeks, and an indispensable tool for O'Reilly's Production group. My team uses oXygen XML Editor for everything from simple XML editing to Schema validation and XSLT transformations. The digital production staff especially loves oXygen's built-in EPUB support, which eliminates a great deal of the grunt work that is usually entailed in editing EPUB files. The more we use oXygen, the more realize what a powerful tool it can be in digital and XML-based workflows."
Adam Witwer
Director of Content and Publishing Operations
O'Reilly Media