The debugger options shown are dependant upon the XQuery engine selected.
Currently the only XQuery engine is supported is
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.
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.
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
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
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 isstrip
, boundary whitespace is stripped (deleted). A further discussion of whitespace in constructed elements can be found in 3.7.1.4 Boundary WhitespaceDefault 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 thefn:compare
function, which takes an optional collation parameter. Since thegt
operator does not specify a collation, thefn:compare
function implementsgt
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.