The xpatheval accessor is used to perform a boolean test of an xpath expression on the operand.
The operator contains a canonical XPath expression to be evaluated on the operand. xpatheval is often used
for controlling process flow.
The truth of an XPath expression can include the document tree matches an xpath location, the value of a location matches a given value or
an XPath function matches some value, or a combination of all of these. More information is avaliable here
xpatheval returns a canonical boolean document: <b>t</b> true, or <b>f</b> false
An example of using xpatheval to test if the operand document has
an element <b> with an attribute name with value 'foo'. In this example the xpatheval
returns true in the form of a canonical boolean document <b>t</b>