This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Leading +
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Leading +
- From: Johannes Döbler <jd at aztecrider dot com>
- Date: Sat, 09 Jun 2001 17:29:27 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
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