[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'Laz2_XPath' (#lazutils)

TXPathExprNode.EvalPredicate

Evaluates an XPath Predicate Expression.

Declaration

Source position: laz2_xpath.pas line 88

protected function TXPathExprNode.EvalPredicate(

  AContext: TXPathContext;

  AEnvironment: TXPathEnvironment

):Boolean;

Arguments

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.


Version 4.0 Generated 2025-05-03 Home