xsl-list
[Top] [All Lists]

Re: [xsl] [XSL] How to test "numericity" ?

2008-03-23 10:38:01
Alain wrote:

Let's assume variable x contains the string to test.
We cannot do simply xs:integer($s), or any casting like that, because it would produce an fatal runtime error when not numeric.

xs:integer sounds as if you use XSLT 2.0 so there you can check
  $s castable as xs:integer



--

        Martin Honnen
        http://JavaScript.FAQTs.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>
--~--

<Prev in Thread] Current Thread [Next in Thread>