Hello!
So if I have a number of updating queries, what's the best way to write a query that will run all of them in some fixed order? (I am doing this from the GUI.) All the individual updating queries do what they're expected to do and it works if I run them in sequence from the GUI, query one, query two, and so on. If I try to chain them together:
xs:anyURI('updating-query-1.xq') => xquery:eval-update(),
xs:anyURI('updating-query-2.xq') => xquery:eval-update()
Seems to work OK for the first two or three and then to start having issues (in the sense that the updates don't appear to happen to the target) if I chain four or five together. (The updating queries get the db name to update from a common xquery module.)
It also looks inelegant, like there ought to be a better way.
Anyone got any suggestions? Or is this not a sensible thing to be attempting?
Thanks!
Graydon