TXPathFunctionNode.Evaluate function
Evaluates the XPath function name using the specified context and environment.
Declaration
function Evaluate(AContext: TXPathContext;
AEnvironment: TXPathEnvironment): TXPathVariable
; overrideArguments
AContext | Context node for the evaluation. |
AEnvironment | XPath environment for the evaluation. |
Function result
Result for the evaluated function.
Description
Evaluate is an overridden
TXPathVariable function that
implements the method defined in the ancestor class. Evaluate is used to
derive the value for the function call using any arguments found in the XPath
expression, and to store the result in the TXPathVariable return value.
Evaluate uses the AEnvironment parameter to access the function
names (and their implementations) available in the XPath environment. If a
function with the required name is not found in AEnvironment, the
EvaluationError routine is called to raise an exception with the
message in lrsEvalUnknownFunction.
Evaluate creates an internal TXPathVarList instance that is used
to store the value for any arguments in the XPath expression. The list, and
the context node in AContext, are passed to the function call. The
internal list is freed prior to exiting from the method.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
