This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Leading +


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]