This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XSLT number() problem
- From: "Wei-Chin Hsieh" <whsieh at cae dot wisc dot edu>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 20 Jun 2002 03:39:25 -0500
- Subject: Re: [xsl] XSLT number() problem
- References: <63C4AD0365821F4291ACF76C0672FA35057D49@piper6.piper-group.int>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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@piper-group.com>
To: <xsl-list@lists.mulberrytech.com>
Sent: Thursday, June 20, 2002 3:02 AM
Subject: RE: [xsl] 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