Hi!

I am running BaseX 8.1.

This is my test case:
create database test

add to /doc/title/version=1 c:/temp/xml.xml

Running query:
   for $doc in (collection('test')) return (base-uri($doc))

Result: test/doc/title/version=1

Executing this command:
rename /doc/title/ /doc/title2/

Running query once again:
for $doc in (collection('test')) return (base-uri($doc))

Result: test/doc/title2/ersion=1

So, I am losing the "v" in version, that is the first letter after the directory that is renamed, seems to disappear with each rename.

A bug, or improper usage?

Kind regards
Ketill Fenne