map:keys

Returns the set of keys found in a map. The function takes a map as input and returns the keys found in the map, in arbitrary order.

keys($map as map(*)) ➔ xs:anyAtomicType*

Arguments

 

$map

map(*)

The map whose keys are required

Result

xs:anyAtomicType*

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.