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 1279 - [XPath] String representation of negative zero
Summary: [XPath] String representation of negative zero
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XPath 2.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-02 07:48 UTC by Michael Kay
Modified: 2005-09-29 10:42 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2005-05-02 07:48:28 UTC
string($x) where $x is negative zero returns "0" in XPath 1.0, "-0" in XPath 2.0.

This should either be changed to make it backwards compatible, or the change
should be added to the backwards compatibility appendix.

Michael Kay
Comment 1 Michael Rys 2005-05-02 13:49:11 UTC
Since fn:string(-0e0) results in the same value as xs:string(-0e0), and having 
special semantics for this one case seems less desirable, we should document 
the difference in the backwards-compat appendix (and maybe make it part of the 
XPath 1.0 compat mode).
Comment 2 Don Chamberlin 2005-05-05 00:25:54 UTC
Assigned to Michael Kay as editor of the XPath 1.0 Backward Compatability 
Appendix.
Comment 3 Michael Kay 2005-05-17 14:01:33 UTC
This will be documented as an incompatibility in the XPath appendix.