[xsl] NaN : How to Replace comma as decimal to avoid NaN

Subject: [xsl] NaN : How to Replace comma as decimal to avoid NaN
From: "Sathasivam, Elayaraja" <elayaraja.sathasivam@xxxxxxxxxxxxx>
Date: Tue, 9 Sep 2008 18:07:18 +0530
sum ($accs/FUNum/@Granted)  = 0

$divideBy = 1,750099

Result: <xsl:value-of select="sum ($accs/FUNum/@Granted)  div $divideBy"/>

Expected Output: 0
Actual Output: NaN


Please note the value of divideBy contains comma(,) instead of decimal(.)

Assume we need to replace the comma as decimal. Not sure how to handle this.
Since by reading the configuration file will get the value of divideBy, it has
only comma instead of decimal.

How to avoid NaN.




Regards,
Raja







This message contains information that may be privileged or confidential and
is the property of the Capgemini Group. It is
intended only for the person to whom it is addressed. If you are not the
intended recipient, you are not authorized to
read, print, retain, copy, disseminate, distribute, or use this message or any
part thereof. If you receive this message
in error, please notify the sender immediately and delete all copies of this
message.

Current Thread