This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In id-function-call-06, the function local:renameFunction is declared as returning as element()* but in fact can only return xs:anyAtomicType. (: Name: id-function-call-06 :) (: Description: Evaluates a function call than contains two parameters, one upda ting (rename) and an integer. :) (: insert-start :) declare variable $input-context as document-node(element(*, xs:untyped)) externa l; (: insert-end :) declare function local:renameFunction($e as xs:anyAtomicType, $b as xs:integer) as element()* { let $e1 := $e return $e1 }; let $arg1 := $input-context/employees[1]/employee[1] return local:renameFunction(rename node $arg1/salary[1] as "salary-1", xs:integer(1))
This was fixed recently by one of our members. The function now returns item()*. Please close this bug report if you agree with this resolution.
Thanks.