bug 113611, XPath and XSLT contexts. fixes bugs 96410, 102293, 92106, 110266, 116534 and a bunch of other cases not filed. This mostly fixes namespaces and some really bad speed issues by fixing the time when namespaces are resolved, how default priorities are computed and how templates are matched.
HUGE PERFWIN :-) r=peterv, sr=jst git-svn-id: svn://10.0.0.236/trunk@122650 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -8,22 +8,19 @@
|
||||
/**
|
||||
* Creates a new current function call
|
||||
**/
|
||||
CurrentFunctionCall::CurrentFunctionCall(ProcessorState* ps) :
|
||||
FunctionCall(CURRENT_FN)
|
||||
CurrentFunctionCall::CurrentFunctionCall(ProcessorState* aPs)
|
||||
: FunctionCall(CURRENT_FN), mPs(aPs)
|
||||
{
|
||||
this->processorState = ps;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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)
|
||||
/*
|
||||
* Evaluates this Expr
|
||||
*
|
||||
* @return NodeSet containing the context node used for the complete
|
||||
* Expr or Pattern.
|
||||
*/
|
||||
ExprResult* CurrentFunctionCall::evaluate(txIEvalContext* aContext)
|
||||
{
|
||||
return new NodeSet(processorState->getCurrentNode());
|
||||
return new NodeSet(mPs->getEvalContext()->getContextNode());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user