Hi Chuck,
target elements each have an @uuid value, and I'd like to extract each @uuid value and assign it a unique number from an incrementing sequence of integers.
There has recently been a thread on generating consecutive ids, it should answer some of your questions [1].
I tried a recursive function I borrowed and modified from a StackOverflow post: [...] I'm using -Xmx6g and -Xss4m as flags for Java in the basexgui script.
Is there some way to get BaseX to use tail recursion?
Absolutely. You can rewrite function calls in recursive code to tail calls (but it’s hardly possible to do this automatically); see [2] for some examples.
Hope this helps, Christian
[1] https://www.mail-archive.com/basex-talk%40mailman.uni-konstanz.de/msg07120.h... [2] https://en.wikipedia.org/wiki/Tail_call