[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] testing for string and number in XSLT 2.0 was Re: [xsl] Test For Numeric Values?


Subject: RE: [xsl] testing for string and number in XSLT 2.0 was Re: [xsl] Test For Numeric Values?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 8 Apr 2005 13:14:36 +0100

> > Or go back to my original suggestion, which was to use
> > 
> > if ($x castable as xs:decimal) ...
> 
> Unfortunately, this evaluates to true() on both "3.1415" and 3.1415
> 

I thought that's what the original poster wanted, but who knows...

Michael Kay
http://www.saxonica.com/


Current Thread