Maps are a derivative of the function type and highly general.
I got informed that the data structure “map” got a clear meaning according to XQuery programming interfaces.
You're in effect asking for examples of using a function with no other information provided.
I came along another clarification desire according to the mentioned standard data structure.
It's just about impossible to answer usefully.
The standard specification just shows examples for topics like “days” and “books” with map constructors based on literal data. How would the XQuery code look like if a detailed FLWOR expression would be applied instead?
The subsequent CSV result output should show finally that keys and associated values were properly determined before.
Regards, Markus