xsd.XPathExpression

The xsd.XPathExpression property record holds the properties of an XPath Expression (i.e. the expression itself, the namespace bindings, the default namespace and the base URI).

class xsd.XPathExpression

Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a NotImplementedError exception.

Attributes

xsd.XPathExpression.base_uri

Returns the base URI. This absolute URI is used when necessary in the resolution of relative URIs during XPath evaluation.

xsd.XPathExpression.default_namespace

Returns the default element/type namespace used for evaluating the expression.

xsd.XPathExpression.expression

Returns the XPath 2.0 expression.

xsd.XPathExpression.namespace_bindings

Returns an iterator of xsd.NamespaceBinding property records. These NamespaceBindings are the statically known namespaces used during static processing of the expression.

Special methods

__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__