Added some changes from Marina (see changes.txt)

git-svn-id: svn://10.0.0.236/trunk@66544 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kvisco%ziplink.net
2000-04-20 10:12:06 +00:00
parent c1e3519474
commit cbfd64055e
2 changed files with 51 additions and 13 deletions

View File

@@ -20,15 +20,18 @@
* Contributor(s):
* Keith Visco, kvisco@ziplink.net
* -- original author.
*
* Marina Mechtcheriakova, mmarina@mindspring.com
* -- changed some behavoir to be more compliant with spec
*
* $Id: NodeSetFunctionCall.cpp,v 1.1 2000-04-06 07:45:34 kvisco%ziplink.net Exp $
* $Id: NodeSetFunctionCall.cpp,v 1.2 2000-04-20 10:12:05 kvisco%ziplink.net Exp $
*/
/**
* NodeSetFunctionCall
* A representation of the XPath NodeSet funtions
* @author <A HREF="mailto:kvisco@ziplink.net">Keith Visco</a>
* @version $Revision: 1.1 $ $Date: 2000-04-06 07:45:34 $
* @version $Revision: 1.2 $ $Date: 2000-04-20 10:12:05 $
**/
#include "FunctionLib.h"
@@ -129,7 +132,14 @@ ExprResult* NodeSetFunctionCall::evaluate(Node* context, ContextState* cs) {
}
delete exprResult;
}
if ( !node ) node = context;
//if ( !node ) node = context; ///Marina
else node = context;
//-- if no node was found just return an empty string (Marina)
if ( !node ) {
result = new StringResult("");
break;
}
switch ( type ) {
case LOCAL_NAME :