This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: String to number
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] String to number
- From: "Michael Fitzgerald" <mike at wyeast dot net>
- Date: Wed, 30 May 2001 16:25:21 -0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
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