Re: [xsl] Leading +

Subject: Re: [xsl] Leading +
From: Johannes Döbler <jd@xxxxxxxxxxxxxx>
Date: Sat, 09 Jun 2001 17:29:27 +0200
Hi Oliver,

Probably all these processors use a Java JDK method like java.lang.Double(String) to parse the string and this method tolerates the '+' sign. (Java has a unary plus operator, but +1 is not a valid number literal, so java.lang.Double(String) actually contains the bug. But its not really worth the time to file a bug report).

Johannes

Hi,

according to the XPath spec, number('+1') should return NaN, shouldn't
it?. But it seems, XT, Saxon, Xalan and OracleXSL don't agree with me.

Who is right?
Cheers,
Oliver


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread