Thanks for the explanation.
Wanting to parameterise the input collections, in fairly simple ways, seems to me a natural and common requirement.
but the consequence of a global read lock is all other tasks are unable to access any database. So great care required ;-)
>Variables will only be inlined at compile time, i.e., after the locks have already been assigned.
Consider a function:
bxcode:inline-variables($xqcode-uri) as xs:string
@returns xquery code that is the source code from $xqcode-uri but with inlining "constant" variables and operations applied
This could be used as a preprocessor.
Is this something that could be created from the bits and pieces in the current BaseX Java code?
/Andy