<?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>22524</bug_id>
          
          <creation_ts>2013-07-01 13:46:23 +0000</creation_ts>
          <short_desc>[XT3TS] number-0819, 0821</short_desc>
          <delta_ts>2015-05-17 21:01:22 +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 3.0 Test Suite</component>
          <version>Last Call drafts</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="Tim Mills">tim</reporter>
          <assigned_to name="Abel Braaksma">abel.online</assigned_to>
          <cc>abel.braaksma</cc>
    
    <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>90054</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-07-01 13:46:23 +0000</bug_when>
    <thetext>Test number-0819 format numbers using Unicode circled digits.  However, the expected result starts with 0 (&amp;#x30), not a circled zero (&amp;#x2460).

There is a similar problem in number-0821.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97184</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2013-12-05 16:29:54 +0000</bug_when>
    <thetext>The number CIRCLED DIGIT ZERO is not consecutively before the CIRCLED DIGIT ONE in the Unicode codepoints. I.e., ZERO is at U+24EA and ONE is at U+2460.

However, the Unicode spec makes clear that these are part of a range. I think therefor that the test output is in order if &quot;0&quot; is replaced with U+24EA, but would like to hear the WG consensus of this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97189</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-12-05 17:57:25 +0000</bug_when>
    <thetext>The XSLT 3.0 spec for xsl:number in 12.3 says

For example, the formatting token &amp;#x2460; (circled digit one) has a range of 1 to 20 imposed by the Unicode character repertoire. 

But F+O 3.0 for format-integer has correctly updated this to:

For example, the format token &amp;#x2460; (circled digit one, ①) has a range imposed by the Unicode character repertoire — 1 to 20 in Unicode versions prior to 4.0, increased in subsequent versions.

In both cases it&apos;s only an example, therefore non-normative, but we should fix the XSLT version of the text, and recognize that Unicode now has a circled zero, which should probably be used in this test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118733</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-03-20 15:43:18 +0000</bug_when>
    <thetext>I have modified the XSLT 3.0 text to match the F+O text as suggested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119042</commentid>
    <comment_count>4</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-03-30 00:52:06 +0000</bug_when>
    <thetext>Tim Mills wrote:
&gt; expected result starts with 0 (&amp;#x30), not a circled zero (&amp;#x2460).

Michael Kay wrote:
&gt; For example, the format token &amp;#x2460; (circled digit one, ①) has a range 
&gt; imposed by the Unicode character repertoire — 1 to 20 in Unicode versions 
&gt; prior to 4.0, increased in subsequent versions.

However, CIRCLED DIGIT ONE is U+2460, ZERO is U+24EA. They are not consecutive. Both have been around since Unicode 1.1. 

Are we suggesting here that the outcome from a processor should (optionally?) be:

&lt;out&gt; 0 ① ② ③ ④ ⑤ ⑥ ⑦ ⑧ ⑨ ⑩ ⑪ ⑫ ⑬ ⑭ ⑮ ⑯ ⑰ ⑱ ⑲ ⑳ 21 22 23 24 25&lt;/out&gt;

Or:
&lt;out&gt; ⓪ ① ② ③ ④ ⑤ ⑥ ⑦ ⑧ ⑨ ⑩ ⑪ ⑫ ⑬ ⑭ ⑮ ⑯ ⑰ ⑱ ⑲ ⑳ 21 22 23 24 25&lt;/out&gt;

Or even: 
&lt;out&gt; ⓪ ① ② ③ ④ ⑤ ⑥ ⑦ ⑧ ⑨ ⑩ ⑪ ⑫ ⑬ ⑭ ⑮ ⑯ ⑰ ⑱ ⑲ ⑳ ㉑ ㉒ ㉓ ㉔ ㉕&lt;/out&gt;

Numbers up to 50 have been supported since Unicode 3.3.

These ranges are not consecutive:
0:     24EA          (since 1.1, 1993)
1-20:  2460 - 2473   (since 1.1, 1993)
21-35: 3251 - 325F   (since 3.2, 2002)
36-50: 32B1 - 32BF   (since 3.2, 2002)

So for these Unicode ranges in particular, it is incorrect that only 1 to 20 existed in Unicode prior to 4.0. All these circled digits where added earlier.

This means that the sentence in the XSLT 3.0 spec is possibly incomplete: &quot;For example, the formatting token &amp;#x2460; (circled digit one) has a range of 1 to 20 imposed by the Unicode character repertoire.&quot;

I am not sure how to move forward. Since these ranges fall under implementation-defined behavior (and add to that the supported Unicode version is implementation-defined as well), I don&apos;t think there&apos;s anything we can force here, so I propose that the result of the test should iterate these alternatives.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120330</commentid>
    <comment_count>5</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-05-17 21:00:39 +0000</bug_when>
    <thetext>I&apos;ve moved forward and implemented a solution, essentially:

* added new dependency enum values for numeric formatting
* added range dependency to indicate supported ranges
* fixed the test by allowing alternate outcomes
* fixed the test by adding (new) dependencies

In addition, I added a bunch of tests for other No category numbers that have a more or less natural formatting range implied by the Unicode spec.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>