fn:map-for-key

Delivers the content of a key, for a specific document or subtree, as a map.

map-for-key($key-name as (xs:string | xs:QName), $top as (document-node() | element()):=/) ➔ map(xs:anyAtomicType, node()*)

Arguments

 

$key-name

(xs:string | xs:QName)

The name of the key

 

$top

(document-node() | element())

:= /

Used to specify a subtree

Result

map(xs:anyAtomicType, node()*)

Namespace

http://www.w3.org/2005/xpath-functions

Links to W3C specifications

XSLT 4.0 Specification

Saxon availability

Available in XSLT 4.0. Not implemented in Saxon.

Notes on the Saxon implementation

New in XSLT 4.0. Not yet implemented in Saxon.