XML Path Language (XPath) is a W3C language for targeting parts of an XML document. When working declaratively, XPath gives you a powerful mechanism to select and operate on the DOM nodes of your application. It also gives you the ability to perform logic and basic programming functions.
In the Backbase framework, you will generally use XPath when working with XEL or with declarative command
attribute values.
Note
For example, the frequently used select
attribute is set to accept an XPath expression to target an element.
Here is a code fragment that targets all div
elements in the application: select="//div"
.
XEL and command attributes are set by default to be in "string mode", where the accepted value is a string, or in "XPath mode", where the accepted value is an XPath expression. In the API Reference, the attribute type will state the default mode.
The Backbase framework supports XPath version 1.0 (and some 2.0 functions). When you can use an XPath expression as an attribute value,...