Saxon XQuery Settings

You use the Saxon XQuery Settings dialog box to define settings that will be used by the Saxon processor when executing XQuery in Stylus Studio. These settings are also reflected in generated Java code.

For more information on using the Saxon processor, refer to the Saxon documentation:


Command line equivalents for Saxon XQuery settings are shown in parentheses following the field name where applicable.

Execution mode

Whether you want the Saxon processor to run in basic or schema-aware modes.

Tree model

Performance settings for document processing. Generally speaking, the Tiny Tree setting provides superior performance in most cases. For more information on this topic, see Choosing a Tree Model in the Saxon documentation.

Support XML 1.1

Whether or not to allow XML 1.1 and XML Namespaces 1.1 constructs. This option must be set if source documents use XML 1.1, or if result documents are to be serialized as XML 1.1.

Recognize Saxon file extensions and query parameters (-p)

Whether or not you want the Saxon processor to recognize Saxon-specific file extensions and query parameters in URIs.

Validate source documents using DTD (-v)

Whether or not you want the source document and any documents referenced using the document() function to be validated against a DTD.

Whitespace stripping

Whether or not whitespace-only text nodes are stripped from the source document.

Schema-aware Settings

These settings are available only if you are using Saxon-SA to execute your XQuery.

For More Information

Selecting an XQuery Processor

Setting Default Options for Processors

Creating an XQuery Scenario

Free Stylus Studio XML Training: