map:entry

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

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

Arguments

 

$key

xs:anyAtomicType

The key

 

$value

item()*

The corresponding value

Result

map(*)

Namespace

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

Links to W3C specifications

XPath 3.1 Functions and Operators

XSLT 3.0 Specification

Saxon availability

Available in XPath 3.1, XSLT 3.0, and XQuery 3.1. From Saxon 9.7, available in all editions.

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.

See also:

map:merge()