This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XSLT number() problem
- From: "Andrew Welch" <awelch at piper-group dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 19 Jun 2002 14:54:16 +0100
- Subject: RE: [xsl] XSLT number() problem
- Reply-to: xsl-list at lists dot mulberrytech dot com
>Is it any other way to figure out : "Is FiledA numeric or not?"
<xsl:if test="number(@FieldA)">
I bet you are kicking yourself :)
cheers
andrew
-----Original Message-----
From: Alex Genis [mailto:agenis@dtcc.com]
Sent: 19 June 2002 14:31
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] XSLT number() problem
Hi everybody.
Maybe somebody knows why
<xsl:if test="string(number(@FieldA)) = 'NaN'">
returns true in both cases:
when FieldA = 987876765654ABCDEF and
when FieldA = 111122223333444456 ?
Is it any other way to figure out : "Is FiledA numeric or not?"
Thanks a lot in advance.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/2002
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list