Craig,
hi again, this time for everyone (thanks for sending this to the list)..
I am trying BaseX 6.7 and have noticed that the same document can be added to a collection many times using the ADD command (add z.xml), duplicating data wich is not desirable. Is this a bug of this version? In comparison, using Sedna 3.4, the same document can not be added to a collection if it already exists, treating document names as primary key. Is there a solution to this, or is there a way in BaseX 6.7 to have a kind of primary key constraint?
in BaseX, multiple documents with the same name are allowed in a single database (the handling of collections in XQuery is completely implementation defined). If you want to get sure that your document will be deleted before an addition, you may use the DELETE command in advance.
Christian