Entering content frame

 Supported Subset of the XPATH Standard 

The MaxDB WebDAV XML indexing functions support a subset of the XPATH standard, as defined in the W3C document www.w3.org/TR/xpath.

The supported syntax includes the following access types:

Access Type

Meaning

Example

Child axis+ node test text()

The child axis indicates a node set in the XML document.

child::text() determines the text nodes of the nodes in this node set.

/child::a/child::b/child::text()

or (for short)

/a/b/text()

Child axis + attribute axis

The child axis indicates a node set in the XML document.

The attribute axis determines all values of attr attributes of the nodes in this node set.

/child::a/child::b/attribute::attr

or (for short)

/a/b/@attr

Name test ‘*’

Determines the text nodes of all child nodes of nodes in a node set

/child::a/child::*/child::text()

or (for short)

/a/*/text()

Predicate filter

Determines the text nodes of all nodes of a node set that have an attribute attr with the specified value.

Only the attribute axis and the comparison operators = and != are allowed within predicate filters. The attribute value must be a character string literal.

Only one attribute is allowed.

/a/b[attribute::attr=‘aaa’]/text()

Descendant axis+ node test text()

The descendant axis indicates all node sets whose path contains a specific node.

child::text() determines the text nodes of the nodes in this node set.

/descendant::a/child::text()

or (for short)

//a/text()

Descendant axis + attribute axis

The descendant axis indicates all node sets whose path contains a specific node.

The attribute axis determines all values of attr attributes of the nodes in this node set.

/descendant::a/attribute::*

or (for short)

//a/@*

 

 

Leaving content frame