Syntax Highlight and Content Completion

To create a new XQuery document select File > New (Ctrl+N) and when the New dialog appears select XQuery entry.

In the XQuery document Oxygen provides syntax highlight for keywords and all known XQuery functions and operators. Also for these there is available a content completion component that is activated with the (Ctrl-Space) shortcut. The functions and operators are presented together with a comment about parameters and functionality. For some supported database engines like eXist and Berkeley DB, the content completion lists contain the XQuery functions implemented by that engine. The XQuery file must have an associated transformation scenario which uses one of the specified engines or the validation uses one of these engines.

The extension functions built in the Saxon product are available on content completion if one of the following conditions are true:

If the Saxon namespace (http://saxon.sf.net) is mapped to a prefix this prefix is used when the functions are presented, otherwise the default prefix for the Saxon namespace (saxon) is used.

If you want to use a function from a namespace mapped to a prefix, just type that prefix and the content completion will display all the XQuery functions from that namespace. The XQuery functions from default namespace offered by content completion are prefixed if the default namespace is mapped to a prefix, otherwise is displayed just the name of this.

The content completion popup window presents all the variables and functions from both the edited XQuery file and its imports.