Use the following rules and guidelines when you create an XPath query predicate:
You can configure an XPath query predicate for any element in a view row.
For example, if a view row is Company/Dept, you can create the following XPath query predicate:
COMPANY[./DEPT=100]
You can match content.
You can add an XPath query predicate to a column if the column occurs below the view row in the view XML hierarchy and the column XPath includes the view row.
For example, if the view row is Product/Toys[1], you can create the following XPath query predicate:
Product/Toys[1][./Sales > 100]
The following example shows an invalid XPath query predicate for the Product/Toys[1] view row:
Product/Toys[2][./Sales > 100]
Product/Toys[1] is the view row. You cannot use Product/Toys[2].
Use a single-occurring element or attribute. You cannot create an XPath query predicate on a multiple-occurring element.
You cannot create an XPath predicate query on an enclosure element because an enclosure element contains no values.