This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: String to number


Kevin, You can convert (recast) the string with the XPath function number()
(see http://www.w3.org/TR/xpath#section-Number-Functions). Example:

<xsl:value-of select="number('1010')"/>

-Mike

-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of
Kevin_Gutch@mapinfo.com
Sent: Wednesday, May 30, 2001 4:04 PM
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] String to number



Is there any way to take a string such as 1010 and process it as a number?
I keep getting NaN output.

Thanks




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]