Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[r17133]: stable / eXist-1.4.x / webapp / WEB-INF / entities / mondial.dtd Maximize Restore History

Download this file

mondial.dtd    159 lines (141 with data), 6.1 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!-- XML DTD "mondial.dtd":
(Wolfgang May, may@informatik.uni-freiburg.de, March 2000, revised April 2009)
a hierarchical DTD for the MONDIAL database,
containing e.g.,
- scalar reference attributes (city/capital)
- multivalued reference attributes (organization/member/country)
- cross-references in both directions (organization/member/country,
country/memberships)
- a "boolean"/flag attribute: city/is_country_cap
- reference attributes with more than one target class
(river/to, references rivers, lakes, and seas) -->
<!ELEMENT mondial (country*,continent*,organization*,
sea*,river*,lake*,island*,mountain*,desert*)>
<!ELEMENT country (name,population?,
population_growth?,infant_mortality?,
gdp_total?,gdp_agri?,gdp_ind?,gdp_serv?,inflation?,
(indep_date|dependent)?,government?,encompassed*,
ethnicgroups*,religions*,languages*,border*,
(province+|city+))>
<!ATTLIST country car_code ID #IMPLIED
area CDATA #IMPLIED
capital IDREF #IMPLIED
memberships IDREFS #IMPLIED>
<!ELEMENT name (#PCDATA)>
<!ELEMENT area (#PCDATA)>
<!ELEMENT population (#PCDATA)>
<!-- note that population is also a subelement of city -->
<!ATTLIST population year CDATA #IMPLIED>
<!ELEMENT population_growth (#PCDATA)>
<!ELEMENT infant_mortality (#PCDATA)>
<!ELEMENT gdp_total (#PCDATA)>
<!ELEMENT gdp_ind (#PCDATA)>
<!ELEMENT gdp_agri (#PCDATA)>
<!ELEMENT gdp_serv (#PCDATA)>
<!ELEMENT inflation (#PCDATA)>
<!ELEMENT indep_date (#PCDATA)>
<!ATTLIST indep_date from CDATA #IMPLIED>
<!-- usually idref to a country, but not always (e.g. "Ottoman Empire") -->
<!ELEMENT dependent EMPTY>
<!ATTLIST dependent country IDREF #REQUIRED>
<!ELEMENT government (#PCDATA)>
<!ELEMENT encompassed EMPTY>
<!ATTLIST encompassed continent IDREF #REQUIRED
percentage CDATA #REQUIRED>
<!ELEMENT ethnicgroups (#PCDATA)>
<!ATTLIST ethnicgroups percentage CDATA #REQUIRED>
<!ELEMENT religions (#PCDATA)>
<!ATTLIST religions percentage CDATA #REQUIRED>
<!ELEMENT languages (#PCDATA)>
<!ATTLIST languages percentage CDATA #REQUIRED>
<!ELEMENT border EMPTY>
<!ATTLIST border country IDREF #REQUIRED
length CDATA #REQUIRED>
<!ELEMENT province (name,area?,population+,city*)>
<!ATTLIST province id ID #REQUIRED
country IDREF #REQUIRED
capital IDREF #IMPLIED>
<!ELEMENT city (name,elevation?,longitude?,latitude?,population*,
located_at*,located_on*)>
<!ATTLIST city id ID #REQUIRED
is_country_cap CDATA #IMPLIED
is_state_cap CDATA #IMPLIED
country IDREF #REQUIRED
province IDREF #IMPLIED>
<!ELEMENT elevation (#PCDATA)>
<!ELEMENT longitude (#PCDATA)>
<!ELEMENT latitude (#PCDATA)>
<!ELEMENT located_at EMPTY>
<!ATTLIST located_at watertype (river|sea|lake) #REQUIRED
river IDREFS #IMPLIED
sea IDREFS #IMPLIED
lake IDREFS #IMPLIED>
<!ELEMENT located_on EMPTY>
<!ATTLIST located_on island IDREF #REQUIRED>
<!ELEMENT organization (name,abbrev,established?,members*)>
<!ATTLIST organization id ID #REQUIRED
headq IDREF #IMPLIED>
<!ELEMENT abbrev (#PCDATA)>
<!ELEMENT established (#PCDATA)>
<!ELEMENT members EMPTY>
<!ATTLIST members type CDATA #REQUIRED
country IDREFS #REQUIRED>
<!ELEMENT continent (name,area)>
<!ATTLIST continent id ID #REQUIRED>
<!-- just as a pattern that is never used -->
<!ELEMENT geo (name,islands?,mountains?,located*,to*,from?,
area?,length?,elevation?,depth?,longitude?,latitude?,
source?,estuary?)>
<!ATTLIST geo id ID #REQUIRED
country IDREFS #IMPLIED
type NMTOKEN #IMPLIED
sea IDREFS #IMPLIED
lake IDREFS #IMPLIED
island IDREF #IMPLIED
bordering IDREFS #IMPLIED>
<!ELEMENT source (mountains?,located*,from?,elevation?,longitude?,latitude?)>
<!ATTLIST source country IDREFS #REQUIRED>
<!ELEMENT estuary (located*,longitude?,latitude?)>
<!ATTLIST estuary country IDREFS #REQUIRED>
<!ELEMENT length (#PCDATA)>
<!ELEMENT depth (#PCDATA)>
<!ELEMENT through (#PCDATA)>
<!ATTLIST through lake IDREFS #REQUIRED>
<!ELEMENT river (name,located*,to*,through*,area?,length?,source?,estuary?)>
<!ATTLIST river id ID #REQUIRED
country IDREFS #REQUIRED>
<!ELEMENT from EMPTY>
<!ATTLIST from watertype (river|sea|lake) #REQUIRED
water IDREFS #REQUIRED>
<!ELEMENT to EMPTY>
<!ATTLIST to watertype (river|sea|lake) #REQUIRED
water IDREF #REQUIRED>
<!ELEMENT located EMPTY>
<!ATTLIST located country IDREF #REQUIRED
province IDREFS #IMPLIED>
<!ELEMENT lake (name,located*,to*,through?,area?,elevation?,depth?,longitude?,latitude?)>
<!ATTLIST lake id ID #REQUIRED
country IDREFS #REQUIRED
island IDREF #IMPLIED
type (salt|acid|artificial|caldera|crater|impact) #IMPLIED>
<!ELEMENT sea (name,located*,area?,depth?)>
<!ATTLIST sea id ID #REQUIRED
country IDREFS #REQUIRED
bordering IDREFS #IMPLIED>
<!ELEMENT desert (name,located*,area?,longitude?,latitude?)>
<!ATTLIST desert id ID #REQUIRED
country IDREFS #REQUIRED
type (sand|rocks|lime|ice) #IMPLIED>
<!ELEMENT island (name,islands?,located*,area?,elevation?,longitude?,latitude?)>
<!ATTLIST island id ID #REQUIRED
sea IDREFS #IMPLIED
lake IDREF #IMPLIED
country IDREFS #REQUIRED
type (volcanic|coral|atoll|lime) #IMPLIED>
<!ELEMENT islands (#PCDATA)>
<!ELEMENT mountain (name,mountains?,located*,elevation?,longitude?,latitude?)>
<!ATTLIST mountain id ID #REQUIRED
country IDREFS #REQUIRED
island IDREF #IMPLIED
type (volcanic|volcano|monolith|granite) #IMPLIED>
<!ELEMENT mountains (#PCDATA)>