map:remove

Removes an entry from a map. Returns a new map based on the supplied map, minus any entry whose key matches the supplied key. The supplied map is unchanged.

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

Arguments

 

$map

map(*)

The input map

 

$key

xs:anyAtomicType

The key to be removed

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