[Bug 27098] possibility of functions to return multiple arguments which can be used in the argumentlist of a functioncall.

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

--- Comment #1 from Michael Kay <mike@saxonica.com> ---
This sounds like one of the use cases for maps, which are introduced in XPath
3.1. A function can return multiple results in a map, and the map can either be
passed to another function as a single argument value, or its components can be
passed in multiple arguments:

declare function f() {
  map{ x:23, y:34 }
}

declare function g($x, $y) {
  ...
}

let $f := f()
return g($f?x, $f?y)

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

Received on Saturday, 18 October 2014 16:32:06 UTC