OptionalversionXPath specification version to use.
When using XPath10Parser, only '1.0' is valid. When using XPath20Parser, only '2.0' is valid (in strict mode). Use createXPathParser() factory for automatic version selection.
Default: '1.0'
OptionalextensionsOptional XSLT extensions to enable. When provided, the parser will recognize and allow calling XSLT functions.
OptionalcacheWhether to cache parsed expressions for reuse. Default: false
OptionalstrictStrict mode: throw errors for unsupported features. When false, unsupported features may be silently ignored or cause warnings. Default: true
OptionalenableEnable support for the deprecated namespace axis (namespace::). Default: false (raises XPST0010 when used).
OptionalstaticStatic context configuration (in-scope types, functions, collations, variables). Defaults to an empty static context with XPath-defined namespaces.
Optionalxpath10Enable XPath 1.0 backward compatibility mode.
When true, XPath 2.0+ expressions follow XPath 1.0 type conversion rules. This enables:
This option is only meaningful when version is '2.0' or higher. When version is '1.0', this option is ignored (1.0 semantics are used).
Default: false (XPath 2.0 semantics when using 2.0+ parser)
OptionalwarningWarning configuration for deprecated features and migration guidance (Phase 8.2). Configure how warnings are collected, filtered, and reported. Default: warnings enabled with 'info' minimum severity
OptionalwarningWarning collector instance for gathering warnings during parsing. If not provided, a new collector will be created based on warningConfig. Passing an existing collector allows aggregating warnings across multiple parses.
Parser options that include XSLT extensions support.