This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1444 - [FO] Editorial: canonical forms of (-)0e0
Summary: [FO] Editorial: canonical forms of (-)0e0
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 1.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ashok Malhotra
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
Depends on:
Reported: 2005-05-14 00:09 UTC by Michael Rys
Modified: 2005-09-29 11:16 UTC (History)
0 users

See Also:


Description Michael Rys 2005-05-14 00:09:35 UTC
The casting to string and untypedAtomic still contains the two sentences "The 
canonical form of positive zero is "0.0E0". The canonical form for negative 
zero is "-0.0E0". " Since earlier rules handle these two cases, these two 
lines can be deleted.
Comment 1 Ashok Malhotra 2005-05-18 22:31:54 UTC
I'm sorry but I disagree.  The canonical form for float/double is defined in
this paragraph.  The forms for positive and negative zero are specially called
out as these are special values.  Smart users may be able to infer these forms
from the preceding general rules but a bit of redundancy does no harm.
Comment 2 Michael Rys 2005-05-19 03:17:46 UTC
Sorry, but there is currently a contradiction.

xs:string(-0e0) should return "-0" and not "-0e0" according to the earlier 
parts of the spec. Talking about the canonical form in that place is 
misleading and contradicts the earlier casting rules.
Comment 3 Ashok Malhotra 2005-05-19 22:28:15 UTC
Now, with the fuller explanation, this makes sense.  Fixed!

Ashok Malhotra