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 4082 - Static typing of annex-6
Summary: Static typing of annex-6
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 1.0.1
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: 2006-12-15 13:40 UTC by Nick Jones
Modified: 2007-09-20 09:56 UTC (History)
0 users

See Also:


Attachments

Description Nick Jones 2006-12-15 13:40:42 UTC
Hopefully this should be one of our last static typing problems!

In annex-6

declare function eg:index-of-node($sequence as node()*, $srch as node()) as xs:i
nteger*
{
  for $n at $i in $sequence where ($n is $srch) return $i
};

let $arg1 := (<element1>some data 1</element1>,<element2>some data 2</element2>)
let $arg2 := $arg1[2]
return
 eg:index-of-node($arg1,$arg2)


The second arguement of index-of-node has type node(), which it must do for $n is $srch to type check.

But $arg2 has quantifier zero-or-one (section 7.2.13 of the FS) hence the function call fails to static type check.
Comment 1 Frans Englich 2007-09-14 09:34:51 UTC
A fix has been attempted in CVS, XQTS_current.zip is updated.

If the resolution is satisfactory, feel free to change status to CLOSED. Otherwise, reopen this report. If no feedback is returned within two weeks, status will be changed to CLOSED. Thanks for reporting!
Comment 2 Nick Jones 2007-09-20 09:56:34 UTC
Thanks.