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 12:59:51 +0100 |
> >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/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] testing for string and nu, James Fuller | Thread | Re: [xsl] testing for string and nu, Dimitre Novatchev |
RE: [xsl] viewing as a html, Michael Kay | Date | Re: [xsl] viewing as a html, omprakash . v |
Month |