Applies a supplied function to every map, returning the concatenation of the results.
for-each($map as map(*), $action as function($key as xs:anyAtomicType, $value as item()*)) ➔ item()*
The input map
function($key as xs:anyAtomicType, $value as item()*)
The function to be applied
Links to W3C specifications
Notes on the Saxon implementation
Available since Saxon 9.6, replacing the previously available function
map:for-each-entry (which was available since Saxon 9.4). Currently in
http://www.w3.org/2005/xpath-functions/map. Available in XSLT,
XPath, and XQuery, whether or not 3.0 is available. Saxon always compares string-valued
keys using the Unicode codepoint collation.