You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@locus.apache.org on 2000/05/26 20:37:09 UTC
cvs commit: xml-xalan/c/src/XSLT FunctionCurrent.cpp
dbertoni 00/05/26 11:37:08
Modified: c/src/XSLT FunctionCurrent.cpp
Log:
Fixed bug where the node set contained the context node, not the current node. Duh...
Revision Changes Path
1.4 +3 -1 xml-xalan/c/src/XSLT/FunctionCurrent.cpp
Index: FunctionCurrent.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/FunctionCurrent.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- FunctionCurrent.cpp 2000/05/15 15:57:09 1.3
+++ FunctionCurrent.cpp 2000/05/26 18:37:06 1.4
@@ -84,6 +84,8 @@
int /* opPos */,
const XObjectArgVectorType& args)
{
+ assert(executionContext.getCurrentNode() != 0);
+
if (args.size() != 0)
{
executionContext.error("The current() function does not take any arguments!",
@@ -100,7 +102,7 @@
}
else
{
- return executionContext.getXObjectFactory().createNodeSet(*context);
+ return executionContext.getXObjectFactory().createNodeSet(*executionContext.getCurrentNode());
}
}