I need to add/associate some metadata to an uploaded document before loading it
into the document repository, such as size, user name, date, ip address, etc.
I understand that eXist does not currently permit to modify a document. On the
other hand, I seem to remember that eXist will add a exist:id attribute to the
root element (is this correct?). If yes, could one extend the code to add
other attributes of the type described above?
My other solution would be to create a small metadata document for each added
document which would just contain the described metadata. I guess I would put
them in a separate collection. The question remains whether this is an
efficient/valid approach, given that with each deletion/modification of a
document, this meta document would have to be re-created as well.
I would be grateful for ideas on how to best accomplish this problem.
Thank you in advance,