Removes entries from a map. Returns a new map based on the supplied map, minus any entries whose key matches one of the supplied keys. The supplied map is unchanged.
remove($map as map(*), $keys as xs:anyAtomicType*) ➔ item()*
The input map
The keys to be removed
Links to W3C specifications
Notes on the Saxon implementation
Available as defined in XSLT 3.0 since Saxon 9.4; in XSLT, XPath, and XQuery, whether or not 3.0 is available.
XPath 3.1 version implemented since Saxon 9.7.
Since 126.96.36.199, the behaviour changed (following a W3C Specification change) to allow multiple items to be removed in a single call.