|
|
Home | Loader API | Interfaces | File List | Index | |
Evaluate the compiled pattern or expression against the context defined by the following objects: (a) an XML tree (required), (b) an XSLT context node(optional), and (c) an XML node set (optional) One of the compile calls must be made before this method can be called. This method is used instead of eval() above if all the caller only needs is a true/false result of the XPath expression. This evaluation function includes a few optimizations for faster execution than the regular eval() method. The result of an XPath expression is considered true if one of the following is detected: (1) the result is a node set with one or more nodes in the set, (2) the result is a string with one or more characters, (3) the result is a non-zero numeric type, or (4) the result is a P6BOOL::P6TRUE value. In all other cases the XPath expression result is considered false.
|