map:for-each

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()*

Arguments

 

$map

map(*)

The input map

 

$action

function($key as xs:anyAtomicType, $value as item()*)

The function to be applied

Result

item()*

Namespace

http://www.w3.org/2005/xpath-functions/map

Links to W3C specifications

XSLT 3.0 Specification

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 namespace 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.