xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor