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 21558 - dependency wrong for "format-date-en152" and "format-dateTime-en152"
Summary: dependency wrong for "format-date-en152" and "format-dateTime-en152"
Status: RESOLVED INVALID
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Working drafts
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-02 23:53 UTC by Sorin Nasoi
Modified: 2013-05-01 09:17 UTC (History)
1 user (show)

See Also:


Attachments

Description Sorin Nasoi 2013-04-02 23:53:25 UTC
<dependency type="calendar" value="CB" satisfied="false"/>
should be 
<dependency type="calendar" value="CB" satisfied="true"/>

for the following 2 test cases:

"format-date-en152" from "fn-format-date"
<test-case name="format-date-en152">
<environment>
 <param name="b" as="xs:date" select="xs:date('2006-03-01')"/>
</environment>
<dependency type="calendar" value="CB" satisfied="false"/>
<test>format-date($b, '[M01]', 'en', 'CB', ())</test>
<result>
 <assert-string-value>[Calendar: AD]03</assert-string-value>
</result>
</test-case>

and
"format-dateTime-en152" from "fn-format-dateTime"
<test-case name="format-dateTime-en152">
 <environment>
 <param name="b" as="xs:dateTime" select="xs:dateTime('2006-03-01T12:00:00')"/>
 </environment>
 <dependency type="calendar" value="CB" satisfied="false"/>
 <test>format-dateTime($b, '[M01]', 'en', 'CB', ())</test>
 <result>
  <assert-string-value>[Calendar: AD]03</assert-string-value>
 </result>
</test-case>
Comment 1 Michael Kay 2013-05-01 08:35:53 UTC
I don't agree.

These tests demonstrate that if the implementation does not support calendar CB, it is expected to fall back to some other calendar such as AD. That is, the test is explicitly designed to be run by processors that do NOT support calendar="CB", which is what the metadata says.

One could argue for alternative results (there's nothing in the spec that requires the fallback calendar to be "AD" or the word "Calendar" to be in English) but we can add alternatives, or additional dependencies, when we find products that make a different choice.
Comment 2 Michael Kay 2013-05-01 09:17:38 UTC
Closing this as INVALID; if you disagree, feel free to re-open.