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

Subject: Re: [xsl] [XSL] How to test "numericity" ?
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Sun, 23 Mar 2008 18:37:32 +0100
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/

Current Thread