Platforms to show: All Mac Windows Linux Cross-Platform

Back to XPathProcessorMBS class.

XPathProcessorMBS.BackwardsCompatible as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Saxon MBS XML Plugin 25.0 ✅ Yes ✅ Yes ✅ Yes ❌ No All
Whether XPath 1.0 backwards compatibility mode is to be used

In backwards compatibility mode, more implicit type conversions are allowed in XPath expressions, for example it is possible to compare a number with a string. The default is false (backwards compatibility mode is off).

Value is true if XPath 1.0 backwards compatibility is to be enabled, false if it is to be disabled.
(Read and Write property)

XPathProcessorMBS.BaseURI as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Saxon MBS XML Plugin 25.0 ✅ Yes ✅ Yes ✅ Yes ❌ No All
The static base URI for XPath expressions compiled using this

The base URI is part of the static context, and is used to resolve any relative URIs appearing within an XPath expression, for example a relative URI passed as an argument to the doc() function. If no static base URI is supplied, then the current working directory is used.
(Read and Write property)

XPathProcessorMBS.Caching as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Saxon MBS XML Plugin 25.0 ✅ Yes ✅ Yes ✅ Yes ❌ No All
Say whether the compiler should maintain a cache of compiled expressions.

Caching if set to true, caching of compiled expressions is enabled.

If set to false, any existing cache is cleared, and future compiled expressions will not be cached until caching is re-enabled. The cache is also cleared (but without disabling future caching) if any method is called that changes the static context for compiling expressions, for example declareVariable(QName) or declareNamespace(String, String).
(Read and Write property)

XPathProcessorMBS.ContextFile as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Saxon MBS XML Plugin 25.0 ✅ Yes ✅ Yes ✅ Yes ❌ No All
The context item from file.

Set either ContextFile or ContextItem.
(Read and Write property)

XPathProcessorMBS.ContextItem as XdmItemMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Saxon MBS XML Plugin 25.0 ✅ Yes ✅ Yes ✅ Yes ❌ No All
The context item.

Set either ContextFile or ContextItem.
(Read and Write property)

XPathProcessorMBS.CWD as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Saxon MBS XML Plugin 25.0 ✅ Yes ✅ Yes ✅ Yes ❌ No All
The current working directory.

The path must end with a slash (or a backslash on Windows).
(Read and Write property)

XPathProcessorMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Saxon MBS XML Plugin 25.0 ✅ Yes ✅ Yes ✅ Yes ❌ No All
The internal object reference.

(Read and Write property)

XPathProcessorMBS.LanguageVersion as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Saxon MBS XML Plugin 25.0 ✅ Yes ✅ Yes ✅ Yes ❌ No All
Say whether an XPath 2.0, XPath 3.0, XPath 3.1 or XPath 4.0 processor is required.

Set the language version for the XPath compiler.

One of the values 1.0, 2.0, 3.0, 3.05, 3.1, 4.0.

Setting the option to 1.0 requests an XPath 2.0 processor running in 1.0 compatibility mode; this is equivalent to setting the language version to 2.0 and backwards compatibility mode to true. Requesting "3.05" gives XPath 3.0 plus the extensions defined in the XSLT 3.0 specification (map types and map constructors).
(Read and Write property)

XPathProcessorMBS.Parameters as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Saxon MBS XML Plugin 25.0 ✅ Yes ✅ Yes ✅ Yes ❌ No All
Queries all parameters.

Great for viewing them in the debugger.
(Read only property)

XPathProcessorMBS.Properties as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Saxon MBS XML Plugin 25.0 ✅ Yes ✅ Yes ✅ Yes ❌ No All
Queries all properties.

Great for viewing them in the debugger.
(Read only property)

XPathProcessorMBS.UnprefixedElementMatchingPolicy as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Saxon MBS XML Plugin 25.0 ✅ Yes ✅ Yes ✅ Yes ❌ No All
The policy for matching unprefixed element names in XPath expressions.

(Read and Write property)

The items on this page are in the following plugins: MBS XML Plugin.


The biggest plugin in space...