This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 4199 - Static typing of K-GenCompEq-9, 10, 32, 33
Summary: Static typing of K-GenCompEq-9, 10, 32, 33
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 1.0.2
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Frans Englich
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-12 15:16 UTC by Tim Mills
Modified: 2007-01-17 08:44 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2007-01-12 15:16:21 UTC
The way in which general comparisons are expanded in the Formal Semantics spec mean that these four queries which really should pass static type checking do not.

some $v1 in fn:data(([Expr1]Expr)) satisfies
  some $v2 in fn:data(([Expr2]Expr)) satisfies
    let $u1 := fs:convert-operand($v1, $v2) return
      let $u2 := fs:convert-operand($v2, $v1) return
        [GeneralOp]GeneralOp ($u1, $u2)

e.g. if v1 has type xs:untypedAtomic and v2 has type (xs:untypedAtomic | xs:decimal), type checking will fail.

(:*******************************************************:)
(: Test: K-GenCompEq-10                                  :)
(: Written by: Frans Englich                             :)
(: Date: 2006-10-05T18:29:37+02:00                       :)
(: Purpose: Example from the XPath 2.0 specification.    :)
(:*******************************************************:)
not((xs:untypedAtomic("1"), xs:untypedAtomic("2")) =
                                   (xs:untypedAtomic("2.0"), 3.0))
Comment 1 Frans Englich 2007-01-15 16:46:06 UTC
An attempted fix has been committed to CVS, and should be part of
XQTS_current.zip. Feel free to verify that the fix is acceptable, and if so,
change status to CLOSED. If the attempted fix is not acceptable, reopen this
report.

If no opinion about this resolution is expressed within two weeks, it will be
closed.
Comment 2 Tim Mills 2007-01-17 08:44:11 UTC
K-GenCompEq-9, 10, 32, 33 are now fixed.