This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The static typing rules for fn:sum at the end of section 7.2.10 of formal semantics contains the following judgment: statEnv |- Type2 <: 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 <: Type0 Type0 in { xs:integer, xs:decimal, xs:float, xs:double, xs:yearMonthDuration } ------------------------------------------------------------------------------ statEnv |- (FN-URI,"sum")(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.
I agree.
The Working Group also agrees. So eventually, this will become an erratum. I'm marking this bug as resolved-FIXED. Please indicate your acceptance of this resolution by marking the bug CLOSED.
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.