XQuery Editor
XQuery is intended for labeling information extracted from multiple structured
sources like XML documents, object repositories and relational databases. <oXygen/>
offers help editing XQuery expression by the following means:
Content Completion and Syntax Highlight
The content completion is triggered by CTRL-Space shortcut, at any point in the
expression. It shows the list of all the available XQuery functions and keywords. Each
function has been commented.
Transformation Scenarios
XQueries are very similar to the XSL 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 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
analyse documents that are stored on the local file system.
You can use the Drag and Drop triggered popup 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, this one will also be added to the displayed input trees.
XQuery Outline view
The overall structure of an XQuery module is presented: the
module name, the import declarations, the variables, the XML namespaces and the user
defined functions.
Saxon8SA can be used as XQuery Processor.
If you have Saxon8 SA (Schema Aware) installed you can use it as XQuery
processor.
XQuery Validation and Execution
<oXygen/> uses for XQuery the Saxon 8.1B processor. This is conformant 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 Documentation
<oXygen/> integrates the xqDoc tool for generating HTML documentation for XQuery
files with just a couple of clicks. It accepts one or more XQuery files as input and
the function namespaces are configurable.
|