Hi,
I notice fn:put() appears to be resolving uris relative to the working directory, as the file module does, rather than static-base-uri() as fn:doc() does. I dont think it was always like this and it seems to against the intent of the spec[1]?
/Andy
[1] The external effects of upd:put are implementation-defined, since they occur outside the domain of XQuery. The intent is that, if upd:put is invoked on a document node and no error is raised, a subsequent query can access the stored document by invoking fn:doc with the same URI. https://www.w3.org/TR/xquery-update-10/#id-upd-put
fn:put(<a/>"test.xml") --------------------------- fn:doc("test.xml") (: [FODC0002] Resource 'C:/.../test.xml' does not exist. :)