<?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>1813</bug_id>
          
          <creation_ts>2005-07-25 00:33:03 +0000</creation_ts>
          <short_desc>Does format-number still need notion of overflow?</short_desc>
          <delta_ts>2005-07-25 06:11:57 +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>XSLT 2.0</component>
          <version>Last Call drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Marston">david_marston</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>5189</commentid>
    <comment_count>0</comment_count>
    <who name="David Marston">david_marston</who>
    <bug_when>2005-07-25 00:33:04 +0000</bug_when>
    <thetext>As you know, I wrote the original text for part 16.4 (number Formatting) in 
XSLT 2.0, and I included the notion of an overflow threshold. This notion came 
from older languages that format data by means of a picture string. The 4 April 
2005 draft continues to have a definition of the concept and a formula for 
determining that overflow has occurred, but step 5 of the formatting procedure 
in 16.4.4 seems to make it moot. Step 5 says in essence that a picture like
0000
is really
#0000
(and of course #0000 is really ##0000 or ###0000 or whatever it takes). In that 
case, why bother to define overflow? Why not rewrite step 5 to simply mention 
that numbers can grow leftward as much as necessary?

Alternatively, why not revive the notion of overflow, which will be familiar to 
some people and serves a useful purpose? I suppose the WG has already voted 
that one off the table. If it were revived, people who wanted overflow fillers 
would have a way to express it (0000), while people who wanted leftward growth 
as needed would still have a way to have a minimum number of places (#0000).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5190</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-07-25 06:11:37 +0000</bug_when>
    <thetext>You&apos;re right. When we decided that overflow would no longer be an (optionally)
recoverable error, but that processors would instead always take the recovery
action, I implemented the decision by making the minimal necessary changes to
the text. It seems that the algorithm produces the same results if the third
bullet of 16.4.3 and list item 5 in 16.4.4 are deleted, so I will do this.

Since this change does not affect the semantics of the language, I will treat it
as editorial. I will mark the issue as fixed, and assume your tacit approval;
you (or any WG member) can reopen the bug if you feel that further discussion is
required.

Michael Kay</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>