Ok, Thanks for the info it is what I guessed, but I note the "currently" :)
It would be good, long term, to look to matching the Saxon capabilties here [1], part of which (xslt) are covered by this issue [2].
And related: I wonder sometimes about a "xmldb:" uri scheme and a custom resolver that could be passed to 3rd party validation and transform libraries to allow them to access BaseX db resources. I seem to remember a number of issues on the list that could be related to the saving temp copies of db resources to the file system as seems to occur currently.
No doubt this would be a big task, if it is even possible :)
/Andy