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 20:24:25 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 20:24 -------
It will work in your case if you transform your xml with the xsl with your 
locale because it will be able to parse correctly your xml. Removing the 
formatting is just a workaround because it will use the appropriate formatter 
when parsing the number.

If someone with a US locale is processing your XML it will not work as '.' is 
the decimal separator and ',' is the thousand separator, so the problem is on 
the xml side not on the xsl side. The output of the xml should use a format 
that allows exchange within different locales so it should use a well defined 
format, not one that you have no idea of.

XML Schema identifies a float with a mandatory '.' (dot) and put emphasis on 
interoperability by specifying that there must be conversion from locale-
dependent datatype. Same applies here IMHO. So I'm -1 for this. Sorry.

Otherwise I agree about the % or the normalized value is a matter of taste... I 
need feedback from users to know which is better % or normalized and fix one or 
the other.

Peter speak up about your taste please. :-)

--
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