2005-12-06 12:08:09 +05:30
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
# Gramps - a GTK+/GNOME based genealogy program
|
|
|
|
#
|
|
|
|
# Copyright (C) 2001 Graham J. Williams
|
2006-01-28 06:35:04 +05:30
|
|
|
# Copyright (C) 2000-2006 Donald N. Allingham
|
2005-12-06 12:08:09 +05:30
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!--
|
2006-08-16 02:29:12 +05:30
|
|
|
This is the Document Type Definition file for v1.1.2
|
2005-12-06 12:08:09 +05:30
|
|
|
of the GRAMPS XML genealogy data format.
|
|
|
|
Please use the following formal public identifier to identify it:
|
|
|
|
|
2006-08-16 02:29:12 +05:30
|
|
|
"-//GRAMPS//DTD GRAMPS XML V1.1.2//EN"
|
2005-12-06 12:08:09 +05:30
|
|
|
|
|
|
|
For example:
|
2006-08-16 02:29:12 +05:30
|
|
|
<!DOCTYPE database PUBLIC "-//GRAMPS//DTD GRAMPS XML V1.1.2//EN"
|
|
|
|
"http://gramps-project.org/xml/1.1.2/grampsxml.dtd"
|
2005-12-06 12:08:09 +05:30
|
|
|
[...]>
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
DATABASE
|
|
|
|
Defines an XML document which is a <database> consisting of a
|
|
|
|
|
|
|
|
header Information about the "owner" of the database
|
|
|
|
people
|
|
|
|
families
|
|
|
|
sources
|
|
|
|
places
|
|
|
|
objects
|
2006-05-19 03:47:51 +05:30
|
|
|
repositories
|
2005-12-06 12:08:09 +05:30
|
|
|
bookmarks
|
|
|
|
-->
|
|
|
|
|
2006-07-28 01:41:56 +05:30
|
|
|
<!ELEMENT database (header, name-formats?, events?, people?, families?,
|
|
|
|
sources?, places?, objects?, repositories?, bookmark?)>
|
2006-08-16 02:29:12 +05:30
|
|
|
<!ATTLIST database xmlns CDATA #FIXED "http://gramps-project.org/xml/1.1.2/">
|
2005-12-06 12:08:09 +05:30
|
|
|
|
|
|
|
<!-- ************************************************************
|
|
|
|
HEADER
|
|
|
|
|
|
|
|
A <header> consists of <created> (information about this
|
|
|
|
genealogical database) and <researcher> (information about the
|
|
|
|
person who created this genealogical database)
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!ELEMENT header (created, researcher?)>
|
|
|
|
|
|
|
|
<!ELEMENT created EMPTY>
|
|
|
|
<!ATTLIST created
|
|
|
|
date CDATA #REQUIRED
|
|
|
|
version CDATA #REQUIRED
|
|
|
|
>
|
|
|
|
|
|
|
|
<!ELEMENT researcher (resname, resaddr?, rescity?, resstate?,
|
|
|
|
rescountry?, respostal?, resphone?, resemail?)>
|
|
|
|
<!ELEMENT resname (#PCDATA)>
|
|
|
|
<!ELEMENT resaddr (#PCDATA)>
|
|
|
|
<!ELEMENT rescity (#PCDATA)>
|
|
|
|
<!ELEMENT resstate (#PCDATA)>
|
|
|
|
<!ELEMENT rescountry (#PCDATA)>
|
|
|
|
<!ELEMENT respostal (#PCDATA)>
|
|
|
|
<!ELEMENT resphone (#PCDATA)>
|
|
|
|
<!ELEMENT resemail (#PCDATA)>
|
|
|
|
|
|
|
|
<!-- ************************************************************
|
|
|
|
PEOPLE
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!ELEMENT people (person)*>
|
|
|
|
<!ATTLIST people
|
|
|
|
default CDATA #IMPLIED
|
|
|
|
home IDREF #IMPLIED
|
|
|
|
>
|
|
|
|
|
2005-12-24 03:02:55 +05:30
|
|
|
<!ELEMENT person (gender, name*, nick?, eventref*, lds_ord*,
|
2005-12-06 12:08:09 +05:30
|
|
|
objref*, address*, attribute*, url*,
|
2006-04-19 10:44:37 +05:30
|
|
|
childof*, parentin*, personref*, note?, sourceref*)>
|
2005-12-06 12:08:09 +05:30
|
|
|
<!ATTLIST person
|
|
|
|
id CDATA #REQUIRED
|
|
|
|
handle ID #REQUIRED
|
2005-12-24 03:02:55 +05:30
|
|
|
priv (0|1) #IMPLIED
|
2006-01-28 06:13:27 +05:30
|
|
|
marker CDATA #IMPLIED
|
|
|
|
change CDATA #REQUIRED
|
2005-12-06 12:08:09 +05:30
|
|
|
>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
GENDER has values of M, F, or U.
|
|
|
|
-->
|
|
|
|
<!ELEMENT gender (#PCDATA)>
|
|
|
|
|
|
|
|
<!ELEMENT name (first?,last?,suffix?,patronymic?,title?,
|
|
|
|
(daterange|dateval|datestr)?,note?,sourceref*)>
|
|
|
|
<!ATTLIST name
|
|
|
|
alt (0|1) #IMPLIED
|
|
|
|
type CDATA #IMPLIED
|
|
|
|
priv (0|1) #IMPLIED
|
|
|
|
sort CDATA #IMPLIED
|
|
|
|
display CDATA #IMPLIED
|
|
|
|
>
|
|
|
|
|
|
|
|
<!ELEMENT first (#PCDATA)>
|
|
|
|
<!ELEMENT last (#PCDATA)>
|
|
|
|
<!ATTLIST last
|
|
|
|
prefix CDATA #IMPLIED
|
|
|
|
group CDATA #IMPLIED
|
|
|
|
>
|
|
|
|
<!ELEMENT suffix (#PCDATA)>
|
|
|
|
<!ELEMENT patronymic (#PCDATA)>
|
|
|
|
<!ELEMENT title (#PCDATA)>
|
|
|
|
|
|
|
|
<!ELEMENT nick (#PCDATA)>
|
|
|
|
|
|
|
|
<!ELEMENT childof EMPTY>
|
2006-04-19 10:44:37 +05:30
|
|
|
<!ATTLIST childof hlink IDREF #REQUIRED
|
2005-12-06 12:08:09 +05:30
|
|
|
>
|
|
|
|
|
|
|
|
<!ELEMENT parentin EMPTY>
|
|
|
|
<!ATTLIST parentin hlink IDREF #REQUIRED>
|
|
|
|
|
2006-04-19 10:44:37 +05:30
|
|
|
<!ELEMENT personref (sourceref*,note?)>
|
|
|
|
<!ATTLIST personref
|
|
|
|
hlink IDREF #REQUIRED
|
|
|
|
priv (0|1) #IMPLIED
|
|
|
|
rel CDATA #REQUIRED
|
|
|
|
>
|
|
|
|
|
2005-12-06 12:08:09 +05:30
|
|
|
<!ELEMENT address ((daterange|dateval|datestr)?,street?,city?,state?,
|
|
|
|
country?,postal?,phone?,note?,sourceref?)>
|
|
|
|
<!ATTLIST address priv (0|1) #IMPLIED>
|
|
|
|
|
|
|
|
<!ELEMENT street (#PCDATA)>
|
|
|
|
<!ELEMENT city (#PCDATA)>
|
|
|
|
<!ELEMENT country (#PCDATA)>
|
|
|
|
<!ELEMENT postal (#PCDATA)>
|
|
|
|
<!ELEMENT state (#PCDATA)>
|
|
|
|
<!ELEMENT phone (#PCDATA)>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ************************************************************
|
|
|
|
FAMILY
|
|
|
|
An element to record information about a family.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!ELEMENT families (family)*>
|
|
|
|
|
2006-01-28 06:13:27 +05:30
|
|
|
<!ELEMENT family (rel?,father?,mother?,eventref*,lds_ord*,
|
2006-04-19 10:44:37 +05:30
|
|
|
objref*,childref*,attribute*,note?,sourceref*)>
|
2005-12-06 12:08:09 +05:30
|
|
|
<!ATTLIST family
|
2006-01-28 06:13:27 +05:30
|
|
|
id CDATA #REQUIRED
|
|
|
|
handle ID #REQUIRED
|
|
|
|
priv (0|1) #IMPLIED
|
|
|
|
marker CDATA #IMPLIED
|
|
|
|
change CDATA #REQUIRED
|
2005-12-06 12:08:09 +05:30
|
|
|
>
|
|
|
|
|
|
|
|
<!ELEMENT father EMPTY>
|
|
|
|
<!ATTLIST father hlink IDREF #REQUIRED>
|
|
|
|
|
|
|
|
<!ELEMENT mother EMPTY>
|
|
|
|
<!ATTLIST mother hlink IDREF #REQUIRED>
|
|
|
|
|
2006-04-19 10:44:37 +05:30
|
|
|
<!ELEMENT childref (sourceref*,note?)>
|
|
|
|
<!ATTLIST childref
|
|
|
|
hlink IDREF #REQUIRED
|
|
|
|
priv (0|1) #IMPLIED
|
|
|
|
mrel (None|Birth|Adopted|Stepchild|Sponsored|Foster|Other|Unknown) #IMPLIED
|
|
|
|
frel (None|Birth|Adopted|Stepchild|Sponsored|Foster|Other|Unknown) #IMPLIED
|
|
|
|
>
|
2005-12-06 12:08:09 +05:30
|
|
|
|
2006-01-28 06:13:27 +05:30
|
|
|
<!ELEMENT type (#PCDATA)>
|
|
|
|
|
|
|
|
<!ELEMENT rel EMPTY>
|
|
|
|
<!ATTLIST rel type CDATA #REQUIRED>
|
|
|
|
|
2005-12-24 03:02:55 +05:30
|
|
|
<!-- ************************************************************
|
|
|
|
EVENT
|
|
|
|
-->
|
2006-01-28 06:13:27 +05:30
|
|
|
<!ELEMENT events (event)*>
|
2005-12-24 03:02:55 +05:30
|
|
|
|
2006-01-28 06:13:27 +05:30
|
|
|
<!ELEMENT event (type?,(daterange|dateval|datestr)?,place?,cause?,
|
2006-08-16 02:29:12 +05:30
|
|
|
description?,attribute*,note?,sourceref*,objref*)>
|
2005-12-24 03:02:55 +05:30
|
|
|
<!ATTLIST event
|
2006-01-28 06:13:27 +05:30
|
|
|
id CDATA #REQUIRED
|
|
|
|
handle ID #REQUIRED
|
|
|
|
priv (0|1) #IMPLIED
|
|
|
|
marker CDATA #IMPLIED
|
|
|
|
change CDATA #REQUIRED
|
2005-12-24 03:02:55 +05:30
|
|
|
>
|
|
|
|
|
2005-12-06 12:08:09 +05:30
|
|
|
<!-- ************************************************************
|
|
|
|
SOURCES
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!ELEMENT sources (source)*>
|
|
|
|
<!ELEMENT source (stitle?,sauthor?,spubinfo?,sabbrev?,
|
2006-01-28 06:13:27 +05:30
|
|
|
note?,objref*,data_item*,reporef*)>
|
2005-12-06 12:08:09 +05:30
|
|
|
<!ATTLIST source
|
2006-01-28 06:13:27 +05:30
|
|
|
id CDATA #REQUIRED
|
|
|
|
handle ID #REQUIRED
|
|
|
|
priv (0|1) #IMPLIED
|
|
|
|
marker CDATA #IMPLIED
|
|
|
|
change CDATA #REQUIRED
|
2005-12-06 12:08:09 +05:30
|
|
|
>
|
|
|
|
<!ELEMENT stitle (#PCDATA)>
|
|
|
|
<!ELEMENT sauthor (#PCDATA)>
|
|
|
|
<!ELEMENT spubinfo (#PCDATA)>
|
|
|
|
<!ELEMENT sabbrev (#PCDATA)>
|
|
|
|
|
|
|
|
<!-- ************************************************************
|
|
|
|
PLACES
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!ELEMENT places (placeobj)*>
|
|
|
|
|
2006-01-28 06:13:27 +05:30
|
|
|
<!ELEMENT placeobj (ptitle?,coord?,location*,objref*,url*,note?,sourceref*)>
|
2005-12-06 12:08:09 +05:30
|
|
|
<!ATTLIST placeobj
|
2006-01-28 06:13:27 +05:30
|
|
|
id CDATA #REQUIRED
|
|
|
|
handle ID #REQUIRED
|
|
|
|
priv (0|1) #IMPLIED
|
|
|
|
marker CDATA #IMPLIED
|
|
|
|
change CDATA #REQUIRED
|
2005-12-06 12:08:09 +05:30
|
|
|
>
|
|
|
|
|
2006-01-28 06:13:27 +05:30
|
|
|
<!ELEMENT ptitle (#PCDATA)>
|
|
|
|
|
2005-12-06 12:08:09 +05:30
|
|
|
<!ELEMENT coord EMPTY>
|
|
|
|
<!ATTLIST coord
|
|
|
|
long CDATA #REQUIRED
|
|
|
|
lat CDATA #REQUIRED
|
|
|
|
>
|
|
|
|
|
|
|
|
<!ELEMENT location EMPTY>
|
|
|
|
<!ATTLIST location
|
|
|
|
city CDATA #IMPLIED
|
|
|
|
parish CDATA #IMPLIED
|
|
|
|
county CDATA #IMPLIED
|
|
|
|
state CDATA #IMPLIED
|
|
|
|
country CDATA #IMPLIED
|
|
|
|
postal CDATA #IMPLIED
|
|
|
|
phone CDATA #IMPLIED
|
|
|
|
>
|
|
|
|
|
|
|
|
<!-- ************************************************************
|
|
|
|
OBJECTS
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!ELEMENT objects (object)*>
|
|
|
|
|
2006-01-28 06:13:27 +05:30
|
|
|
<!ELEMENT object (file,attribute*,note?,(daterange|dateval|datestr)?,
|
|
|
|
sourceref*)>
|
2005-12-06 12:08:09 +05:30
|
|
|
<!ATTLIST object
|
2006-01-28 06:13:27 +05:30
|
|
|
id CDATA #REQUIRED
|
|
|
|
handle ID #REQUIRED
|
|
|
|
priv (0|1) #IMPLIED
|
|
|
|
marker CDATA #IMPLIED
|
|
|
|
change CDATA #REQUIRED
|
|
|
|
>
|
|
|
|
|
|
|
|
<!ELEMENT file EMPTY>
|
|
|
|
<!ATTLIST file
|
2005-12-06 12:08:09 +05:30
|
|
|
src CDATA #REQUIRED
|
|
|
|
mime CDATA #REQUIRED
|
|
|
|
description CDATA #REQUIRED
|
|
|
|
>
|
|
|
|
|
2005-12-24 03:02:55 +05:30
|
|
|
<!-- ************************************************************
|
|
|
|
REPOSITORIES
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!ELEMENT repositories (repository)*>
|
|
|
|
|
2006-01-28 06:13:27 +05:30
|
|
|
<!ELEMENT repository (rname,type,address*,url*,note?)>
|
2005-12-24 03:02:55 +05:30
|
|
|
<!ATTLIST repository
|
2006-01-28 06:13:27 +05:30
|
|
|
id CDATA #REQUIRED
|
|
|
|
handle ID #REQUIRED
|
|
|
|
priv (0|1) #IMPLIED
|
|
|
|
marker CDATA #IMPLIED
|
|
|
|
change CDATA #REQUIRED
|
2005-12-24 03:02:55 +05:30
|
|
|
>
|
|
|
|
|
2006-01-28 06:13:27 +05:30
|
|
|
<!ELEMENT rname (#PCDATA)>
|
|
|
|
|
2005-12-06 12:08:09 +05:30
|
|
|
|
|
|
|
<!-- ************************************************************
|
|
|
|
BOOKMARKS
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!ELEMENT bookmarks (bookmark)*>
|
|
|
|
<!ELEMENT bookmark EMPTY>
|
2006-05-19 03:47:51 +05:30
|
|
|
<!ATTLIST bookmark
|
|
|
|
target (person|family|event|source|place|media|repository) #REQUIRED
|
|
|
|
hlink IDREF #REQUIRED
|
|
|
|
>
|
2005-12-06 12:08:09 +05:30
|
|
|
|
2006-07-27 23:14:02 +05:30
|
|
|
<!-- ************************************************************
|
|
|
|
NAME FORMATS
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!ELEMENT name-formats (format)*>
|
|
|
|
<!ELEMENT format EMPTY>
|
|
|
|
<!ATTLIST format
|
|
|
|
number CDATA #REQUIRED
|
|
|
|
name CDATA #REQUIRED
|
|
|
|
fmt_str CDATA #REQUIRED
|
|
|
|
active (0|1) #IMPLIED
|
|
|
|
>
|
|
|
|
|
2005-12-06 12:08:09 +05:30
|
|
|
<!-- ************************************************************
|
|
|
|
SHARED ELEMENTS
|
|
|
|
-->
|
|
|
|
<!ELEMENT daterange EMPTY>
|
|
|
|
<!ATTLIST daterange
|
|
|
|
start CDATA #REQUIRED
|
|
|
|
stop CDATA #REQUIRED
|
|
|
|
quality (estimated|calculated) #IMPLIED
|
|
|
|
cformat CDATA #IMPLIED
|
|
|
|
>
|
|
|
|
|
|
|
|
<!ELEMENT dateval EMPTY>
|
|
|
|
<!ATTLIST dateval
|
|
|
|
val CDATA #REQUIRED
|
|
|
|
type (before|after|about) #IMPLIED
|
|
|
|
quality (estimated|calculated) #IMPLIED
|
|
|
|
cformat CDATA #IMPLIED
|
|
|
|
>
|
|
|
|
|
|
|
|
<!ELEMENT datestr EMPTY>
|
|
|
|
<!ATTLIST datestr val CDATA #REQUIRED>
|
|
|
|
|
|
|
|
<!ELEMENT note (#PCDATA)>
|
|
|
|
<!ATTLIST note format (0|1) #IMPLIED>
|
|
|
|
|
|
|
|
<!ELEMENT sourceref (spage?,scomments?,stext?,(daterange|dateval|datestr)?)>
|
|
|
|
<!ATTLIST sourceref
|
|
|
|
hlink IDREF #REQUIRED
|
|
|
|
conf CDATA #IMPLIED
|
|
|
|
>
|
|
|
|
|
2006-08-16 02:29:12 +05:30
|
|
|
<!ELEMENT eventref (attribute*,note?)>
|
2005-12-24 03:02:55 +05:30
|
|
|
<!ATTLIST eventref
|
|
|
|
hlink IDREF #REQUIRED
|
|
|
|
priv (0|1) #IMPLIED
|
|
|
|
role CDATA #IMPLIED
|
|
|
|
>
|
|
|
|
|
|
|
|
<!ELEMENT reporef (note?)>
|
|
|
|
<!ATTLIST reporef
|
|
|
|
hlink IDREF #REQUIRED
|
|
|
|
callno CDATA #IMPLIED
|
|
|
|
medium CDATA #IMPLIED
|
|
|
|
>
|
|
|
|
|
|
|
|
<!ELEMENT marker EMPTY>
|
|
|
|
<!ATTLIST marker
|
|
|
|
type CDATA #REQUIRED
|
|
|
|
>
|
|
|
|
|
2005-12-06 12:08:09 +05:30
|
|
|
<!ELEMENT spage (#PCDATA)>
|
|
|
|
<!ELEMENT scomments (#PCDATA)>
|
|
|
|
<!ELEMENT sdate (#PCDATA)>
|
|
|
|
<!ELEMENT stext (#PCDATA)>
|
|
|
|
|
|
|
|
<!ELEMENT attribute (sourceref*,note?)>
|
|
|
|
<!ATTLIST attribute
|
|
|
|
priv (0|1) #IMPLIED
|
|
|
|
type CDATA #REQUIRED
|
|
|
|
value CDATA #REQUIRED
|
|
|
|
>
|
|
|
|
|
|
|
|
<!ELEMENT comment (#PCDATA)>
|
|
|
|
|
|
|
|
<!ELEMENT place EMPTY>
|
|
|
|
<!ATTLIST place hlink IDREF #REQUIRED>
|
|
|
|
|
|
|
|
<!ELEMENT cause (#PCDATA)>
|
|
|
|
<!ELEMENT description (#PCDATA)>
|
|
|
|
|
|
|
|
<!ELEMENT url EMPTY>
|
|
|
|
<!ATTLIST url
|
|
|
|
priv (0|1) #IMPLIED
|
2005-12-24 03:02:55 +05:30
|
|
|
type CDATA #IMPLIED
|
2005-12-06 12:08:09 +05:30
|
|
|
href CDATA #REQUIRED
|
|
|
|
description CDATA #IMPLIED
|
|
|
|
>
|
|
|
|
|
|
|
|
<!ELEMENT objref (attribute*,sourceref*,note?)>
|
|
|
|
<!ATTLIST objref
|
|
|
|
hlink IDREF #REQUIRED
|
|
|
|
priv (0|1) #IMPLIED
|
|
|
|
>
|
|
|
|
|
|
|
|
<!ELEMENT data_item EMPTY>
|
|
|
|
<!ATTLIST data_item
|
|
|
|
key CDATA #REQUIRED
|
|
|
|
value CDATA #REQUIRED
|
|
|
|
>
|
|
|
|
|
|
|
|
<!ELEMENT lds_ord ((daterange|dateval|datestr)?,temple?,place?,status?,
|
|
|
|
sealed_to?,note?,sourceref*)>
|
|
|
|
<!ATTLIST lds_ord
|
|
|
|
type CDATA #REQUIRED
|
|
|
|
>
|
|
|
|
|
|
|
|
<!ELEMENT temple EMPTY>
|
|
|
|
<!ATTLIST temple
|
|
|
|
val CDATA #REQUIRED
|
|
|
|
>
|
|
|
|
|
|
|
|
<!ELEMENT status EMPTY>
|
|
|
|
<!ATTLIST status
|
|
|
|
val CDATA #REQUIRED
|
|
|
|
>
|
|
|
|
<!ELEMENT sealed_to EMPTY>
|
|
|
|
<!ATTLIST sealed_to
|
|
|
|
hlink IDREF #REQUIRED
|
|
|
|
>
|