kvisco%ziplink.net 741bf6ee31 Added implementation of evaluate
git-svn-id: svn://10.0.0.236/trunk@85206 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-20 04:42:26 +00:00

30 lines
697 B
C++

#include "XSLTFunctions.h"
/*
Implementation of XSLT 1.0 extension function: current
*/
/**
* Creates a new current function call
**/
CurrentFunctionCall::CurrentFunctionCall() :
FunctionCall(CURRENT_FN)
{
}
/**
* Evaluates this Expr based on the given context node and processor state
* @param context the context node for evaluation of this Expr
* @param cs the ContextState containing the stack information needed
* for evaluation
* @return the result of the evaluation
* @see FunctionCall.h
**/
ExprResult* CurrentFunctionCall::evaluate(Node* context, ContextState* cs) {
NodeSet* result = new NodeSet(1);
result->add(context);
return result;
} //-- evaluate