[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: testing for string and number in XSLT 2.0 was Re: 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
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member