xsl-list
[Top] [All Lists]

Re: [xsl] Best way of testing Hexadecimal value [xslt 1.0]

2010-08-26 08:33:30
<xsl:when test="number('12')=number('12')">
is true, because the string '12' casts to a number.

<xsl:when test="number('xy')=number('xy')">
is false as the string 'xy' casts to the special value NaN which is not 
equal to anything, even itself.


Thanks David, learned something today, which I never tried earlier. Though 
I still need to test it.
Hope it works in 1.0. :-)
cheers
Pankaj






--~------------------------------------------------------------------
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>
--~--