This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: does isNumber() exist?
- From: Oliver Becker <obecker at informatik dot hu-berlin dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 27 Feb 2002 16:43:11 +0100 (MET)
- Subject: Re: [xsl] does isNumber() exist?
- Reply-to: xsl-list at lists dot mulberrytech dot com
> does something like isNumber() function exists?
no
> Or do I have to use number() and check for "NaN"?
<xsl:if test="number()=number()">
The string-value of the context node is a number.
</xsl:if>
Cheers,
Oliver
/-------------------------------------------------------------------\
| ob|do Dipl.Inf. Oliver Becker |
| --+-- E-Mail: obecker@informatik.hu-berlin.de |
| op|qo WWW: http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list