Subject: Re: [xsl] [XSL] How to test "numericity" ? From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Sun, 23 Mar 2008 18:37:32 +0100 |
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 |
---|
<- Previous | Index | Next -> |
---|---|---|
[xsl] [XSL] How to test "numericity, Alain | Thread | [xsl] [XSL] How to test "numericity, Alain |
[xsl] [XSL] How to test "numericity, Alain | Date | [xsl] Multiple conditions using if , Davalath, Kishore |
Month |