I have a fairly simple XQuery function that returns a sequence of IDs.
declare function local:get-ids($param as xs:string) {
...do something...
return $ids
}
What I want to do is combine return values like this:
for $ids in local:get-ids("something") | fn:subsequence(local:get-ids("something else"), 5)
This isn't working, though. I'm getting an error saying that one of the IDs is not a node. I am able to run this with each sequence individually, but when I try to combine them it fails. What's the proper way to do this?
Thanks>
|does for node sets, plus sorting in document order) or merge them in a more complicated way? - Leo Wörteler