Tests whether a particular key is present in a map. Returns true if the candidate key is present in the map, otherwise false.
contains($map as map(*), $key as xs:anyAtomicType) ➔ xs:boolean
The input map
The candidate key
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.