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 4181 - Static typing of K-SeqIndexOfFunc-6, 12, 14, 17
Summary: Static typing of K-SeqIndexOfFunc-6, 12, 14, 17
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-10 14:16 UTC by Tim Mills
Modified: 2007-01-15 09:07 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2007-01-10 14:16:02 UTC
The static return type of index-of is xs:integer* and thus a static type check error is detected when comparing the result of this function against an integer with eq.

(:*******************************************************:)
(: Test: K-SeqIndexOfFunc-6                              :)
(: Written by: Frans Englich                             :)
(: Date: 2006-10-05T18:29:40+02:00                       :)
(: Purpose: A test whose essence is: `index-of("a string", "a string", "http://w
ww.w3.org/2005/xpath-functions/collation/codepoint") eq 1`. :)
(:*******************************************************:)
index-of("a string", "a string",
                        "http://www.w3.org/2005/xpath-functions/collation/codepo
int") eq 1
Comment 1 Frans Englich 2007-01-12 18:52:37 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.

Along with the fix for this report, was committed fixes for other reports as well. Also, a significant amount of new tests were added to cover missing areas and changes in the specifications.
Comment 2 Tim Mills 2007-01-15 09:07:37 UTC
This fixes the static typing problems in K-SeqIndexOfFunc-6, 12, 14, 17.  Thanks.