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

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 UTC