Subject: Re: 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 |
- Leading +
- Oliver Becker - Sat, 9 Jun 2001 06:13:01 -0400 (EDT)
- Chris Bayes - Sat, 9 Jun 2001 07:14:50 -0400 (EDT)
- Gitanjali - Sat, 9 Jun 2001 07:35:40 -0400 (EDT)
- Johannes Döbler - Sat, 9 Jun 2001 11:33:00 -0400 (EDT) <=
- Trevor Nash - Sat, 9 Jun 2001 14:12:37 -0400 (EDT)
- Todd Diep - Sun, 10 Jun 2001 03:24:41 -0400 (EDT)
- Michael Kay - Mon, 11 Jun 2001 05:25:24 -0400 (EDT)
|
|