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 5354 - id-function-call-06 fails type checking
Summary: id-function-call-06 fails type checking
Status: CLOSED FIXED
Alias: None
Product: XQuery Update Facility Test Suite
Classification: Unclassified
Component: XQuery Update Facility Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-10 14:44 UTC by Tim Mills
Modified: 2008-11-20 09:08 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2008-01-10 14:44:12 UTC
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))
Comment 1 Andrew Eisenberg 2008-11-19 16:37:28 UTC
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.



Comment 2 Tim Mills 2008-11-20 09:08:21 UTC
Thanks.