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 29573 - format-dateTime-en151, format-dateTime-en152, format-date-en151, format-date-en152
Summary: format-dateTime-en151, format-dateTime-en152, format-date-en151, format-date-...
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-13 10:42 UTC by Christian Gruen
Modified: 2016-04-26 20:32 UTC (History)
1 user (show)

See Also:


Attachments

Description Christian Gruen 2016-04-13 10:42:07 UTC
In 9.8.4.4. of the XQFO 3.1 spec, it is stated that

"If the fallback representation uses a different calendar from that requested, the output string must identify the calendar actually used, for example by prefixing the string with [Calendar: X] (where X is the calendar actually used), localized as appropriate to the requested language."

and

"If the fallback representation uses a different language from that requested, the output string must identify the language actually used, for example by prefixing the string with [Language: Y] (where Y is the language actually used) localized in an implementation-dependent way."

In the test suite, there are four tests which contain the proposed prefixes "[Calendar: ...]" and "[Language: ...]":

  <assert-string-value>[Language: en]March</assert-string-value>
  <assert-string-value>[Calendar: AD]03</assert-string-value>

If the prefix representation is supposed to be examplary, it could make sense to replace the string assertions with something like:

  <not><assert-string-value>March</assert-string-value><not>
  <not><assert-string-value>03</assert-string-value></not>
Comment 1 Michael Kay 2016-04-26 20:32:49 UTC
The WG agreed that the expected results needed to be more liberal.

I have replaced the expected results with

         <all-of>
            <assert>matches($result, "en")</assert>
            <assert>matches($result, "March")</assert>
         </all-of>

         <all-of>
            <assert>matches($result, "AD")</assert>
            <assert>matches($result, "03")</assert>
         </all-of>