map:new

Creates a new map.

new() ➔ map(*)

The zero-argument form creates an empty map.

There are no arguments

Result

map(*)

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

Creates a map by combining the supplied maps. These will often be constructed using the map:entry function.

Arguments

 

$maps

map(*)*

The input maps to be combined

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

Although not documented, the implementation in 9.5 accepted a collation URI as the second argument. This has been dropped in Saxon 9.6.

Since May 2014, this function has been dropped from the XSLT 3.0 Specification, and replaced by the new function map:merge(), which is implemented since Saxon 9.6.

See also:

map:merge()