XQuery

Figure 13.34. 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 execution scenario, <oXygen/> uses the processor specified in the scenario. If the processor does not support validation, then the file will not be validated and a warning will be displayed in the results panel. If no scenario is associated then the value from this combo box will be used as validation processor.

Format transformer output

When checked the transformer's output is formatted and indented (pretty printed).

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.

Saxon 8

Figure 13.35. The Saxon XQuery preferences panel

The Saxon XQuery preferences panel

Saxon8 options:

Allow calls on extension functions

If checked external functions called is allowed. Not 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.

Policy for handling recoverable errors in the stylesheet

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.

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