svn-gvsig-desktop / branches / v10 / extensions / extGPE-gvSIG / testdata / schools.xsd @ 18292
History | View | Annotate | Download (2.93 KB)
1 |
<?xml version="1.0" encoding="UTF-8"?> |
---|---|
2 |
<schema targetNamespace="http://www.opengis.net/examples" |
3 |
xmlns:ex="http://www.opengis.net/examples" |
4 |
xmlns:xlink="http://www.w3.org/1999/xlink" |
5 |
xmlns:gml="http://www.opengis.net/gml" |
6 |
xmlns="http://www.w3.org/2001/XMLSchema" |
7 |
elementFormDefault="qualified" |
8 |
version="2.1.2"> |
9 |
<annotation> |
10 |
<appinfo>schools.xsd v2.1.2 2002-07</appinfo> |
11 |
<documentation xml:lang="en"> |
12 |
GML schema for Schools example |
13 |
</documentation> |
14 |
</annotation> |
15 |
<!-- import constructs from the GML Feature and Geometry schemas --> |
16 |
<import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd" /> |
17 |
<!-- ============================================================== |
18 |
global element declarations |
19 |
=================================================================== --> |
20 |
<element name="State" type="ex:StateType" |
21 |
substitutionGroup="gml:_FeatureCollection"/> |
22 |
<element name="SchoolDistrict" type="ex:SchoolDistrictType" |
23 |
substitutionGroup="gml:_FeatureCollection"/> |
24 |
<element name="schoolMember" type="gml:FeatureAssociationType" |
25 |
substitutionGroup="gml:featureMember"/> |
26 |
<element name="School" type="ex:SchoolType" |
27 |
substitutionGroup="gml:_Feature"/> |
28 |
<element name="College" type="ex:CollegeType" |
29 |
substitutionGroup="gml:_Feature"/> |
30 |
<element name="address" type="string"/> |
31 |
<!-- ============================================================== |
32 |
type definitions for state educational institutions |
33 |
=================================================================== --> |
34 |
<complexType name="StateType"> |
35 |
<complexContent> |
36 |
<extension base="gml:AbstractFeatureCollectionType"> |
37 |
<sequence> |
38 |
<element name="studentPopulation" type="integer"/> |
39 |
</sequence> |
40 |
</extension> |
41 |
</complexContent> |
42 |
</complexType> |
43 |
<complexType name="SchoolDistrictType"> |
44 |
<complexContent> |
45 |
<extension base="gml:AbstractFeatureCollectionType"> |
46 |
<sequence> |
47 |
<element ref="gml:extentOf"/> |
48 |
</sequence> |
49 |
</extension> |
50 |
</complexContent> |
51 |
</complexType> |
52 |
<complexType name="SchoolType"> |
53 |
<complexContent> |
54 |
<extension base="gml:AbstractFeatureType"> |
55 |
<sequence> |
56 |
<element ref="ex:address"/> |
57 |
<element ref="gml:location"/> |
58 |
</sequence> |
59 |
</extension> |
60 |
</complexContent> |
61 |
</complexType> |
62 |
<complexType name="CollegeType"> |
63 |
<complexContent> |
64 |
<extension base="gml:AbstractFeatureType"> |
65 |
<sequence> |
66 |
<element ref="ex:address"/> |
67 |
<element ref="gml:pointProperty"/> |
68 |
</sequence> |
69 |
</extension> |
70 |
</complexContent> |
71 |
</complexType> |
72 |
</schema> |