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/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--