<?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>3009</bug_id>
          
          <creation_ts>2006-03-16 04:14:11 +0000</creation_ts>
          <short_desc>testsuite should allow year zero</short_desc>
          <delta_ts>2006-08-30 18:52:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>unspecified</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Per Bothner">per</reporter>
          <assigned_to name="Carmelo Montanez">carmelo</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>8746</commentid>
    <comment_count>0</comment_count>
    <who name="Per Bothner">per</who>
    <bug_when>2006-03-16 04:14:11 +0000</bug_when>
    <thetext>Some tests (such as op-add-yearMonthDuration-to-dateTime-8) assume that the year before year 1 is year -1.  The follows XML Schema 1.0, but they have at &quot;note&quot; (in section 3.2.7):
  It is the intention of the XML Schema Working Group to allow &apos;0000&apos; as a
  lexical representation in the dateTime, date, gYear, and gYearMonth 
  datatypes in a subsequent version of this Recommendation. &apos;0000&apos; will be
  the lexical representation of 1 BCE (which is a leap year), &apos;-0001&apos; will
  become the lexical representation of 2 BCE (not 1 BCE as in this (1.0)
  version), &apos;-0002&apos; of 3 BCE, etc.
And indeed XML Schema 1.1 Last Call has made that change.
It seems inappropriate for an XQuery conformance suite to prohibit conformance with XML Schema 1.1 ...
Ideally, the testsuite would use alternative results to allow either model.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8761</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-03-16 18:28:57 +0000</bug_when>
    <thetext>Per makes a good point. I suggest supporting both the current and future behavior of xs:dateTime.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8764</commentid>
    <comment_count>2</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-03-16 20:01:49 +0000</bug_when>
    <thetext>So, if I am following this correctly, the alternate outcome will be:
&quot;-0020-06-01T01:01:01Z&quot; (for op-add-yearMonthDuration-to-dateTime-8
in particular).

Carmelo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8765</commentid>
    <comment_count>3</comment_count>
    <who name="Per Bothner">per</who>
    <bug_when>2006-03-16 20:24:03 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; So, if I am following this correctly, the alternate outcome will be:
&gt; &quot;-0020-06-01T01:01:01Z&quot; (for op-add-yearMonthDuration-to-dateTime-8
&gt; in particular).

I think so.  At least that is what the working version of Qexo returns.
I can&apos;t promise there are no bugs in it&apos;s handling of negative years, though!

There are other tests with the same issue:
op-subtract-yearMonthDuration-from-dateTime2args-5
op-add-yearMonthDuration-to-date-8
op-subtract-yearMonthDuration-from-date2args-5
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8771</commentid>
    <comment_count>4</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-03-17 16:17:42 +0000</bug_when>
    <thetext>Per:

Thanks for the comment. Changed the catalog file to allow for the extra outcome, which considers the zero.  Sumitted extra files.  Please close
the bug if in agreement and able to verify.

Thanks,
Carmelo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8780</commentid>
    <comment_count>5</comment_count>
    <who name="Per Bothner">per</who>
    <bug_when>2006-03-19 08:34:42 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Thanks for the comment. Changed the catalog file to allow for the extra
&gt; outcome, which considers the zero.  Sumitted extra files.  Please close
&gt; the bug if in agreement and able to verify.

Not sure what you mean by &quot;able to verify&quot;.  I don&apos;t really see how I&apos;d do that unless you send me a patch, or the next version of the testsuite comes out.  Is there a publicly-readable CVS (or whatever) respository of the testsuite?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11255</commentid>
    <comment_count>6</comment_count>
    <who name="Per Bothner">per</who>
    <bug_when>2006-08-23 23:59:37 +0000</bug_when>
    <thetext>I found 3 more, in the CVS version of the testsuite:

op-add-dayTimeDuration-to-dateTime-8
[Should also allow &quot;0000-12-21T09:09:11Z&quot;.]

op-add-dayTimeDuration-to-date-8
[Should also allow &quot;0000-12-20Z&quot;.]

op-subtract-dayTimeDuration-from-date-8
[Should also allow &quot;0000-12-20Z&quot;.]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11332</commentid>
    <comment_count>7</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-08-30 18:52:29 +0000</bug_when>
    <thetext>Perth:

Changed entry of last set of tests you found by adding extra expected outcome.

Thanks,
Carmelo</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>