map:put

Creates a map that adds a single entry to an existing map, or replaces a single entry (with the specified key) in an existing map.

put($map as map(*), $key as xs:anyAtomicType, $value as item()*) ➔ item()*

Arguments

 

$map

map(*)

The input map

 

$key

xs:anyAtomicType

The key to be added or replaced

 

$value

item()*

The new associated value for the specified key

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