XQuery

The XQuery preferences panel is opened from menu OptionsPreferences+XML+XSLT/FO/XQuery+XQuery

 

Figure 24.55. The XQuery preferences panel

The XQuery preferences panel

XQuery validate with

Allows you to select the processor to validate the XQuery. In case you are validating an XQuery file that has an associated validation scenario , <oXygen/> uses the processor specified in the scenario. If no validation scenario is associated, but the file has an associated transformation scenario, the processor specified in the scenario will be used. If the processor does not support validation or if no scenario is associated, then the value from this combo box will be used as validation processor

Size limit of Sequence view (MB)

When the result of an XQuery transformation is set in the transformation scenario as sequence the size of one chunk of the result that is fetched from the database in one step is set in this option.

Size limit of Sequence view (MB)

The limit of the data extract from a database when execute a XQuery in lazy mode. If this limit is exceed you can extract more data from the database by click on "More result available" node from the Sequence view.

Format transformer output

When checked the transformer's output is formatted and indented (pretty printed). Option is ignored if in the transformation scenario you choose Sequence(lazy extract data from a database).

Create structure indicating the type nodes

If checked, <oXygen/> takes the results of a query and creates an XML document containing copies of all items in the sequence, suitably wrapped. Option is ignored if in the transformation scenario you choose Sequence(lazy extract data from a database).

 Saxon HE/PE/EE

The XQuery/Saxon HE/PE/EE preferences panel is opened from menu OptionsPreferences+XML+XSLT/FO/XQuery+XQuery+Saxon HE/PE/EE

 

Figure 24.56. The Saxon XQuery preferences panel

The Saxon XQuery preferences panel

Saxon9 options:

Recoverable errors

Allows the user to choose how dynamic errors will be handled. Either one of the following options can be selected: recover silently, recover with warnings or signal the error and do not attempt recovery.

Strip whitespaces

Can have one of the three values: All, Ignore, None. All - strips all whitespace text nodes from source documents before any further processing, regardless of any xml:space attributes in the source document. Ignore - strips all ignorable whitespace text nodes from source documents before any further processing, regardless of any xml:space attributes in the source document. Whitespace text nodes are ignorable if they appear in elements defined in the DTD or schema as having element-only content. None - strips no whitespace before further processing.

Optimization level

This option allows optimization to be suppressed in cases where reducing compile time is important, or where optimization gets in the way of debugging, or causes extension functions with side-effects to behave unpredictably.

Disable calls on extension functions

If unchecked external functions called is allowed. Checking this is recommended in an environment where untrusted stylesheets may be executed. Also disables user-defined extension elements, together with the writing of multiple output files, all of which carry similar security risks.

Saxon9SA specific options:

Schema based validation of the source

This determines whether source documents should be parsed with schema-validation enabled.

Lax schema based validation of the source

This determines whether source documents should be parsed with schema-validation enabled.

Validation errors in the result tree treated as warnings

If checked, all validation errors are treated as warnings, otherwise they are treated as fatal.