2007-12-09 Alex Roitman <shura@gramps-project.org>

* data/grampsxml.rng: Add namemaps.
	* data/grampsxml.dtd: Add namemaps.



svn: r9472
This commit is contained in:
Alex Roitman 2007-12-09 20:11:05 +00:00
parent 00ec7a7ddb
commit 037893413b
3 changed files with 30 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-12-09 Alex Roitman <shura@gramps-project.org>
* data/grampsxml.rng: Add namemaps.
* data/grampsxml.dtd: Add namemaps.
2007-12-07 Benny Malengier <benny.malengier@gramps-project.org> 2007-12-07 Benny Malengier <benny.malengier@gramps-project.org>
Add support for name grouping import/export Add support for name grouping import/export
* src/GrampsDb/_GrampsDbBase.py: obtain grouping keys * src/GrampsDb/_GrampsDbBase.py: obtain grouping keys

View File

@ -52,7 +52,8 @@ DATABASE
--> -->
<!ELEMENT database (header, name-formats?, events?, people?, families?, <!ELEMENT database (header, name-formats?, events?, people?, families?,
sources?, places?, objects?, repositories?, bookmark?)> sources?, places?, objects?, repositories?,
bookmarks?, namemaps?)>
<!ATTLIST database xmlns CDATA #FIXED "http://gramps-project.org/xml/1.1.4/"> <!ATTLIST database xmlns CDATA #FIXED "http://gramps-project.org/xml/1.1.4/">
<!-- ************************************************************ <!-- ************************************************************
@ -315,6 +316,17 @@ BOOKMARKS
hlink IDREF #REQUIRED hlink IDREF #REQUIRED
> >
<!-- ************************************************************
NAME MAPS
-->
<!ELEMENT namemaps (map)*>
<!ELEMENT map EMPTY>
<!ATTLIST map
type CDATA #REUIRED
key CDATA #REQUIRED
value CDATA #REQUIRED
>
<!-- ************************************************************ <!-- ************************************************************
NAME FORMATS NAME FORMATS
--> -->

View File

@ -104,6 +104,11 @@
</element></zeroOrMore> </element></zeroOrMore>
</element></optional> </element></optional>
<optional><element name="namemaps">
<zeroOrMore><element name="map">
<ref name="map-content"/>
</element></zeroOrMore>
</element></optional>
</element></start> </element></start>
<define name="researcher-content"> <define name="researcher-content">
@ -451,6 +456,14 @@
<attribute name="hlink"><data type="IDREF"/></attribute> <attribute name="hlink"><data type="IDREF"/></attribute>
</define> </define>
<define name="map-content">
<attribute name="type"><choice>
<value>group_as</value>
</choice></attribute>
<attribute name="key"><text/></attribute>
<attribute name="value"><text/></attribute>
</define>
<define name="format-content"> <define name="format-content">
<attribute name="number"><text/></attribute> <attribute name="number"><text/></attribute>
<attribute name="name"><text/></attribute> <attribute name="name"><text/></attribute>