ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7877] - [PATCH] depend.xsl outputs in % instead of 0-1 range and gives NaN
Date Sun, 14 Apr 2002 16:23:12 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7877>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7877

[PATCH] depend.xsl outputs in % instead of 0-1 range and gives NaN





------- Additional Comments From sbailliez@apache.org  2002-04-14 16:23 -------
Out of curiosity what is the format of the numbers produced with your locale ?

The definition of separators is made on purpose to avoid a problem on xsl 
specification so that you can safely process an xml file.

See the thread:
http://marc.theaimsgroup.com/?l=xalan-dev&m=99712869323389&w=2

If an xml is produced with formatting made with a specific locale separator it 
is unlikely that someone with another locale will be able to process your xml.

Therefore, the best solution is obviouslly to make the numbers in your xml 
locale independant. Typically you have this kind of problems with java software 
that produces some sorts of csv data in not so correct format and you end up 
with:
1,236, 5,456 which will be read as '1', '236', '5', '456' instead 
of '1.236' '5.456'.

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message