[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XSLT number() problem

Subject: RE: XSLT number() problem
From: "Andrew Welch" <awelch@xxxxxxxxxxxxxxx>
Date: Wed, 19 Jun 2002 14:54:16 +0100
RE:  XSLT number() problem
>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@xxxxxxxx]
Sent: 19 June 2002 14:31
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.