map:size

Returns the number of entries in the supplied map.

size($input as map(*)) ➔ xs:integer

Arguments

 

$input

map(*)

The input map

Result

xs:integer

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.6. Currently in namespace http://www.w3.org/2005/xpath-functions/map. Available in XSLT, XPath, and XQuery, whether or not 3.0 is available.