xquery.xpath.CompileOptions

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

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

Attributes

xquery.xpath.CompileOptions.calc_text_locations
xquery.xpath.CompileOptions.catalog_mappings

A dictionary of strings containing the xml catalog mappings.

xquery.xpath.CompileOptions.decimal_formats
xquery.xpath.CompileOptions.default_element_namespace
xquery.xpath.CompileOptions.default_function_namespace
xquery.xpath.CompileOptions.enable_trace
xquery.xpath.CompileOptions.execution_mode
xquery.xpath.CompileOptions.initial_schema
xquery.xpath.CompileOptions.static_base_uri

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

xquery.xpath.CompileOptions.statically_known_namespaces

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

xquery.xpath.CompileOptions.use_standard_namespace_prefixes

Use the standard namespace prefixes in the statically known namespace map: xs, fn, xsi, math, map, array, err, altovaext (Unless overwritten by values in xpath.CompileOptions.statically_known_namespaces)

xquery.xpath.CompileOptions.version

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

xquery.xpath.CompileOptions.whitespace_handler

Special methods

__eq__, __ge__, __gt__, __le__, __lt__, __ne__