map:merge

Creates a new map that combines entries from a number of existing maps. There is one entry in the new map for each distinct key present in the union of the input maps; the associated value for each such key is taken from the last map in the input sequence containing that key.

merge($maps as map(*)*) ➔ map(*)

Arguments

 

$maps

map(*)*

The input maps

Result

map(*)

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. Currently in namespace http://www.w3.org/2005/xpath-functions/map. Available in XSLT, XPath, and XQuery, whether or not 3.0 is available.