This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
($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)
Committed a fix to CVS.