xquery.CompileOptions

The xquery.CompileOptions class is used to initialize the static context components. The xquery.Expression.compile() classmethod can be used to validate an expression with the given xquery.CompileOptions.

class xquery.CompileOptions(Session session, bool _report_unknown_args=True, *, **kwargs)

Attributes

xquery.CompileOptions.allow_undeclared_variables
xquery.CompileOptions.calc_text_locations
xquery.CompileOptions.catalog_mappings

A dictionary containing the xml catalog mappings.

xquery.CompileOptions.decimal_formats
xquery.CompileOptions.default_element_namespace
xquery.CompileOptions.default_function_namespace
xquery.CompileOptions.default_serialization_params
xquery.CompileOptions.enable_trace
xquery.CompileOptions.enable_xquery_update
xquery.CompileOptions.execution_mode
xquery.CompileOptions.external_functions
xquery.CompileOptions.initial_schema
xquery.CompileOptions.static_base_uri

The static-base-uri property of the static context.

xquery.CompileOptions.statically_known_namespaces

A dictionary of strings, containing the in scope prefix mappings to namespace-uris.

xquery.CompileOptions.version

One of the xpath.Version values, providing the version of the xpath specification to be used.

Special methods

__eq__, __ge__, __gt__, __le__, __lt__, __ne__