XPath

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

 

Figure 18.41. 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 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.

Only if it is declared as default

If checked the namespace of the root element will be applied to the unprefixed elements in the XPath console only if it is set as default namespace on the root element.

Other

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.