Hello,

something has gone awry in my database after a db:replace():

query:
        db:open('DB','/path/file.xml')/base-uri()

result:
        /DB/path/file.xml

This is as expected. The result is the replaced file. But when I

query:
        db:open('DB')/root[@id='id']/base-uri()

result is a sequence:
        /DB/path/file.xml
        /DB/path/file.xml

The first result is the file before the db:replace(), the second after.

Can somebody explain why db:open() with path parameter is returning one result, 
but without parameter two results?
Database statistics say there are indeed two documents. But when I export the 
database, only one gets exported.

This happens with db:replace() on 9.2 from the DBA browser interface.
When I use the same db:replace() XQuery on 9.2 with my local database, all is 
well (document gets replaced, no duplicates). Settings should be the default 
ones.

Thanks, Daniel


Reply via email to