RE: testing for string and number in XSLT 2.0 was Re:
> >It might have been a string that is the string > representation of a number: > > > > "3.1415" (is a string) > > > >but this is completely different from: > > > > 3.1415 (is a number). > > > >What will really be useful is a function with an argument of item(), > >that returns the real type of the argument. > > Or go back to my original suggestion, which was to use if ($x castable as xs:decimal) ... Michael Kay http://www.saxonica.com/
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format