HUGE PERFWIN :-) r=peterv, sr=jst git-svn-id: svn://10.0.0.236/trunk@122650 18797224-902f-48f8-a5cc-f745e15eee43
27 lines
527 B
C++
27 lines
527 B
C++
#include "XSLTFunctions.h"
|
|
#include "Names.h"
|
|
|
|
/*
|
|
Implementation of XSLT 1.0 extension function: current
|
|
*/
|
|
|
|
/**
|
|
* Creates a new current function call
|
|
**/
|
|
CurrentFunctionCall::CurrentFunctionCall(ProcessorState* aPs)
|
|
: FunctionCall(CURRENT_FN), mPs(aPs)
|
|
{
|
|
}
|
|
|
|
/*
|
|
* Evaluates this Expr
|
|
*
|
|
* @return NodeSet containing the context node used for the complete
|
|
* Expr or Pattern.
|
|
*/
|
|
ExprResult* CurrentFunctionCall::evaluate(txIEvalContext* aContext)
|
|
{
|
|
return new NodeSet(mPs->getEvalContext()->getContextNode());
|
|
}
|
|
|