You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Shravana Gadi <sh...@evalua.com.au> on 2006/02/21 00:06:30 UTC

problem reading exponential values

Hi,
We are using FOP,batik and xalan to generate PDF document.When we are using 
old version of xalan in endorsed directory of tomcat5 it works fine.
Where as when we use any latest version of xalan instead of reading and 
displaying the $1.0E9 as $1,000,000,000 it is showing as NaN.

output with xalan attached :
$1.0E9  showing correct as $1,000,000,000

output with any other latest version of xalan

$1.0E9  showing correct as NaN.

please find the attached xalan which works fine for me.

Thanks,
Shravana.

Re: problem reading exponential values

Posted by David Bertoni <db...@apache.org>.
Shravana Gadi wrote:
> Hi,
> We are using FOP,batik and xalan to generate PDF document.When we are using
> old version of xalan in endorsed directory of tomcat5 it works fine.
> Where as when we use any latest version of xalan instead of reading and
> displaying the $1.0E9 as $1,000,000,000 it is showing as NaN.
> 
> output with xalan attached :
> $1.0E9  showing correct as $1,000,000,000
> 
> output with any other latest version of xalan
> 
> $1.0E9  showing correct as NaN.
> 
> please find the attached xalan which works fine for me.

XPath does not support exponential notation as a lexical representation 
for numbers:

http://www.w3.org/TR/xpath#exprlex

This is a bug in older versions of Xalan-J that was fixed, so the 
behavior of the latest version of Xalan is correct.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org