[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: "Wei-Chin Hsieh" <whsieh@xxxxxxxxxxxx>
Date: Thu, 20 Jun 2002 03:39:25 -0500
xslt number 0
number(0) doesn't return false. It returns 0. It is the attribute
test="number(0)" that is evaluated as false.

Wei-Chin
----- Original Message -----
From: "Andrew Welch" <awelch@xxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, June 20, 2002 3:02 AM
Subject: RE:  XSLT number() problem


>
> >> <xsl:if test='number(@FieldA)'>
> >
> >Note that this test also returns false if the FieldA attribute is 0,
> >which may or may not be desired. To test whether the numeric value of
> >the FieldA attribute is NaN, you can alternatively use:
> >
> >Jeni
>
> Really?  Is there a reason why number(0) returns false?
>
> cheers
> andrew
>
> ---
> 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
>
>


 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.