<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>29573</bug_id>
          
          <creation_ts>2016-04-13 10:42:07 +0000</creation_ts>
          <short_desc>format-dateTime-en151, format-dateTime-en152, format-date-en151, format-date-en152</short_desc>
          <delta_ts>2016-04-26 20:32:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Christian Gruen">christian.gruen</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>mike</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>125839</commentid>
    <comment_count>0</comment_count>
    <who name="Christian Gruen">christian.gruen</who>
    <bug_when>2016-04-13 10:42:07 +0000</bug_when>
    <thetext>In 9.8.4.4. of the XQFO 3.1 spec, it is stated that

&quot;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.&quot;

and

&quot;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.&quot;

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

  &lt;assert-string-value&gt;[Language: en]March&lt;/assert-string-value&gt;
  &lt;assert-string-value&gt;[Calendar: AD]03&lt;/assert-string-value&gt;

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

  &lt;not&gt;&lt;assert-string-value&gt;March&lt;/assert-string-value&gt;&lt;not&gt;
  &lt;not&gt;&lt;assert-string-value&gt;03&lt;/assert-string-value&gt;&lt;/not&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126166</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-04-26 20:32:49 +0000</bug_when>
    <thetext>The WG agreed that the expected results needed to be more liberal.

I have replaced the expected results with

         &lt;all-of&gt;
            &lt;assert&gt;matches($result, &quot;en&quot;)&lt;/assert&gt;
            &lt;assert&gt;matches($result, &quot;March&quot;)&lt;/assert&gt;
         &lt;/all-of&gt;

         &lt;all-of&gt;
            &lt;assert&gt;matches($result, &quot;AD&quot;)&lt;/assert&gt;
            &lt;assert&gt;matches($result, &quot;03&quot;)&lt;/assert&gt;
         &lt;/all-of&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>