Liquid XML Studio
XQuery Debugger Options
See Also Send Feedback
XQuery Editor/Debugger > XQuery Debugger Options

Glossary Item Box

The debugger options shown are dependant upon the XQuery engine selected.

Currently the only XQuery engine is supported is

Saxon HE XQuery Engine options

Input

Main Module Filename - The XQuery file that will be executed or debugged (read only).

Context Item - The initial context for the XQuery expression, this must be an XML file. XQuery expressions do not have to have an initial context object, but they normally do.

Output

Filename - The filename that the default output file to be written to.

Format - The format of the output file. This affects the validation rules and formatting of the output.

Input Values

Sets parameters within the XQuery expression. The value of the parameter can be a string or XML loaded from a file.
The parameter values can be picked up in the xquery using the directive.

define variable $id  as xs:string external

Parameter Name - The name of the parameter (must match the name attribute in the param directive).

Data Type - The type of data either text or XML data read from a file.

Value - The value either the text literal or the filename, depending on the value of data type

Modules

Allows other XQuery scripts to be imported into the parent script. To do this the filenames must be aliases with a module Url, and then imported like this

module "http://example.com/xquery/library/book"

 

Module Uri - The alias the XQuery module is known by. This value is used in the module <alias> directive in the XQuery script.

Filename - The filename of the XQuery module to load

Properties

Base Uri - The base URI property is used when resolving relative URIs within a module. For example, the fn:doc function resolves a relative URI using the base URI of the calling module.

Boundary Space - Boundary-space policy controls whether boundary whitespace is preserved by element constructors during processing of the query.] If boundary-space policy is preserve, boundary whitespace is preserved. If boundary-space policy is strip, boundary whitespace is stripped (deleted). A further discussion of whitespace in constructed elements can be found in 3.7.1.4 Boundary Whitespace

Default Collation - The default collation is the collation that is used by functions and operators that require a collation if no other collation is specified. For example, the gt operator on strings is defined by a call to the fn:compare function, which takes an optional collation parameter. Since the gt operator does not specify a collation, the fn:compare function implements gt by using the default collation.

Enabled Optimizations - Turns on/off Saxon performance optimizations. For debugging it is recommended that this be turned off, as the execution path with it turned on can make debugging difficult to understand.

Show whitespace in watch windows - default unchecked, shows/hides whitespace nodes within the Watch and Variable windows. Whitespace nodes are typically not processed within an stylesheet, and thus just clutter up the watch windows.

 

See Also