XPath

The XPath preferences panel is opened from menu OptionsPreferences+XML+XSLT/FO/XQuery+XPath

 

Figure 24.62. The XPath preferences panel

The XPath preferences panel

Unescape XPath expression

When checked, unescapes the entities found in the XPath expression. For example the expression

//varlistentry[starts-with(@os,'s')]

is equivalent with

//varlistentry[starts-with(@os,'s')]

.

Multiple XPath results

When checked, results of different XPath expressions executed on the same file are written in separate result set tabs.

No namespace

If checked <oXygen/> will consider unprefixed element names in XPath expressions evaluated in the XPath console as belonging to no namespace.

Use the default namespace from the root element

If checked <oXygen/> will consider unprefixed element names in XPath expressions evaluated in the XPath console as belonging to the default namespace declared on the root element of the document.

Use the namespace of the root

If checked <oXygen/> will consider unprefixed element names in XPath expressions evaluated in the XPath console as belonging to the same namespace as the root element of the document.

This namespace

The user has the possibility to enter here the namespace of the unprefixed elements used in the XPath console

Default prefix-namespace mappings

Associates prefixes to namespaces. These mappings are useful when applying an XPath in XPath console and you don't have to define these mappings for each document separately.

The New button creates an editable prefix-namespace mapping.

The Delete button deletes the selected mapping.