[Bug 29080] array:members

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29080

--- Comment #11 from Josh Spiegel <josh.spiegel@oracle.com> ---
> I think this currently evaluates to an error, because, unless I misunderstand > the signature or your code, fn:avg#1 does not take an array as its argument 
> (which in itself may be considered surprising).

This is not correct.  The signature of fn:avg is:

  fn:avg($arg as xs:anyAtomicType*) as xs:anyAtomicType?

The call to this function will implicitly atomize the input and thus would
flatten array. 

e.g. 

   <test-case name="fn-avg-10">
      <test>avg([1,2,3,4,5])</test>
      <result>
         <assert-eq>3</assert-eq>
      </result>
   </test-case>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 14 June 2016 14:29:44 UTC