8683: Cover custom types on DTD and RNG files

Now, xmllint passes '--dtdvalid' and '--relaxng'
This commit is contained in:
Jérôme Rapinat 2015-07-05 11:12:04 +02:00
parent 84ee76afa7
commit 449a0d73a3
2 changed files with 9 additions and 33 deletions

View File

@ -122,6 +122,7 @@ GENDER has values of M, F, or U.
<!ELEMENT name (first?, call?, surname*, suffix?, title?, nick?, familynick?, group?, <!ELEMENT name (first?, call?, surname*, suffix?, title?, nick?, familynick?, group?,
(daterange|datespan|dateval|datestr)?, noteref*, citationref*)> (daterange|datespan|dateval|datestr)?, noteref*, citationref*)>
<!-- (Unknown|Also Know As|Birth Name|Married Name|Other Name) -->
<!ATTLIST name <!ATTLIST name
alt (0|1) #IMPLIED alt (0|1) #IMPLIED
type CDATA #IMPLIED type CDATA #IMPLIED
@ -138,6 +139,8 @@ GENDER has values of M, F, or U.
<!ELEMENT familynick (#PCDATA)> <!ELEMENT familynick (#PCDATA)>
<!ELEMENT group (#PCDATA)> <!ELEMENT group (#PCDATA)>
<!ELEMENT surname (#PCDATA)> <!ELEMENT surname (#PCDATA)>
<!-- (Unknown|Inherited|Given|Taken|Patronymic|Matronymic|Feudal|
Pseudonym|Patrilineal|Matrilineal|Occupation|Location) -->
<!ATTLIST surname <!ATTLIST surname
prefix CDATA #IMPLIED prefix CDATA #IMPLIED
prim (1|0) #IMPLIED prim (1|0) #IMPLIED
@ -196,12 +199,13 @@ FAMILY
<!ELEMENT mother EMPTY> <!ELEMENT mother EMPTY>
<!ATTLIST mother hlink IDREF #REQUIRED> <!ATTLIST mother hlink IDREF #REQUIRED>
<!-- (None|Birth|Adopted|Stepchild|Sponsored|Foster|Other|Unknown) -->
<!ELEMENT childref (citationref*,noteref*)> <!ELEMENT childref (citationref*,noteref*)>
<!ATTLIST childref <!ATTLIST childref
hlink IDREF #REQUIRED hlink IDREF #REQUIRED
priv (0|1) #IMPLIED priv (0|1) #IMPLIED
mrel (None|Birth|Adopted|Stepchild|Sponsored|Foster|Other|Unknown) #IMPLIED mrel CDATA #IMPLIED
frel (None|Birth|Adopted|Stepchild|Sponsored|Foster|Other|Unknown) #IMPLIED frel CDATA #IMPLIED
> >
<!ELEMENT type (#PCDATA)> <!ELEMENT type (#PCDATA)>

View File

@ -210,16 +210,7 @@
</define> </define>
<define name="child-rel"> <define name="child-rel">
<choice> <text/>
<value>Birth</value>
<value>Adopted</value>
<value>Stepchild</value>
<value>Sponsored</value>
<value>Foster</value>
<value>None</value>
<value>Other</value>
<value>Unknown</value>
</choice>
</define> </define>
<define name="name-content"> <define name="name-content">
@ -230,13 +221,7 @@
<optional><attribute name="priv"> <optional><attribute name="priv">
<ref name="priv-content"/> <ref name="priv-content"/>
</attribute></optional> </attribute></optional>
<optional><attribute name="type"><choice> <optional><attribute name="type"><text/></attribute></optional>
<value>Unknown</value>
<value>Also Known As</value>
<value>Birth Name</value>
<value>Married Name</value>
<value>Other Name</value>
</choice></attribute></optional>
<optional><attribute name="sort"><text/></attribute></optional> <optional><attribute name="sort"><text/></attribute></optional>
<optional><attribute name="display"><text/></attribute></optional> <optional><attribute name="display"><text/></attribute></optional>
<optional><element name="first"><text/></element></optional> <optional><element name="first"><text/></element></optional>
@ -265,20 +250,7 @@
<value>1</value> <value>1</value>
<value>0</value> <value>0</value>
</choice></attribute></optional> </choice></attribute></optional>
<optional><attribute name="derivation"><choice> <optional><attribute name="derivation"><text/></attribute></optional>
<value>Unknown</value>
<value>Inherited</value>
<value>Given</value>
<value>Taken</value>
<value>Patronymic</value>
<value>Matronymic</value>
<value>Feudal</value>
<value>Pseudonym</value>
<value>Patrilineal</value>
<value>Matrilineal</value>
<value>Occupation</value>
<value>Location</value>
</choice></attribute></optional>
<optional><attribute name="connector"><text/></attribute></optional> <optional><attribute name="connector"><text/></attribute></optional>
</define> </define>