$sequence($params)
is equivalent to:
for $item in $sequence return $item($params)
jerr:JNTY0018
is raised if there is more than one parameter.
jerr:JNTY0018
is raised if there is more than one parameter.
jerr:JNTY0018
is raised if there is more than one parameter.
jdm:keys($o)
then $o($s)
returns the value of the pair with the name $s
, i.e. jdm:value($o, $s)
. Otherwise (i.e., it has no key matching $s
), an empty sequence is returned.
let $map := { "eyes" : "blue", "hair" : "fuchsia" } return $map("eyes")
blue
let $x := { "eyes" : "blue", "hair" : "fuchsia" } let $y := { "eyes" : brown, "hair" : "brown" } return { "eyes" : $x("eyes"), "hair" : $y("hair") }
{ "eyes" : "blue", "hair" : "brown" }