To me that kind of array with a string literal followed by a an array of integers seemed kind of an odd data structure to start with
I am curious how such views will evolve further.
so I would think about just adapting the original FLOWR expression
I am trying this for a while.
to perhaps directly output XML or a sequences of maps from string to an array of integers.
I would prefer other data structures for the discussed use case at the moment.
I would like to achieve that output data can be used for the construction of N:M relationships within a database. https://en.wikipedia.org/wiki/Entity%E2%80%93relationship_model#Cardinalitie...
But I don't see any difference in XQuery in general or for that sample you had, it doesn't really matter whether you have a literal or construct the data from another FLOWR expression.
I got the impression that the clarification of implementation details would get more challenging the more expressions will be involved finally.
Did you run into any problems/errors using the data from a FLOWR expression?
The answer depends on corresponding views.
I am struggling also with the XQuery processor in the way that there are further issues to consider until this development tool will agree to my data processing intentions according to evolving script variants for some use cases.
I would appreciate a bit more guidance for some error messages.
If you need help with that perhaps show a sample and the error you got.
Further test examples might follow for advanced expression combinations.
Regards, Markus