dbertoni 2004/09/20 11:50:45
Modified: c/src/xalanc/XSLT ElemNumber.cpp
Log:
More complete fix for XSLT erratum E24.
Revision Changes Path
1.14 +5 -5 xml-xalan/c/src/xalanc/XSLT/ElemNumber.cpp
Index: ElemNumber.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/xalanc/XSLT/ElemNumber.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- ElemNumber.cpp 20 Sep 2004 05:28:31 -0000 1.13
+++ ElemNumber.cpp 20 Sep 2004 18:50:45 -0000 1.14
@@ -496,13 +496,13 @@
m_valueExpr->execute(*this, executionContext, theValue);
- if (DoubleSupport::isNaN(theValue) == true)
+ // Note these checks are in a specific order...
+ if (DoubleSupport::isNaN(theValue) == true ||
+ DoubleSupport::isPositiveInfinity(theValue) == true ||
+ DoubleSupport::isNegativeInfinity(theValue) == true ||
+ DoubleSupport::lessThan(theValue, 0.5) == true)
{
DoubleToDOMString(theValue, theResult);
- }
- else if (DoubleSupport::lessThan(theValue, 0.5) == true)
- {
- DoubleToDOMString(DoubleSupport::getNaN(), theResult);
}
else
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]