1 |
9920
|
tao
|
<?xml version="1.0" encoding="utf-8"?>
|
2 |
|
|
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" blockDefault="#all">
|
3 |
|
|
<!--
|
4 |
|
|
======================================================================
|
5 |
|
|
FGDC Metadata XML Schema 1.0.0 20030801
|
6 |
|
|
|
7 |
|
|
This is the XML Schema for formal metadata, metadata conforming to
|
8 |
|
|
the Content Standards for Digital Geospatial Metadata of the Federal
|
9 |
|
|
Geographic Data Committee. This schema corresponds to the June,
|
10 |
|
|
1998 version of the standard, FGDC-STD-001-1998.
|
11 |
|
|
|
12 |
|
|
This file is the primary XML Schema and loads the definitions for
|
13 |
|
|
sections 1-10 of the standard from separate schema modules.
|
14 |
|
|
|
15 |
|
|
Element names:
|
16 |
|
|
Element names are a maximum of 8-characters long, to coincide
|
17 |
|
|
with the Reference Concrete Syntax.
|
18 |
|
|
|
19 |
|
|
Element ordering:
|
20 |
|
|
Generally the order of elements is now significant. XML makes
|
21 |
|
|
it difficult to write a DTD that allows elements to be in any
|
22 |
|
|
order. Although XML Schemas do not have this restriction, it
|
23 |
|
|
was decided to keep the significance of element order in order
|
24 |
|
|
not to break the DTD validity of XML-encoded metadata files.
|
25 |
|
|
|
26 |
|
|
Authors:
|
27 |
|
|
Richard E. Rathmann (PSGS/NOAA Coastal Services Center,
|
28 |
|
|
Charleston, SC) with assistance from Mike Moeller (PSGS/NOAA
|
29 |
|
|
CSC) and Doug Nebert (Federal Geographic Data Committee).
|
30 |
|
|
|
31 |
|
|
Revisions:
|
32 |
|
|
20020826 (RER) Locally scoped the definition of "onlink" in
|
33 |
|
|
Section 7 (7.11.1) within "metextns" (7.11)
|
34 |
|
|
rather than referencing "onlink" definition in
|
35 |
|
|
Section 8 (8.10).
|
36 |
|
|
20030801 (RER) Removed 'xml:space="preserve"' from all
|
37 |
|
|
'xsd:documentation' elements. I originally put
|
38 |
|
|
this in to say "whitespace is significant", but
|
39 |
|
|
both XML Spy and IBM's Schema Quality Checker
|
40 |
|
|
complain about them.
|
41 |
|
|
20030801 (RER) Corrected the second regular expression pattern
|
42 |
|
|
for the "FGDCtime" simple type in this schema
|
43 |
|
|
module. The "-" in the "[+-]" character class
|
44 |
|
|
for the sign character needed to be escaped, as
|
45 |
|
|
in "[+\-]".
|
46 |
|
|
20030801 (RER) Changed types of "srcused" (2.5.2.2) and "srcprod"
|
47 |
|
|
(2.5.2.5) in Section 2 to reference the type
|
48 |
|
|
defined for "srccitea" (2.5.1.5) to comply with
|
49 |
|
|
XML Schema constraint that key/keyref field
|
50 |
|
|
value pairs be of the same type.
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
======================================================================
|
54 |
|
|
-->
|
55 |
|
|
|
56 |
|
|
<xsd:include schemaLocation="fgdc-std-001-1998-sect01.xsd"/>
|
57 |
|
|
<xsd:include schemaLocation="fgdc-std-001-1998-sect02.xsd"/>
|
58 |
|
|
<xsd:include schemaLocation="fgdc-std-001-1998-sect03.xsd"/>
|
59 |
|
|
<xsd:include schemaLocation="fgdc-std-001-1998-sect04.xsd"/>
|
60 |
|
|
<xsd:include schemaLocation="fgdc-std-001-1998-sect05.xsd"/>
|
61 |
|
|
<xsd:include schemaLocation="fgdc-std-001-1998-sect06.xsd"/>
|
62 |
|
|
<xsd:include schemaLocation="fgdc-std-001-1998-sect07.xsd"/>
|
63 |
|
|
<xsd:include schemaLocation="fgdc-std-001-1998-sect08.xsd"/>
|
64 |
|
|
<xsd:include schemaLocation="fgdc-std-001-1998-sect09.xsd"/>
|
65 |
|
|
<xsd:include schemaLocation="fgdc-std-001-1998-sect10.xsd"/>
|
66 |
|
|
|
67 |
|
|
<xsd:element name="metadata" type="metadataType"/>
|
68 |
|
|
<xsd:complexType name="metadataType">
|
69 |
|
|
<xsd:sequence>
|
70 |
|
|
<xsd:element ref="idinfo"/>
|
71 |
|
|
<xsd:element ref="dataqual" minOccurs="0"/>
|
72 |
|
|
<xsd:element ref="spdoinfo" minOccurs="0"/>
|
73 |
|
|
<xsd:element ref="spref" minOccurs="0"/>
|
74 |
|
|
<xsd:element ref="eainfo" minOccurs="0"/>
|
75 |
|
|
<xsd:element ref="distinfo" minOccurs="0" maxOccurs="unbounded"/>
|
76 |
|
|
<xsd:element ref="metainfo"/>
|
77 |
|
|
</xsd:sequence>
|
78 |
|
|
</xsd:complexType>
|
79 |
|
|
|
80 |
|
|
<xsd:simpleType name="FGDCdate">
|
81 |
|
|
<xsd:restriction base="xsd:token">
|
82 |
|
|
<xsd:pattern value="\d{4}(\d{2}(\d{2})?)?"/>
|
83 |
|
|
<xsd:pattern value="bc\d{4}(\d{2}(\d{2})?)?"/>
|
84 |
|
|
<xsd:pattern value="cc\d{5,}"/>
|
85 |
|
|
<xsd:pattern value="cd\d{5,}"/>
|
86 |
|
|
</xsd:restriction>
|
87 |
|
|
</xsd:simpleType>
|
88 |
|
|
<xsd:simpleType name="FGDCtime">
|
89 |
|
|
<xsd:restriction base="xsd:token">
|
90 |
|
|
<xsd:pattern value="\d{2}(\d{2}(\d{2,})?)?"/>
|
91 |
|
|
<xsd:pattern value="\d{2}(\d{2}(\d{2,})?)?[+\-]\d{4}"/>
|
92 |
|
|
<xsd:pattern value="\d{2}(\d{2}(\d{2,})?)?Z"/>
|
93 |
|
|
</xsd:restriction>
|
94 |
|
|
</xsd:simpleType>
|
95 |
|
|
<xsd:simpleType name="FGDCstring">
|
96 |
|
|
<xsd:restriction base="xsd:string">
|
97 |
|
|
<xsd:pattern value="\s*\S(.|\n|\r)*"/>
|
98 |
|
|
</xsd:restriction>
|
99 |
|
|
</xsd:simpleType>
|
100 |
|
|
<xsd:simpleType name="FGDClatitude">
|
101 |
|
|
<xsd:restriction base="xsd:double">
|
102 |
|
|
<xsd:minInclusive value="-90.0"/>
|
103 |
|
|
<xsd:maxInclusive value="90.0"/>
|
104 |
|
|
</xsd:restriction>
|
105 |
|
|
</xsd:simpleType>
|
106 |
|
|
<xsd:simpleType name="FGDClongitude">
|
107 |
|
|
<xsd:restriction base="xsd:double">
|
108 |
|
|
<xsd:minInclusive value="-180.0"/>
|
109 |
|
|
<xsd:maxInclusive value="180.0"/>
|
110 |
|
|
</xsd:restriction>
|
111 |
|
|
</xsd:simpleType>
|
112 |
|
|
</xsd:schema>
|