24.08.2015 Views

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Syntax Highlight and Content CompletionTo create a new XQuery document select File > New (Ctrl+N) and when the New dialog appears select XQuery entry.<strong>Oxygen</strong> <strong>XML</strong> <strong>Author</strong> <strong>plugin</strong> provides syntax highlight for keywords and all known XQuery functions and operators.A content completion component is also available and can be activated with the (Ctrl-Space) shortcut. The functionsand operators are presented together with a description of the parameters and functionality. For some supported databaseengines like eXist and Berkeley DB, the content completion list offers the specific XQuery functions implemented bythat engine. This feature is available when the XQuery file has an associated transformation scenario which uses one ofthese database engines or the XQuery validation engine is set to one of them via a validation scenario or in the page.The extension functions built in the Saxon product are available on content completion if one of the following conditionsare true:• the edited file has a transformation scenario associated that uses as transformation engine Saxon 9.3.0.5 PE or Saxon9.3.0.5 EE• the edited file has a validation scenario associated that use as validation engine Saxon 9.3.0.5 PE or Saxon 9.3.0.5EE• the validation engine specified in Preferences is Saxon 9.3.0.5 PE or Saxon 9.3.0.5 EE.If the Saxon namespace (http://saxon.sf.net) is mapped to a prefix the functions are presented using this prefix, thedefault prefix for the Saxon namespace (saxon) is used otherwise.If you want to use a function from a namespace mapped to a prefix, just type that prefix and the content completion willdisplay all the XQuery functions from that namespace. When the default namespace is mapped to a prefix the XQueryfunctions from this namespace offered by content completion are also prefixed, only the function name being usedotherwise.The content completion popup window presents all the variables and functions from both the edited XQuery file and itsimports.XQuery Outline ViewThe XQuery document structure is presented in the XQuery Outline view. The outline tree presents the list of all thecomponents (namespaces, imports, variables, and functions) from both the edited XQuery file and its imports. It allowsquick access to a component by knowing its name. It can be opened from the menu action.The following actions are available in the :• Selection update on caret move - Controls the synchronization between Outline view and source document.The selection in the Outline view can be synchronized with the caret moves or the changes performed in the XQueryeditor. Selecting one of the components from the Outline view also selects the corresponding item in the sourcedocument.• Sort - Allows you to alphabetically sort the XQuery components.• Show all components - Displays all collected components starting from the current file. This option is set by default.• Show local components - Displays components defined in the current file only.• Group by location/namespace/type - Allows you to group the components by location, namespace, and type. Whengrouping by namespace, the main XQuery module namespace is presented first in the Outline view.If you know the component name, you can search it in the Outline view by typing its name in the filter text field fromthe top of the view or directly on the tree structure. When you type the component name in the filter text field you canswitch to the tree structure using the arrow keys of the keyboard, (Enter), (Tab), (Shift-Tab). To switch from treestructure to the filter text field, you can use (Tab), (Shift-Tab).Tip: The search filter is case insensitive. The following wildcards are accepted:• * - any string• ? - any character• , - patterns separatorIf no wildcards are specified, the string to search is used as a partial match (like *textToFind*).Querying Documents | 314

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!