This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27336 - date-094 and date-095 test family
Summary: date-094 and date-095 test family
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 Test Suite (show other bugs)
Version: Last Call drafts
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Abel Braaksma
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-15 20:29 UTC by Michael Kay
Modified: 2015-05-06 21:21 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2014-11-15 20:29:38 UTC
A number of problems with these new date/time tests.

date-094j says 0400-02-29 is invalid because 0400 is not a leap year. Wrong, it is a leap year.

date-094m says -0400-02-29 is valid because -0400 is a leap year. This depends on whether there is a year 0, which depends on whether you follow XSD 1.0 or XSD 1.1

date-094n also depends on year 0 therefore choice of XSD version

date-094o ditto

date-094p uses a different date in the input from that expected in the output

date-094q claims 0400 is not a leap year. Oh yes it is.

date-095m - sane problem as date-094m

date-095n - sane problem as date-094n

date-095o - sane problem as date-094o
Comment 1 Abel Braaksma 2015-03-30 20:21:21 UTC
> date-094j says 0400-02-29 is invalid because 0400 is not a leap year. 
> Wrong, it is a leap year.

and
> date-094q claims 0400 is not a leap year. Oh yes it is.

Indeed, copy/paste error. Fixed.

> date-094m says -0400-02-29 is valid because -0400 is a leap year.
> This depends on whether there is a year 0, which depends on whether you 
> follow XSD 1.0 or XSD 1.1

and
> date-094n also depends on year 0 therefore choice of XSD version

and
> date-094o ditto

and
> date-095m - sane problem as date-094m

and
> date-095n - sane problem as date-094n

and
> date-095o - sane problem as date-094o

For all these tests, there is a dependency element specified:

<year_component_values satisfied="true" value="support year zero"/>

This dependency implies XSD 1.1 rules (though I believe the spec made support for the year zero optional, which is why this feature element is required). It was missing on date-094m and date-095m, added there.

> date-094p uses a different date in the input from that expected in the output

Was fixed a few weeks ago, but not notified here.
Comment 2 Abel Braaksma 2015-03-30 20:24:32 UTC
Changes pushed in Hg repository.
Comment 3 Abel Braaksma 2015-05-06 21:21:30 UTC
Was resolved > 30 days ago, closing.