- From: <bugzilla@jessica.w3.org>
- Date: Thu, 23 Apr 2015 15:09:32 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28550 Bug ID: 28550 Summary: [FO31] format-number: "positive" and "negative" Product: XPath / XQuery / XSLT Version: Last Call drafts Hardware: PC OS: All Status: NEW Severity: normal Priority: P2 Component: Functions and Operators 3.1 Assignee: mike@saxonica.com Reporter: mike@saxonica.com QA Contact: public-qt-comments@w3.org The use of the terms "positive" and "negative" in the spec of format-number() is not as precise as it could be. 4.7.3 bullet 1 says "If the picture-string contains two sub-pictures, the first is used for positive values and the second for negative values." (What about zero?) 4.7.4 para 2 says: "If there are two sub-pictures, then these rules are applied to one sub-picture to obtain the values that apply to positive numbers, and to the other to obtain the values that apply to negative numbers. " 4.7.5 rule 2 says: "In the rules below, the positive sub-picture and its associated variables are used if the input number is positive, and the negative sub-picture and its associated variables are used otherwise. Negative zero is taken as negative, positive zero as positive." (This implies that for decimals, where zero is unsigned, the negative sub-picture is used to format decimal zero, which would lead to it having a minus sign prepended.) I think the problem is essentially editorial, there's no room for doubt about the intent, but it definitely needs tidying up. -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Thursday, 23 April 2015 15:09:34 UTC