map:get
Gets an entry from a map. Returns the value associated with the given key if present, or the empty sequence otherwise.
get($map as map(*), $key as xs:anyAtomicType) ➔ item()*
Arguments | |||
| $map | map(*) | The input map |
| $key | xs:anyAtomicType | The candidate key |
Result | item()* |
Namespace
http://www.w3.org/2005/xpath-functions/map
Links to W3C specifications
XPath 3.1 Functions and Operators
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.
Saxon always compares string-valued keys using the Unicode codepoint collation.