<?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>29678</bug_id>
          
          <creation_ts>2016-06-01 12:15:16 +0000</creation_ts>
          <short_desc>[QT3TS] same-key-006</short_desc>
          <delta_ts>2016-06-17 10:02:11 +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="Tim Mills">tim</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>andrew_coleman</cc>
    
    <cc>josh.spiegel</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>126632</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-06-01 12:15:16 +0000</bug_when>
    <thetext>According to XQ31, the xs:decimal type minimum value for the maximum number of decimal digits (totalDigits facet) is 18.

The test same-key-006 requires greater precision than is required by the specification.

xs:decimal(&quot;1.00000000000000000000000000000000001&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126633</commentid>
    <comment_count>1</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2016-06-01 13:06:17 +0000</bug_when>
    <thetext>Would you like an alternate result?  FOCA0001?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126634</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-06-01 13:53:07 +0000</bug_when>
    <thetext>(In reply to Josh Spiegel from comment #1)
&gt; Would you like an alternate result?  FOCA0001?

Either that, or reduce the decimals to use the minimum 18 digits.

xs:decimal(&quot;1.00000000000000001&quot;)
xs:decimal(&quot;1.00000000000000002&quot;)


I have to say, I&apos;m struggling with a few of these tests as there is no built-in arbitrary (or sufficiently high) precision decimal in .NET to which I can convert a double, float or integer/decimal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126635</commentid>
    <comment_count>3</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2016-06-01 14:07:09 +0000</bug_when>
    <thetext>I guess that would work too since they still map to the same double.

&gt; I have to say, I&apos;m struggling with a few of these tests as there is no built-in arbitrary (or sufficiently high) precision decimal 

Mike suggested at some point that implementations like yours could fake it by using strings.  It sounds plausible to me but I haven&apos;t fully thought it through.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126639</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-06-02 07:52:41 +0000</bug_when>
    <thetext>We&apos;re off-topic here, but some people recommend using the J# library.

We&apos;re having to use a 3rd party library for xs:decimal in our Javascript product, it&apos;s not the end of the world...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126640</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-06-02 08:31:10 +0000</bug_when>
    <thetext>(In reply to Michael Kay from comment #4)
&gt; We&apos;re off-topic here, but some people recommend using the J# library.
&gt; 
&gt; We&apos;re having to use a 3rd party library for xs:decimal in our Javascript
&gt; product, it&apos;s not the end of the world...

I&apos;m going to ask for this to be put on the agenda for next week.  I&apos;ll post to the mailing list my thoughts on the subject.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126787</commentid>
    <comment_count>6</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2016-06-17 10:02:11 +0000</bug_when>
    <thetext>At the meeting on 2016-06-14, the WG agreed to adopt the solution in comment #2.
Action A-646-04 will track this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>