<?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>29552</bug_id>
          
          <creation_ts>2016-04-03 23:10:41 +0000</creation_ts>
          <short_desc>[XP31] XSD 1.1 has a minimal conformance requirement for decimals of 16 digits, not 18 digits</short_desc>
          <delta_ts>2016-04-05 23:33:28 +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>XPath 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="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</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>125699</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-04-03 23:10:41 +0000</bug_when>
    <thetext>The resolution of Bug 29419 (when applied) mentions that minimal conforming processors must support 18 digits precision for decimals (and by extension, integers).

I believe this conformance is also mentioned somewhere else, and/or in FO31, but I couldn&apos;t readily find it.

In XSD 1.1 this minimal conformance requirement seems to have changed. I found that surprising and didn&apos;t come across it earlier, but in section 5.4 of XSD 1.1 the text says, among other things:

&lt;quote&gt;
All ·minimally conforming· processors must support decimal values whose absolute value can be expressed as i / 10k, where i and k are nonnegative integers such that i &lt; 1016 and k ≤ 16 (i.e., those expressible with sixteen total digits).
&lt;/quote&gt;

I&apos;m not 100% sure I interpret this correctly, but it seems to me that the minimal conformance requirement dropped from 18 digits to 16 digits in XSD 1.1. If so, I think we should mention that in XP31 as well, and/or specify that, regardless of XSD version supported, the minimal conformance requirement is 18 digits.

I&apos;m in favor of the latter to prevent ugly differences in supported integer ranges between processors (however unlikely I find that a processor will limit it *below* 18 digits).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125700</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-04-03 23:11:57 +0000</bug_when>
    <thetext>Link to the mentioned quote: https://www.w3.org/TR/xmlschema11-2/#partial-implementation (scroll down to the first bullet point).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125731</commentid>
    <comment_count>2</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-04-05 23:33:20 +0000</bug_when>
    <thetext>As discussed at today&apos;s telcon #638, this issue can be closed with no action, for the following reasons:

- XPath requires host languages to define limits, both XSLT and XQuery do so
- XSLT and XQuery define an 18 digits minimum
- The dependency on XSD as perceived by the spec is therefor not relevant
- Even though XSD 1.1 allows 16 digits min. precision, this has no influence as this is lower than the limit defined in host languages
- Other options were discussed (like leaving a Note), but dismissed as too irrelevant and/or adding to the confusion 
- None that were on call could find other mentions in the text on 18 digits

Since XPath does not define these limits, the text that resolves Bug 29419 (which mentions the 18 digits) will be slightly and editorially adjusted. This will be tracked in that bug itself.

Resolved as WORKSFORME.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>