<?xml version="1.0" encoding="UTF-8"?>
<!-- SchemaDoc Version 1.1 by Markus Doering, BGBM Berlin. Changed documentation and the CHANGE complex type (renamed element SOURCE to COMMENT)-->
<!-- SchemaDoc Version 1.0 by Markus Doering, BGBM Berlin. -->
<!-- An element documentation standard for each element of larger schemas. Developed to be used with the CODATA schema, http://www.bgbm.org/TDWG/CODATA/Schema/default.htm. -->
<xs:schema targetNamespace="http://www.bgbm.org/SchemaDoc" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:sdoc="http://www.bgbm.org/SchemaDoc" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="annotation">
		<xs:annotation>
			<xs:documentation>Regular W3C schema element for documentation of elements.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="documentation">
					<xs:annotation>
						<xs:documentation>Regular W3C schema element for documentation of elements.

Human readable element documentation.
</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="appinfo">
					<xs:annotation>
						<xs:documentation>Regular W3C schema element for documentation of elements.

Machine readable element documentation.
</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="Created" type="sdoc:change">
								<xs:annotation>
									<xs:documentation>Documentation of the initial creation of this element.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="Changed" type="sdoc:change" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Documentation of all changes to this element. Repeatable to maintain history of changes.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="GroupName" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Name of element group. These groups, arranged by subjects, allow the seperation of tasks in the creation of the standard.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="FullName" type="xs:string">
								<xs:annotation>
									<xs:documentation>The full descriptive element name.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="ExistingStandards" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>The existence of this type of data in any other published or proposed standards.
Explanation or comment on the Standard.

ATTRIBUTES:
- Standard: the name of the relevant standard.
- Field: the corresponding element in that standard.
- Identical: boolean flag to indicate identity of the relevant standard´s element with this element.</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:simpleContent>
										<xs:extension base="xs:string">
											<xs:attribute name="standard" type="xs:string" use="optional"/>
											<xs:attribute name="field" type="xs:string" use="optional"/>
											<xs:attribute name="identicalFlag" type="xs:boolean" use="optional"/>
										</xs:extension>
									</xs:simpleContent>
								</xs:complexType>
							</xs:element>
							<xs:element name="Content" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation>A description of the type of data allowed in this element, the ranges of values, enumerations, etc.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="Examples" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Examples of the use of this element.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="Comments" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Remarks on the use of these data, problems or conflicts in the application of these data types.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="Rules" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Additional information to that provided in Comments explaining the rules applying to these data.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="Notes" type="xs:string" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Additional comments to those provided in Comments and Rules, possibly temporary reminders for the responsible working group.</xs:documentation>
								</xs:annotation>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:complexType name="change">
		<xs:sequence>
			<xs:element name="Author" type="xs:string">
				<xs:annotation>
					<xs:documentation>Person who created/changed this element.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Date" type="xs:date">
				<xs:annotation>
					<xs:documentation>Date of creation/change of this element.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Comment" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Comment on the reason and nature of change/creation.  e.g. a conference</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
</xs:schema>
