<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright © 2007 Kuratorium für Technik und Bauwesen in der Landwirtschaft e.V. (KTBL). All Rights Reserved. http://www.agroxml.de/Legal/

This KTBL work (including software, documents, or other related items) is being provided by the copyright holders under the following license.
By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions: Permission to use, copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications, that you make:

1.	The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
2.	Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist,
	a short notice of the following form (hypertext is preferred, text is permitted) should be used within
	the body of any redistributed or derivative code:
	"Copyright © [$date-of-software] Kuratorium für Technik und Bauwesen in der Landwirtschaft e.V. (KTBL).
	All Rights Reserved. http://www.agroxml.de/Legal/"
3.	Notice of any changes or modifications to the KTBL files, including the date changes were made.
	(We recommend you provide URIs to the location from which the code is derived.)

THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.

The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.agroxml.de/schema/agroxml1.3" targetNamespace="http://www.agroxml.de/schema/agroxml1.3" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.3">
	<!--	 
===============================================================================
an 
- UBL (CoreComponentTypes/(Un)SpecializedDatatypes) angelehnte Datentypen
und
- GML (CodeType, MeasureType) angelehnte Datentypen
 ===============================================================================
-->
	<!--<xsd:complexType name="AmountType">
		<xsd:simpleContent>
			<xsd:extension base="xsd:decimal">
				<xsd:attribute name="amountCurrencyID" type="xsd:normalizedString" use="optional"/>
				<xsd:attribute name="amountCurrencyCodeListVersionID" type="xsd:normalizedString" use="optional"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	wird als MeasureType gehandhabt-->
	<!-- Types for physical quantities based on SI Units -->
	<!-- =============================================== -->
	<xsd:complexType name="LengthType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">Längen sind in Meter (m) angegeben.</xsd:documentation>
			<xsd:documentation xml:lang="en">Length is measured in meter (m)</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleContent>
			<xsd:extension base="xsd:double">
				<xsd:attribute name="uom" type="xsd:normalizedString" use="required" fixed="m"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<!-- =============================================== -->
	<xsd:complexType name="AreaType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">Flächen sind in Quadratmeter (m2) angegeben.</xsd:documentation>
			<xsd:documentation xml:lang="en">Areas are measured in square meter (m2)</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleContent>
			<xsd:extension base="xsd:double">
				<xsd:attribute name="uom" type="xsd:normalizedString" use="required" fixed="m²"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<!-- =============================================== -->
	<xsd:complexType name="VolumeType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">Volumina sind in Kubikmeter (m3) angegeben.</xsd:documentation>
			<xsd:documentation xml:lang="en">Volumes are measured in cubic meter (m3)</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleContent>
			<xsd:extension base="xsd:double">
				<xsd:attribute name="uom" type="xsd:normalizedString" use="required" fixed="m³"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<!-- =============================================== -->
	<xsd:complexType name="TimeType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">Zeiten werden in Sekunden (s) angegeben</xsd:documentation>
			<xsd:documentation xml:lang="en">Time is taken in seconds (s)</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleContent>
			<xsd:extension base="xsd:double">
				<xsd:attribute name="uom" type="xsd:normalizedString" use="required" fixed="s"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<!-- =============================================== -->
	<xsd:complexType name="MassType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">Massen (Gewichte im Alltagssprachgebrauch) werden in Kilogramm (kg) angegeben</xsd:documentation>
			<xsd:documentation xml:lang="en">Mass is measured in kilograms (kg)</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleContent>
			<xsd:extension base="xsd:double">
				<xsd:attribute name="uom" type="xsd:normalizedString" use="required" fixed="kg"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<!-- =============================================== -->
	<xsd:complexType name="TemperatureType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">Temperaturen werden in Grad Celsius (C) angegeben</xsd:documentation>
			<xsd:documentation xml:lang="en">temperatures are measured in degree centrigrade (C)</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleContent>
			<xsd:extension base="xsd:double">
				<xsd:attribute name="uom" type="xsd:normalizedString" use="required" fixed="°C"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<!-- =============================================== -->
	<xsd:complexType name="SpeedType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">Geschwindigkeiten werden in Meter pro Sekunde (m/s) angegeben</xsd:documentation>
			<xsd:documentation xml:lang="en">speeds are measured in meter per seconds (m/s)</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleContent>
			<xsd:extension base="xsd:double">
				<xsd:attribute name="uom" type="xsd:normalizedString" use="required" fixed="m/s"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<!-- =============================================== -->
	<xsd:complexType name="PowerType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">Leistungen werden in Watt (W) angegeben.</xsd:documentation>
			<xsd:documentation xml:lang="en">Power measured in watt (watt)</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleContent>
			<xsd:extension base="xsd:double">
				<xsd:attribute name="uom" type="xsd:normalizedString" use="required" fixed="W"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<!-- =============================================== -->
	<xsd:complexType name="ConcentrationType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">Datentyp für Konzentration chemischer Substanzen.</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleContent>
			<xsd:extension base="xsd:double">
				<xsd:attribute name="uom" use="required">
					<xsd:simpleType>
						<xsd:restriction base="xsd:normalizedString">
							<xsd:enumeration value="mol/m³">
								<xsd:annotation>
									<xsd:documentation xml:lang="de">Molarität. Beispiel: 1 mol/m³ Kochsalzlösung enthält 1 Mol Kochsalz pro Kubikmeter Lösung.</xsd:documentation>
								</xsd:annotation>
							</xsd:enumeration>
							<xsd:enumeration value="mol/kg">
								<xsd:annotation>
									<xsd:documentation xml:lang="de">Molalität. Beispiel: 1 mol/kg Kochsalzlösung enthält 1 Mol Kochsalz pro Kilogramm Lösungsmittel.</xsd:documentation>
								</xsd:annotation>
							</xsd:enumeration>
							<xsd:enumeration value="% w/w">
								<xsd:annotation>
									<xsd:documentation xml:lang="de">Massenprozent. Beispiel: 40 g Ethanol und 60 g Wasser entspricht einer 40 % w/w Ethanollösung.</xsd:documentation>
								</xsd:annotation>
							</xsd:enumeration>
							<xsd:enumeration value="kg/kg">
								<xsd:annotation>
									<xsd:documentation xml:lang="de">Masseprozent in absoluten Einheiten. Bei Bodenanalysen üblicher.</xsd:documentation>
								</xsd:annotation>
							</xsd:enumeration>
							<xsd:enumeration value="% w/v">
								<xsd:annotation>
									<xsd:documentation xml:lang="de">Masse auf Volumen. Beispiel: 40 g Zucker in 100 ml resultierender Lösung entspricht einer 40 % w/v Zuckerlösung.</xsd:documentation>
								</xsd:annotation>
							</xsd:enumeration>
							<xsd:enumeration value="kg/m³">
								<xsd:annotation>
									<xsd:documentation xml:lang="de">Masse auf Volumen. Üblich bei Konzentrationsangaben von Salzen in Wasser.</xsd:documentation>
								</xsd:annotation>
							</xsd:enumeration>
							<xsd:enumeration value="% v/v">
								<xsd:annotation>
									<xsd:documentation xml:lang="de">Volumenprozent. Beispiel: 40 ml Ethanol in 100 ml resultierender Lösung entspricht einer 40 % v/v Ethanollösung.</xsd:documentation>
								</xsd:annotation>
							</xsd:enumeration>
							<xsd:enumeration value="m³/m³">
								<xsd:annotation>
									<xsd:documentation xml:lang="de">Volumenprozent absolut angegeben.</xsd:documentation>
								</xsd:annotation>
							</xsd:enumeration>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:attribute>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<!-- =============================================== -->
	<!-- Generic Type based on content of the list at http://www.agroxml.de/content/units-1.2.xsd -->
	<xsd:complexType name="MeasureType">
		<xsd:simpleContent>
			<xsd:extension base="xsd:decimal">
				<xsd:attribute name="uom" type="xsd:anyURI" use="required"/>
				<xsd:attribute name="measureUnitCodeListVersionID" type="xsd:normalizedString" use="optional"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<!-- =============================================== -->
	<!-- The following two types must die -->
	<xsd:complexType name="MeasureOrStringType">
		<xsd:simpleContent>
			<xsd:extension base="xsd:normalizedString">
				<xsd:attribute name="uom" type="xsd:anyURI" use="optional"/>
				<xsd:attribute name="measureUnitCodeListVersionID" type="xsd:normalizedString" use="optional"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<!-- =============================================== -->
	<xsd:complexType name="MeasuredCodeType">
		<xsd:simpleContent>
			<xsd:extension base="xsd:normalizedString">
				<xsd:attribute name="codeSpace" type="xsd:anyURI" use="required"/>
				<xsd:attribute name="codeListVersionID" type="xsd:normalizedString" use="optional"/>
				<xsd:attribute name="languageID" type="xsd:language" use="optional"/>
				<xsd:attribute name="uom" type="xsd:anyURI" use="required"/>
				<xsd:attribute name="measureUnitCodeListVersionID" type="xsd:normalizedString" use="optional"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<!-- =============================================== -->
	<xsd:complexType name="PercentType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">Dieser Datentyp wird nur verwendet, wenn es sich um Anteilsangaben handelt, die keine Konzentrationen (also nicht Masse- oder Volumenprozent sind. Für Konzentrationen steht der ConcentrationType zur Verfügung. Eine Randnotiz: Der Datentyp des PercentType ist abgeleitet von xsd:decimal und nicht von xsd:double. Das rührt daher, dass Prozentangaben oft auch in Bereichen eingesetzt werden, wo exakte Berechnungen notwendig sind (Beispiel: Zins-/Renditeangaben). xsd:double soll rechnerintern als Gleitkommazahl behandelt werden. Per IEEE-753 sind damit exakte Berechnungen nicht möglich. Elementinhalte eines Elementes, das sich auf xsd:decimal zurückführen lässt, soll hingegen mit &quot;arbitrary precision&quot; weiterverarbeitet werden.</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleContent>
			<xsd:extension base="xsd:decimal">
				<xsd:attribute name="uom" type="xsd:normalizedString" use="required" fixed="%"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<!-- =============================================== -->
	<!--Special Types derived from string or normalizedString -->
	<xsd:complexType name="TextType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">Der TextType ist gedacht für Zeichenketten, die mit Sprach- oder Länderkürzeln behaftet sind. Diese können in Attributen angegeben werden. Wo das keinen Sinn macht, ist der Typ xsd:string zu verwenden.</xsd:documentation>
			<xsd:documentation xml:lang="en">TextType is to be used for character strings, which are associated with language and locale information. These can be given in the attributes. Where this does not make sense, use the type xsd:string.</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleContent>
			<xsd:extension base="xsd:string">
				<xsd:attribute name="languageID" type="xsd:language" use="optional"/>
				<xsd:attribute name="languageLocaleID" type="xsd:normalizedString" use="optional"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<!-- =============================================== -->
	<xsd:complexType name="IdentifierType">
		<xsd:simpleContent>
			<xsd:extension base="xsd:normalizedString">
				<xsd:attribute name="identificationSchemeID" type="xsd:normalizedString" use="optional"/>
				<xsd:attribute name="identificationSchemeName" type="xsd:string" use="optional"/>
				<xsd:attribute name="identificationSchemeAgencyID" type="xsd:normalizedString" use="optional"/>
				<xsd:attribute name="identificationSchemeAgencyName" type="xsd:string" use="optional"/>
				<xsd:attribute name="identificationSchemeVersionID" type="xsd:normalizedString" use="optional"/>
				<xsd:attribute name="identificationSchemeURI" type="xsd:anyURI" use="optional"/>
				<xsd:attribute name="identificationSchemeDataURI" type="xsd:anyURI" use="optional"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<!-- =============================================== -->
	<xsd:complexType name="IDREFType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">Ein Typ für ein leeres Element, das lediglich zur Referenzierung anderer Elemente dient. Die ID auf, die referenziert wird, wird in das idref-Attribut geschrieben. Zur Begründung, warum die Referenz im Attribut und nicht im Elementinhalt eingetragen wird, s. http://www.w3.org/TR/xmlschema-2/#IDREF</xsd:documentation>
		</xsd:annotation>
		<xsd:attribute name="idref" type="xsd:IDREF"/>
	</xsd:complexType>
	<!-- =============================================== -->
	<xsd:complexType name="CodeType">
		<xsd:simpleContent>
			<xsd:extension base="xsd:normalizedString">
				<xsd:attribute name="codeSpace" type="xsd:anyURI" use="required"/>
				<xsd:attribute name="codeListVersionID" type="xsd:normalizedString" use="optional"/>
				<xsd:attribute name="languageID" type="xsd:language" use="optional"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<!-- =============================================== -->
	<xsd:complexType name="ISO639CodeType">
		<xsd:sequence>
			<xsd:element name="languageISOCode">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:maxLength value="3"/>
						<xsd:minLength value="1"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<!-- =============================================== -->
	<!-- Pattern-restricted types -->
	<xsd:simpleType name="BBCHScaleType">
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="\d{1,4}"/>
		</xsd:restriction>
	</xsd:simpleType>
	<!-- =============================================== -->
	<xsd:simpleType name="EANType">
		<xsd:restriction base="xsd:integer">
			<xsd:pattern value="\d{8,13}"/>
		</xsd:restriction>
	</xsd:simpleType>
	<!-- =============================================== -->
	<xsd:simpleType name="UniqueAreaIDType">
		<xsd:restriction base="xsd:normalizedString">
			<xsd:pattern value="\S{22}"/>
		</xsd:restriction>
	</xsd:simpleType>
	<!-- =============================================== -->
	<xsd:simpleType name="UniquePositionIDType">
		<xsd:restriction base="xsd:normalizedString">
			<xsd:pattern value="\S{12}"/>
		</xsd:restriction>
	</xsd:simpleType>
	<!-- =============================================== -->
	<!-- types based on numeric types -->
	<xsd:simpleType name="AssessmentType">
		<xsd:restriction base="xsd:float">
			<xsd:minInclusive value="0"/>
			<xsd:maxInclusive value="1"/>
		</xsd:restriction>
	</xsd:simpleType>
	<!-- =============================================== -->
	<!-- types based on date/time types -->
	<xsd:simpleType name="DateTimeUnionType">
		<xsd:annotation>
			<xsd:documentation xml:lang="de">Dieser Datentyp wird verwendet, für Felder, in denen die Präzision einer Zeitmessung implizit mit angegeben werden soll. Z. B. kann es unnötig sein, bei einer Maßnahme oder einem Ereignis festzuhalten, zu welcher Uhrzeit es stattgefunden hat. In vielen Fällen reicht das Datum aus. Andererseits gibt es Arbeitsgeräte, die automatisch für Maßnahmen Datum und Uhrzeit erfassen. Semantisch ist beides dasselbe, nämlich der Zeitpunkt, an dem eine Maßnahme stattgefunden hat. Die Präzision der Messung wird hierbei darüber angegeben, ob ein vollständige Zeitangabe vorliegt oder nur eine Datumsangabe. Zur Repräsentation von Zeitstempeln und Datumsangaben im Elementinhalt bitte die Dokumentation des W3C unter http://www.w3.org/TR/xmlschema-2/#dateTime und http://www.w3.org/TR/xmlschema-2/#date lesen!</xsd:documentation>
		</xsd:annotation>
		<xsd:union memberTypes="xsd:date xsd:dateTime"/>
	</xsd:simpleType>
</xsd:schema>
