[Bug 29615] roman and max-width year

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29615

Josh Spiegel <josh.spiegel@oracle.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |josh.spiegel@oracle.com

--- Comment #3 from Josh Spiegel <josh.spiegel@oracle.com> ---

The point of the truncation logic is to get the year to fit within the maximum
width.  

format-date(xs:date("1998-01-01"), "[Y,2-2]") => 98
format-date(xs:date("1999-01-01"), "[Y,2-2]") => 99

If we applied this logic in the case of roman numerals, it would fail to print
a value within the maximum width in many cases.  

format-date(xs:date("1998-01-01"), "[Yi,2-2]") => xcviii (instead of mcmxcviii)
format-date(xs:date("1999-01-01"), "[Yi,2-2]") => xcix (instead of mcmxcix)

And in some cases it will unnecessarily truncate the value. 

format-date(xs:date("0101-01-01"), "[Yi,2-2]") => i (instead of ci)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 9 May 2016 15:45:17 UTC