I have a function which contains a constructor:
declare function local:Construct ($id)
{
<tag id="{$id}"/>
}
I use the function in return of "FLWOR":
for $val in ...
...
return local:Construct(data($val/id))
This works.
Now I want to concatenate two Constructs like this
for $val in ...
...
return local:Construct(data($val/id1)) + local:Construct(data($val/id2))
The plus sign is of course wrong. What should I use instead?