From: Michiel N. <m.d...@he...> - 2010-08-01 20:58:08
|
Hi Stein, As you notice, both ID and handle are needed. The handle is the primary key that ties everything together in the database. It is what I would call part of the pluming, invisible to the user, but without it Gramps would fall apart. The ID is primarily for binding Gramps objects (persons/events/places, etc.) to external applications. There could be other programs managing information that relates to data you store in Gramps. To tie that to Gramps you use the Gramps IDs. That is also the reason why a user can set his own ID (as long it is unique), so that he can adjust it to whatever other software he uses. So in the example of the eventref, hlink should be an handle, not an ID. Michiel Stein Erik Berget wrote: > On Sun, 01 Aug 2010 18:19:41 +0200, jerome <rom...@ya...> wrote: > >>> How do I refer to the different evens/persons and so on? >> Maybe <eventref hlink="Person's ID"> ? >> >> <!ELEMENT eventref (attribute*,noteref*)> >> <!ATTLIST eventref >> hlink IDREF #REQUIRED >> priv (0|1) #IMPLIED >> role CDATA #IMPLIED > > I've tried that but it don't work > > <!ATTLIST person > id CDATA #REQUIRED > handle ID #REQUIRED > priv (0|1) #IMPLIED > marker CDATA #IMPLIED > change CDATA #REQUIRED > > explains why. As id is not a IDREF attribute, but only a CDATA one. :-( > The result is that the persons and events are both imported, but the link > between them don't exist. |