You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dm...@apache.org on 2005/07/26 22:22:30 UTC
cvs commit: xml-xalan/c/src/xalanc/XPath XObject.cpp
dmitryh 2005/07/26 13:22:30
Modified: c/src/xalanc/XPath XObject.cpp
Log:
Patch for XALANC-537
Revision Changes Path
1.14 +37 -9 xml-xalan/c/src/xalanc/XPath/XObject.cpp
Index: XObject.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/xalanc/XPath/XObject.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- XObject.cpp 29 Apr 2005 21:39:43 -0000 1.13
+++ XObject.cpp 26 Jul 2005 20:22:30 -0000 1.14
@@ -701,7 +701,14 @@
const CompareFunction& theCompareFunction,
XPathExecutionContext& executionContext)
{
- // From http://www.w3.org/TR/xpath:
+ // Excerpt from:
+ // XML Path Language (XPath) Version 1.0
+ // W3C Recommendation 16 November 1999
+ // http://www.w3.org/TR/xpath
+ // Editors:
+ // James Clark <jj...@jclark.com>
+ // Steve DeRose (Inso Corp. and Brown University) <St...@Brown.edu>
+ //
// If both objects to be compared are node-sets, then the comparison
// will be true if and only if there is a node in the first node-set
// and a node in the second node-set such that the result of performing
@@ -851,19 +858,33 @@
}
else if(theRHSType == XObject::eTypeBoolean)
{
- // From http://www.w3.org/TR/xpath:
- // If one object to be compared is a node-set and the other is a boolean,
- // then the comparison will be true if and only if the result of
- // performing the comparison on the boolean and on the result of
- // converting the node-set to a boolean using the boolean function
- // is true.
+ // Excerpt from:
+ // XML Path Language (XPath) Version 1.0
+ // W3C Recommendation 16 November 1999
+ // http://www.w3.org/TR/xpath
+ // Editors:
+ // James Clark <jj...@jclark.com>
+ // Steve DeRose (Inso Corp. and Brown University) <St...@Brown.edu>
+ //
+ // If one object to be compared is a node-set and the other is a boolean,
+ // then the comparison will be true if and only if the result of
+ // performing the comparison on the boolean and on the result of
+ // converting the node-set to a boolean using the boolean function
+ // is true.
const double num1 = theLHS.boolean() == true ? 1.0 : 0.0;
theResult = theNumberCompareFunction(num1, theRHS.num());
}
else if(theRHSType == XObject::eTypeNumber)
{
- // From http://www.w3.org/TR/xpath:
+ // Excerpt from:
+ // XML Path Language (XPath) Version 1.0
+ // W3C Recommendation 16 November 1999
+ // http://www.w3.org/TR/xpath
+ // Editors:
+ // James Clark <jj...@jclark.com>
+ // Steve DeRose (Inso Corp. and Brown University) <St...@Brown.edu>
+ //
// If one object to be compared is a node-set and the other is a number,
// then the comparison will be true if and only if there is a
// node in the node-set such that the result of performing the
@@ -904,7 +925,14 @@
}
else if(theRHSType == XObject::eTypeString)
{
- // From http://www.w3.org/TR/xpath:
+ // Excerpt from:
+ // XML Path Language (XPath) Version 1.0
+ // W3C Recommendation 16 November 1999
+ // http://www.w3.org/TR/xpath
+ // Editors:
+ // James Clark <jj...@jclark.com>
+ // Steve DeRose (Inso Corp. and Brown University) <St...@Brown.edu>
+ //
// If one object to be compared is a node-set and the other is a
// string, then the comparison will be true if and only if there
// is a node in the node-set such that the result of performing
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org