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 5515 - CVS: K2-Steps-32
Summary: CVS: K2-Steps-32
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: 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: 2008-03-03 09:51 UTC by Tim Mills
Modified: 2010-03-16 16:00 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2008-03-03 09:51:19 UTC
($count eq 2) fails static type checking, as there is eq is not defined for all subtypes of item()*.  An 'as xs:integer' would solve the problem.

(:*******************************************************:)
(: Test: K2-Steps-32                                     :)
(: Written by: Frans Englich                             :)
(: Date: 2007-11-22T11:31:21+01:00                       :)
(: Purpose: Tricky combination of focus and a recursive function call. :)
(:*******************************************************:)
declare variable $root := <root/>;
declare function local:function($arg, $count)
{
    $arg,
    $root,
    if($count eq 2)
    then $root
    else local:function($arg, $count + 1)
};
$root/local:function(., 1)
Comment 1 Frans Englich 2008-03-03 10:05:47 UTC
Committed a fix to CVS.