This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Addition/Subtraction of numbers.
- From: "Avula, Raj" <RAvula at firstam dot com>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 22 Jan 2002 15:41:08 -0800
- Subject: [xsl] Addition/Subtraction of numbers.
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi ,
I am trying to add numbers present in two variables like
<xsl:variable name="temp1" select="$t1 + $t2" />
if varaibles t1 , t2 have some numbers, it goes through fine.
But if they are null NaN is comming in the output.
is there a way I can convert these variables to numbers
before adding them(null should be converted to zero) or
Is there any other way to handle this condition.
Thanks,
Raj..
"MMS <firstam.com>" made the following
annotations on 01/22/02 15:42:25
------------------------------------------------------------------------------
"THIS E-MAIL MESSAGE AND ANY FILES TRANSMITTED HEREWITH, ARE INTENDED SOLELY FOR THE USE OF THE INDIVIDUAL(S) ADDRESSED AND MAY CONTAIN CONFIDENTIAL, PROPRIETARY OR PRIVILEGED INFORMATION. IF YOU ARE NOT THE ADDRESSEE INDICATED IN THIS MESSAGE (OR RESPONSIBLE FOR DELIVERY OF THIS MESSAGE TO SUCH PERSON) YOU MAY NOT REVIEW, USE, DISCLOSE OR DISTRIBUTE THIS MESSAGE OR ANY FILES TRANSMITTED HEREWITH. IF YOU RECEIVE THIS MESSAGE IN ERROR, PLEASE CONTACT THE SENDER BY REPLY E-MAIL AND DELETE THIS MESSAGE AND ALL COPIES OF IT FROM YOUR SYSTEM."
==============================================================================
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list