saxon:find

Finds an entry in a map.

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

Arguments

 

$map

map(*)

The map to be searched

 

$key

xs:anyAtomicType

The sought value

Result

item()*

Details

Namespace: http://saxon.sf.net/

Finds an entry in a map.

Notes on the Saxon implementation

From Saxon 9.5, saxon:find() is a synonym of map:get(). The function was originally introduced to allow searching of the "indexed sequence" produced by the saxon:index() function, but since saxon:index() now produces a standard map, saxon:index() has become redundant, and will be withdrawn at some point in the future. Earlier versions of saxon:find() allowed more than one entry to be found in a single call; to reproduce this functionality it is necessary to make multiple calls: in place of saxon:find($map, $keys), use $keys!$map(.).