Hi Markus --
On Wed, May 25, 2022 at 05:00:22PM +0200, Markus Elfring scripsit:
I would like to construct a map structure based on a dynamic selection by the means of a FLWOR expression. https://www.w3.org/TR/2017/REC-xquery-31-20170321/#id-maps
The keys and associated values should be presented as a CSV-like file by a subsequent data processing step.
Can it become easier to find existing XQuery script examples for such an use case?
Maps are a derivative of the function type and highly general. You're in effect asking for examples of using a function with no other information provided. It's just about impossible to answer usefully.
Can you provide something tangible and specific? Some actual XML input, or some XML with the same structure as your intended input, and some indication of how it should work in the form of a line or three of the expected CSV result corresponding to that input?
Thanks!