TXPathExprNode.EvalPredicate function
Evaluates an XPath Predicate Expression.
Declaration
function EvalPredicate(AContext: TXPathContext;
AEnvironment: TXPathEnvironment): BooleanArguments
AContext | Context node for the expression. |
AEnvironment | XPath environment for the evaluation. |
Function result
Boolean result for the evaluated expression.
Description
EvalPredicate is a Boolean function used to evaluate an XPath Predicate Expression. EvalPredicate calls the Evaluate method using the specified Content node and Environment. An Expression that evaluates to a numeric value is considered to be True when the result matches the ContextPosition in the AContext argument.
EvalPredicate is used in the implementation of other specialized Predicate Expressions types descended from TXPathExprNode.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
