W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2010

[Bug 10792] [FO3.0] format-integer - errors, negative values

From: <bugzilla@jessica.w3.org>
Date: Tue, 23 Nov 2010 10:38:54 +0000
To: public-qt-comments@w3.org
Message-Id: <E1PKqH0-0007Nn-Qr@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10792

--- Comment #2 from Michael Kay <mike@saxonica.com> 2010-11-23 10:38:54 UTC ---
Detailed proposal (in section 4.5.1, format-integer):

(a) Remove this paragraph: "The rules that follow describe how non-negative
numbers are output. If the value of $value is negative, the rules below are
applied to the absolute value of $value, and the result is prepended with a
minus sign."

(b) After the paragraph starting "For all format tokens other than the first
kind above...", add a new paragraph:

"If the number to be formatted is negative, the same principles apply. For some
numbering sequences there is a natural way of representing negative numbers:
for example |-5| in the case of format token "1", or |minus five| in the case
of format token "w". For other sequences, there is no natural representation of
negative numbers, and in such cases they should be output as if format token
"1" had been used."

(c) Add an "Error Conditions" section to the entry:

An error is raised [FODF1290] if the value of $picture is syntactically invalid
(for example, if it is empty, or contains unmatched parentheses after the |o|
format modifier, or contains two adjacent grouping separators. No error is
raised, however, when the picture is syntactically valid but does not represent
any numbering sequence supported by the implementation; in this case the
processor MUST fall back to representing the number as if the picture were
specified as |1|.

-- 
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, 23 November 2010 10:38:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:08 GMT