5264: update location, researcher, address

svn: r18221
This commit is contained in:
Jérôme Rapinat 2011-09-30 06:15:41 +00:00
parent fe9463719a
commit 500a81004f
2 changed files with 34 additions and 30 deletions

View File

@ -58,9 +58,9 @@ DATABASE
tags tags
--> -->
<!ELEMENT database (header, name-formats?, tags?, events?, people?, families?, <!ELEMENT database (header, name-formats?, tags?, events?, people?,
sources?, places?, objects?, repositories?, notes?, families?, sources?, places?, objects?,
bookmarks?, namemaps?)> repositories?, notes?, bookmarks?, namemaps?)>
<!ATTLIST database xmlns CDATA #FIXED "http://gramps-project.org/xml/1.4.0/"> <!ATTLIST database xmlns CDATA #FIXED "http://gramps-project.org/xml/1.4.0/">
@ -80,10 +80,11 @@ HEADER
version CDATA #REQUIRED version CDATA #REQUIRED
> >
<!ELEMENT researcher (resname, resaddr?, rescity?, resstate?, <!ELEMENT researcher (resname?, resaddr?, reslocality?, rescity?, resstate?,
rescountry?, respostal?, resphone?, resemail?)> rescountry?, respostal?, resphone?, resemail?)>
<!ELEMENT resname (#PCDATA)> <!ELEMENT resname (#PCDATA)>
<!ELEMENT resaddr (#PCDATA)> <!ELEMENT resaddr (#PCDATA)>
<!ELEMENT reslocality (#PCDATA)>
<!ELEMENT rescity (#PCDATA)> <!ELEMENT rescity (#PCDATA)>
<!ELEMENT resstate (#PCDATA)> <!ELEMENT resstate (#PCDATA)>
<!ELEMENT rescountry (#PCDATA)> <!ELEMENT rescountry (#PCDATA)>
@ -157,18 +158,18 @@ GENDER has values of M, F, or U.
rel CDATA #REQUIRED rel CDATA #REQUIRED
> >
<!ELEMENT address ((daterange|datespan|dateval|datestr)?, street?, city?, <!ELEMENT address ((daterange|datespan|dateval|datestr)?, street?,
county?, state?, country?, postal?, phone?, noteref*, locality?, city?, county?, state?, country?, postal?,
sourceref*)> phone?, noteref*, sourceref*)>
<!ATTLIST address priv (0|1) #IMPLIED> <!ATTLIST address priv (0|1) #IMPLIED>
<!ELEMENT street (#PCDATA)> <!ELEMENT street (#PCDATA)>
<!ELEMENT locality (#PCDATA)> <!ELEMENT locality (#PCDATA)>
<!ELEMENT city (#PCDATA)> <!ELEMENT city (#PCDATA)>
<!ELEMENT county (#PCDATA)> <!ELEMENT county (#PCDATA)>
<!ELEMENT state (#PCDATA)>
<!ELEMENT country (#PCDATA)> <!ELEMENT country (#PCDATA)>
<!ELEMENT postal (#PCDATA)> <!ELEMENT postal (#PCDATA)>
<!ELEMENT state (#PCDATA)>
<!ELEMENT phone (#PCDATA)> <!ELEMENT phone (#PCDATA)>
@ -265,6 +266,7 @@ PLACES
<!ELEMENT location EMPTY> <!ELEMENT location EMPTY>
<!ATTLIST location <!ATTLIST location
street CDATA #IMPLIED street CDATA #IMPLIED
locality CDATA #IMPLIED
city CDATA #IMPLIED city CDATA #IMPLIED
parish CDATA #IMPLIED parish CDATA #IMPLIED
county CDATA #IMPLIED county CDATA #IMPLIED

View File

@ -133,6 +133,7 @@
<define name="researcher-content"> <define name="researcher-content">
<element name="resname"><text/></element> <element name="resname"><text/></element>
<optional><element name="resaddr"><text/></element></optional> <optional><element name="resaddr"><text/></element></optional>
<optional><element name="reslocality"><text/></element></optional>
<optional><element name="rescity"><text/></element></optional> <optional><element name="rescity"><text/></element></optional>
<optional><element name="resstate"><text/></element></optional> <optional><element name="resstate"><text/></element></optional>
<optional><element name="rescountry"><text/></element></optional> <optional><element name="rescountry"><text/></element></optional>
@ -282,6 +283,7 @@
</attribute></optional> </attribute></optional>
<optional><ref name="date-content"/></optional> <optional><ref name="date-content"/></optional>
<optional><element name="street"><text/></element></optional> <optional><element name="street"><text/></element></optional>
<optional><element name="locality"><text/></element></optional>
<optional><element name="city"><text/></element></optional> <optional><element name="city"><text/></element></optional>
<optional><element name="county"><text/></element></optional> <optional><element name="county"><text/></element></optional>
<optional><element name="state"><text/></element></optional> <optional><element name="state"><text/></element></optional>