Hi Cerstin,

correct, new documents will aways be added after the existing
documents, which is why the existing node ids won't change. The ids
returned by "node-id()" won't change, too, in contrast to the values
returned by "node-pre()".

Hope this helps,
Christian
___________________________

> I will implement a web interface to edit and update specific nodes in an
> existing database.  This will probably be controlled mainly by the node-id.
>  Therefore it is no good idea to change the collection during the editing
> process because node-ids would change.
>
> However, it seems that when adding a document to a collection it will be
> integrated *after* all existing documents.  Is it guaranteed that when
> adding a new document to a collection, no existing node-ids are changed?  I
> would have to re-index the collection when adding new documents.
>
> Best regards
>
> Cerstin
> --
> Dr. phil. Cerstin Mahlow
>
> Universität Basel
> Deutsches Seminar
> Nadelberg 4
> 4051 Basel
> Schweiz
>
> Tel:  +41 61 267 07 65
> Fax: +41 61 267 34 40
> Mail: [email protected]
> Web: http://www.oldphras.net
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
> _______________________________________________
> BaseX-Talk mailing list
> [email protected]
> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
_______________________________________________
BaseX-Talk mailing list
[email protected]
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

Reply via email to