<?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>19579</bug_id>
          
          <creation_ts>2012-10-17 15:37:13 +0000</creation_ts>
          <short_desc>cbcl-subsequence-008, 010</short_desc>
          <delta_ts>2013-06-07 11:38:16 +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>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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>
          <dependson>21413</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="O&apos;Neil Delpratt">oneil</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</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>76507</commentid>
    <comment_count>0</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2012-10-17 15:37:13 +0000</bug_when>
    <thetext>The test-case cbcl-subsequence-010 (i.e: &apos;count(subsequence(1 to 3000000000, -2147483648, 2147483647))&apos;) goes beyond the limits of representation for a integer value in Java and therefore we are not able to produce the expected result in our implementation. Hence, we suggest that any-error be allowed as an additional expected result for us to pass this test.

In addition, for the test cbcl-subsequence-008 there is spurious error code (i.e. &lt;error code=&quot;ANDY0001&quot;/&gt;) given as one of the expected results.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77940</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-11-06 11:56:51 +0000</bug_when>
    <thetext>This is interesting.

In the XSLT 3.0 specification at:

https://www.w3.org/XML/Group/qtspecs/specifications/xslt-30/html/Overview.html#limits

lists 7 implementation defined limits.

1.  For the xs:decimal type, the maximum number of decimal digits (the totalDigits facet). This must be at least 18 digits. (Note, however, that support for the full value range of xs:unsignedLong requires 20 digits.)

2.  For the types xs:date, xs:time, xs:dateTime, xs:gYear, and xs:gYearMonth: the range of values of the year component, which must be at least +0001 to +9999; and the maximum number of fractional second digits, which must be at least 3.

3.  For the xs:duration type: the maximum absolute values of the years, months, days, hours, minutes, and seconds components.

4.  For the xs:yearMonthDuration type: the maximum absolute value, expressed as an integer number of months.

5.  For the xs:dayTimeDuration type: the maximum absolute value, expressed as a decimal number of seconds.

6.  For the types xs:string, xs:hexBinary, xs:base64Binary, xs:QName, xs:anyURI, xs:NOTATION, and types derived from them: the maximum length of the value.

7.  For sequences, the maximum number of items in a sequence.

Not all of these are represented in the XQuery 3.0 specifiaction in

https://www.w3.org/XML/Group/qtspecs/specifications/xquery-30/html/xquery-30.html#id-data-model-conformance

Of the above, 1 to 5 are represented in the F&amp;O specification by error codes FOAR0002, FOCA0001, FOCA0003, FOCA0006, FODT0001 and FODT0002.

There aren&apos;t any codes for 6 or 7.  Perhaps there should be?

The code ANDY0001 is XmlPrime&apos;s error for &quot;Argument out of implementation defined range.&quot;  Perhaps a code for this could be added to F&amp;O 3.0 so that the condition can be handled uniformly across processors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84723</commentid>
    <comment_count>2</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2013-03-20 10:59:29 +0000</bug_when>
    <thetext>To add a new error code I think we would need a WG decision.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85054</commentid>
    <comment_count>3</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2013-03-27 12:59:04 +0000</bug_when>
    <thetext>The WG decided add an error code for &quot;implementation-defined limit exceeded&quot;. Therefore this bug depends on the resolution of bug #21413,</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85059</commentid>
    <comment_count>4</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2013-03-27 16:37:12 +0000</bug_when>
    <thetext>In addition to comment #3 the spurious error code described in comment #0 has been removed from the test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88898</commentid>
    <comment_count>5</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2013-06-07 11:38:16 +0000</bug_when>
    <thetext>Test cases fixed by using the new error codes</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>