<?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>5460</bug_id>
          
          <creation_ts>2008-02-07 15:03:23 +0000</creation_ts>
          <short_desc>[FS] Error in static typing judgement for fn:sum</short_desc>
          <delta_ts>2008-08-28 01:06:12 +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>Formal Semantics 1.0</component>
          <version>Recommendation</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</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="Oliver Hallam">oliver</reporter>
          <assigned_to name="Michael Dyck">jmdyck</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>18822</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Hallam">oliver</who>
    <bug_when>2008-02-07 15:03:23 +0000</bug_when>
    <thetext>The static typing rules for fn:sum at the end of section 7.2.10 of formal semantics contains the following judgment:

statEnv |-  Type2 &lt;: xs:anyAtomicType ?
Type3 = prime(Type1)
Type4 = convert_untypedAtomic(Type3, xs:double)
FormalItemType 1, ...,FormalItemType n = Type4
statEnv |-  FormalItemType 1 can be promoted to Type0
...
statEnv |-  FormalItemType n can be promoted to Type0
statEnv |-  Type2 &lt;: Type0
Type0 in { xs:integer, xs:decimal, xs:float, xs:double, xs:yearMonthDuration }
------------------------------------------------------------------------------
statEnv |-  (FN-URI,&quot;sum&quot;)(Type1,Type2) : Type0 · aggregate_quantifier(quantifier(Type1))

The line

Type0 in { xs:integer, xs:decimal, xs:float, xs:double, xs:yearMonthDuration }

should read

Type0 in { xs:integer, xs:decimal, xs:float, xs:double, xs:yearMonthDuration, xs:dayTimeDuration }

to keep in line with the text.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18970</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2008-02-12 04:02:45 +0000</bug_when>
    <thetext>I agree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18977</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2008-02-12 22:35:07 +0000</bug_when>
    <thetext>The Working Group also agrees. So eventually, this will become an erratum.

I&apos;m marking this bug as resolved-FIXED. Please indicate your acceptance of this resolution by marking the bug CLOSED.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21671</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2008-08-28 01:06:12 +0000</bug_when>
    <thetext>The suggested fix was incorporated into the solution proposed in Bug 5459
Comment #16. That solution has been committed to the source files for the
next edition of the FS document, as part of the fix for FS erratum E033.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>