2007-11-30 Alex Roitman <shura@gramps-project.org>

* data/grampsxml.dtd: Add region to objref.
	* data/grampsxml.rng: Add region to objref.



svn: r9436
This commit is contained in:
Alex Roitman 2007-12-01 05:06:07 +00:00
parent d1b65054a9
commit f92211cd7b
3 changed files with 24 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-11-30 Alex Roitman <shura@gramps-project.org>
* data/grampsxml.dtd: Add region to objref.
* data/grampsxml.rng: Add region to objref.
2007-11-30 Benny Malengier <benny.malengier@gramps-project.org> 2007-11-30 Benny Malengier <benny.malengier@gramps-project.org>
* src/GrampsCfg.py: rel media path entry box * src/GrampsCfg.py: rel media path entry box
* src/gen/db/base.py: methods for access * src/gen/db/base.py: methods for access

View File

@ -427,12 +427,20 @@ SHARED ELEMENTS
description CDATA #IMPLIED description CDATA #IMPLIED
> >
<!ELEMENT objref (attribute*,sourceref*,noteref*)> <!ELEMENT objref (region?,reattribute*,sourceref*,noteref*)>
<!ATTLIST objref <!ATTLIST objref
hlink IDREF #REQUIRED hlink IDREF #REQUIRED
priv (0|1) #IMPLIED priv (0|1) #IMPLIED
> >
<!ELEMENT region EMPTY>
<!ATTLIST region
corner1_x CDATA #REQUIRED
corner1_y CDATA #REQUIRED
corner2_x CDATA #REQUIRED
corner2_y CDATA #REQUIRED
>
<!ELEMENT data_item EMPTY> <!ELEMENT data_item EMPTY>
<!ATTLIST data_item <!ATTLIST data_item
key CDATA #REQUIRED key CDATA #REQUIRED

View File

@ -555,6 +555,9 @@
<optional><attribute name="priv"> <optional><attribute name="priv">
<ref name="priv-content"/> <ref name="priv-content"/>
</attribute></optional> </attribute></optional>
<optional><element name="region">
<ref name="region-content"/>
</element></optional>
<zeroOrMore><element name="attribute"> <zeroOrMore><element name="attribute">
<ref name="attribute-content"/> <ref name="attribute-content"/>
</element></zeroOrMore> </element></zeroOrMore>
@ -593,4 +596,12 @@
</element></zeroOrMore> </element></zeroOrMore>
</define> </define>
<define name="region-content">
<attribute name="corner1_x"><data type="integer"/></attribute>
<attribute name="corner1_y"><data type="integer"/></attribute>
<attribute name="corner2_x"><data type="integer"/></attribute>
<attribute name="corner2_y"><data type="integer"/></attribute>
<text/>
</define>
</grammar> </grammar>