map:entry

Creates a singleton map.

entry($key as xs:anyAtomicType, $value as item()*) ➔ map(*)

Arguments

 

$key

xs:anyAtomicType

The key

 

$value

item()*

The corresponding value

Result

map(*)

Details

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

Applies to: XSLT 3.0 only (if enabled in Saxon: requires Saxon-PE or Saxon-EE)

Creates a map with a single entry. Used in conjunction with map:new to create maps with multiple entries.

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. Requires Saxon-PE or Saxon-EE.