<?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>28590</bug_id>
          
          <creation_ts>2015-05-01 12:55:33 +0000</creation_ts>
          <short_desc>[FO31] and [FO30] comma or semicolon for the width specifier in formatting picture</short_desc>
          <delta_ts>2015-05-06 01:19:58 +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>Functions and Operators 3.1</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</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="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <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>120032</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-05-01 12:55:33 +0000</bug_when>
    <thetext>For date/time functions that take a formatting picture string, the specification states:

   &quot;The width modifier, if present, is introduced by a comma or semicolon. It takes the form:&quot;

It then shows the form without a semicolon:

   &quot;,&quot;  min-width (&quot;-&quot; max-width)?

And in the introduction of 9.8.4. (FO30 and FO31) it states:

   &quot;2. The width modifier may be recognized by the presence of a comma.&quot;

Later in the text, it seems to only refer to a comma as an allowed width modifier introducer. I didn&apos;t readily find any tests that allow the semicolon in this position.

Looking back at the XSLT 2.0 specification, it only speaks of a comma.

It may be handy to allow a semicolon in this position (as the text suggests), in cases where you want the picture string to contain commas, you can use a single semicolon to introduce width, or vice versa, which seems more user-friendly than the rule that you must use a width modifier if you want to use a comma inside the token (i.e. as a thousands separator). 

Perhaps that was the original idea behind this, but the rest of the text does not reflect that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120078</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-05-05 14:56:28 +0000</bug_when>
    <thetext>I notice that the &quot;comma or semicolon&quot; phrase was not there in XSLT 2.0, but it was present in the first published draft of F+O 3.0 (then called &quot;1.1&quot; - 15 Dec 2009). That&apos;s also the first time that the paragraph appears saying what happens if there are two commas present. So I suspect that what happened is that we found there was a problem if you wanted to use a comma to separate seconds from fractional seconds; someone proposed allowing a semicolon as an alternative to comma for the width specifier; we resolved instead to make the last comma the one that counts; but the text suggesting the semicolon alternative remained in the spec.

I haven&apos;t been able to find the discussion that let this change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120083</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-05-05 16:59:16 +0000</bug_when>
    <thetext>The WG agreed that the &quot;or semicolon&quot; phrase was an aberration, and resolved to fix the bug by removing this option.

The change has been applied to the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120121</commentid>
    <comment_count>3</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-05-06 01:19:58 +0000</bug_when>
    <thetext>Thanks, that makes sense (comment#1). I believe I should now close the bug?

Marked as CLOSE / FIXED.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>