[Zope] ID's in one XML Document nt unique?

Martijn Faassen m.faassen@vet.uu.nl
Tue, 07 Sep 1999 15:32:44 +0200


Amos Latteier wrote:
> 
> At 04:51 PM 9/5/99 -0500, Stephan Richter wrote:
> >since you are the creator of XML documents, I wanted to ask you whether the
> >node IDs in the XML document tree are not necessarily unique. I have a XML
> >document  and I try to create an index. I planned of using the node IDs from
> >the tree as my identifiers. But I noticed that I have an ID twice. Yes, it is
> >at a different level of the tree.
> >
> >Is this a bug? Is there another way to accomplish my task?
> 
> This is not a bug. It is possible to have a URL like this
> 
>   e5/e5/e17

Hm, I'm confused. Doesn't the _make_id() function in Node.py make sure
each node in an XML Document has an unique ID? How do duplicate ids
arise this way? Also, why allow duplicate ids at all?

Regards,

Martijn