- From: <bugzilla@jessica.w3.org>
- Date: Tue, 28 Sep 2010 10:23:38 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10792 Summary: [FO3.0] format-integer - errors, negative values Product: XPath / XQuery / XSLT Version: Working drafts Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P2 Component: Functions and Operators 1.1 AssignedTo: mike@saxonica.com ReportedBy: mike@saxonica.com QAContact: public-qt-comments@w3.org Further to bug #10729, two more questions about the spec of format-integer for the WGs to consider: (a) Formatting of negative numbers. We currently say it should prepend a minus sign. This is needlessly different from xsl:number, which reverts to decimal notation, outputting -1 as -1 regardless of the formatting requested. With the format picture "a", -1 probably makes more sense than -a. But with format picture "w", "minus one" seems preferable to "-one". (b) Errors, especially errors in the format picture. At present, no error conditions are described. I think we should follow the precedent of format-date, which is that a syntax error in the format picture is a hard error, but requesting something that the implementation doesn't support (e.g. an unsupported language) always causes the number to be output in a fallback representation rather than causing an error. This leaves a question as to whether syntax errors in the format picture are possible. I think they are - for example, no alphanumeric characters in the picture, or two adjacent punctuation characters (grouping separators), or unmatched parentheses after the "o" format modifier. -- Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Received on Tuesday, 28 September 2010 10:23:40 UTC