<?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>29761</bug_id>
          
          <creation_ts>2016-07-29 16:18:29 +0000</creation_ts>
          <short_desc>[FO31] width modifier (again)</short_desc>
          <delta_ts>2016-09-13 15:09:40 +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>WORKSFORME</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="Tim Mills">tim</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>127087</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-07-29 16:18:29 +0000</bug_when>
    <thetext>The text says.

&quot;Whether or not a presentation modifier is included, a width modifier may be supplied. This indicates the number of characters to be included in the representation of the value.&quot;

Just to clarify, do ALL characters contribute to the computation of width, or just numeric characters.

e.g.  does -123 have width 4 or 3.

I&apos;m particularly thinking of tests such as &quot;format-date-045&quot;

format-date(xs:date(&apos;2016-01-01&apos;), &apos;[Y#.0,1-4]&apos;)

which expects &quot;2.0.1.6&quot;.

That said, the text also says

&quot;If the decimal digit pattern includes a grouping separator, the output is implementation-defined&quot;

so this test and similar ones should probably go anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127318</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-09-06 21:30:03 +0000</bug_when>
    <thetext>I think that the detailed rules are unambiguous, though the summary cited is imprecise.  The rules say:

(a) if there are grouping separators, all bets are off

(b) otherwise, the width modifier causes the picture to be adjusted in a defined way and the rules of format-number then apply. For example Y99,4-4 is adjusted to Y9999.

(c) minus signs don&apos;t come into it: none of the integer-valued components formatted by the date formatting functions is ever negative</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>