[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] How do I determine that an item is a numeric atomic value?


Subject: Re: [xsl] How do I determine that an item is a numeric atomic value?
From: Hermann Stamm-Wilbrandt <STAMMW@xxxxxxxxxx>
Date: Sun, 3 Oct 2010 22:24:00 +0200

>From Roger:
> How do I determine that the value of $exp is a numeric atomic value?

In EXSLT:
exslt:object-type($x) = 'number'

This is better than "number($x) = number($x)" because boolean and string
result in false (see comments from Michael below).



Current Thread