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 29824 - [SER31] Adaptive output method, xs:double
Summary: [SER31] Adaptive output method, xs:double
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Serialization 3.1 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: C. M. Sperberg-McQueen
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL: https://www.w3.org/XML/Group/qtspecs/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-14 12:00 UTC by Tim Mills
Modified: 2016-09-23 08:46 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2016-09-14 12:00:06 UTC
The text reads

"An instance of xs:double is serialized by applying the function format-number(?, '0.0##########################e0')."

This means that the result is dependent on the default decimal format.  Is that the default decimal format used by the query/transformation/path expression, or some other default for serialization?

Note that by default in XQuery, format-number of infinity would be "Infinity", not "INF" as expected in the test suite.

I suggest that the specification be reworded to state a specific default decimal format for the adaptive serialization method, perhaps using INF for the infinity symbol.

Related test cases:

 Serialization-adaptive-22
 Serialization-adaptive-27
Comment 1 Andrew Coleman 2016-09-23 08:46:26 UTC
At the meeting on 2016-09-20, the WG agreed that the spec should specify the default decimal format, with "INF" to represent infinity.

This change has been applied to the spec.