All, The following query:
let $lookupSequence := ('a','b') let $map := map {'c': 'x'} let $mapLookupEvaluation := $map?($lookupSequence) return ( 'Evaluation of the map lookup is: ' || string-join($mapLookupEvaluation,", "), 'count($mapLookupEvaluation) is: ' || count($mapLookupEvaluation) )
Results in: Evaluation of the map lookup is: count($mapLookupEvaluation) is: 2
I would have expected 0 instead of 2. Am I missing something? Best regards, Johannes