<?xml version="1.0" encoding="ISO-8859-15"?>
<!-- Copyright (c) 2011 HPA (http://www.hafen-hamburg.de) -->
<!-- XSD-Version 3.2 / 30-Jun-2011 -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
	<xsd:include schemaLocation="http://www.dakosy.de/fileadmin/user_upload/Handbuch/Verkehrstraeger/TD04_5/Nachrichten/MessageEnvelope.xsd"/>
	<xsd:include schemaLocation="http://www.dakosy.de/fileadmin/user_upload/Handbuch/Verkehrstraeger/TD04_5/Nachrichten/TD04_core_Subj.xsd"/>
	<xsd:element name="Document">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="Metainfo" type="MetaInfoDef">
					<xsd:annotation>
						<xsd:documentation>In the TD04 interface only one recipient is used, i.e. only 2 or 3 participants can be specified for a transmission.</xsd:documentation>
						<xsd:documentation>The attribute Alias="DAK" is mandatory.</xsd:documentation>
						<xsd:documentation xml:lang="DE">In TD04 wird nur 1 Empfänger benutzt,d.h. es sind immer 2 oder 3 Beteiligte (participants) angegeben für eine Übertragung.</xsd:documentation>
						<xsd:documentation xml:lang="DE">In TD04 ist das Attribut Alias="DAK" Pflicht.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="Messages">
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element name="Message" type="MessageDef" maxOccurs="unbounded"/>
						</xsd:sequence>
					</xsd:complexType>
				</xsd:element>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:complexType name="MessageDef">
		<xsd:annotation>
			<xsd:documentation>General Message definition</xsd:documentation>
			<xsd:documentation>Describes the contents of a message (metainfo and data)</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="MessageMetaInfo" type="MessageMetaInfoDef" minOccurs="0"/>
			<xsd:element name="TransportOrder" type="TransportOrderDef"/>
		</xsd:sequence>
		<xsd:attribute name="ReferenceNumber" use="required">
			<xsd:annotation>
				<xsd:documentation xml:lang="EN">uniqe reference number identifying a single message</xsd:documentation>
				<xsd:documentation xml:lang="DE">Nachrichten-Referenz</xsd:documentation>
			</xsd:annotation>
			<xsd:simpleType>
				<xsd:restriction base="xsd:string">
					<xsd:minLength value="1"/>
					<xsd:maxLength value="35"/>
				</xsd:restriction>
			</xsd:simpleType>
		</xsd:attribute>
		<xsd:attribute name="Status" type="xsd:string" use="optional">
			<xsd:annotation>
				<xsd:documentation xml:lang="EN">not used for TD04</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
	</xsd:complexType>
	<xsd:complexType name="TransportOrderDef">
		<xsd:sequence>
			<xsd:element name="BusinessDocumentDetail" type="BusinessDocumentDef"/>
			<xsd:element name="TypeOfTransport" type="TypeOfTransportDef"/>
			<xsd:element name="Direction">
				<xsd:simpleType>
					<xsd:annotation>
						<xsd:documentation>Direction of the transport: I for Inbound (Incoming Train) and O for Outbound (outgoing train)</xsd:documentation>
						<xsd:documentation xml:lang="DE">Transportrichtung: I für Bahnempfang und O für Bahnversand</xsd:documentation>
					</xsd:annotation>
					<xsd:restriction base="xsd:string">
						<xsd:enumeration value="I"/>
						<xsd:enumeration value="O"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="DispatchDetail">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="Date" type="xsd:date" minOccurs="0">
							<xsd:annotation>
								<xsd:documentation>shipping date</xsd:documentation>
								<xsd:documentation xml:lang="DE">Versanddatum</xsd:documentation>
							</xsd:annotation>
						</xsd:element>
						<xsd:element name="RailStation" type="RailStationDef"/>
						<xsd:element name="Location" type="LocationDef" minOccurs="0"/>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="DischargeDetail">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="Condition" minOccurs="0">
							<xsd:simpleType>
								<xsd:annotation>
									<xsd:documentation xml:lang="DE">1 = ZUM ANSCHLUSSGLEIS</xsd:documentation>
									<xsd:documentation xml:lang="DE">2 = ZUR SELBSTABHOLUNG</xsd:documentation>
									<xsd:documentation xml:lang="DE">3 = ZUM ABSTELLPLATZ IM UBF</xsd:documentation>
									<xsd:documentation xml:lang="DE">4 = MIT ZUSTELLUNG, UEBER UBF</xsd:documentation>
								</xsd:annotation>
								<xsd:restriction base="xsd:string">
									<xsd:pattern value="[1-4]"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="Date" type="xsd:date" minOccurs="0">
							<xsd:annotation>
								<xsd:documentation>arrival date</xsd:documentation>
								<xsd:documentation xml:lang="DE">Ankunftsdatum</xsd:documentation>
							</xsd:annotation>
						</xsd:element>
						<xsd:element name="Hour" minOccurs="0">
							<xsd:simpleType>
								<xsd:annotation>
									<xsd:documentation>arrival hour</xsd:documentation>
									<xsd:documentation xml:lang="DE">Ankunftsstunde</xsd:documentation>
								</xsd:annotation>
								<xsd:restriction base="xsd:string">
									<xsd:pattern value="[0-2][0-9]"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="RailStation" type="RailStationDef"/>
						<xsd:element name="Location" type="LocationDef" minOccurs="0"/>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="ClearanceStation" minOccurs="0">
				<xsd:simpleType>
					<xsd:annotation>
						<xsd:documentation>name of the train station where customs clearance shall take place</xsd:documentation>
						<xsd:documentation xml:lang="DE">Bahnhof an dem die Verzollung vorgenommen werden soll</xsd:documentation>
					</xsd:annotation>
					<xsd:restriction base="xsd:string">
						<xsd:maxLength value="32"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="RailwayBillType" minOccurs="0">
				<xsd:simpleType>
					<xsd:annotation>
						<xsd:documentation>type of railway bill</xsd:documentation>
						<xsd:documentation xml:lang="DE">Frachtbrief-Art (CIM, EVO etc.)</xsd:documentation>
					</xsd:annotation>
					<xsd:restriction base="xsd:string">
						<xsd:maxLength value="4"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="TransitDetail" minOccurs="0">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="RouteCode" minOccurs="0" maxOccurs="5">
							<xsd:simpleType>
								<xsd:annotation>
									<xsd:documentation>mandatory for outbound traffic crossing a national border</xsd:documentation>
									<xsd:documentation xml:lang="DE">Leitungsweg-Code, Pflicht im Bahnversand bei grenzüberschreitendem Verkehr</xsd:documentation>
								</xsd:annotation>
								<xsd:restriction base="xsd:string">
									<xsd:length value="4"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="RouteText" minOccurs="0">
							<xsd:simpleType>
								<xsd:restriction base="xsd:string">
									<xsd:maxLength value="70"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="RoutingPlanNumber" minOccurs="0">
							<xsd:simpleType>
								<xsd:annotation>
									<xsd:documentation xml:lang="DE">Beförderungsplan-Nummer</xsd:documentation>
								</xsd:annotation>
								<xsd:restriction base="xsd:string">
									<xsd:maxLength value="6"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="RailwayClass">
							<xsd:simpleType>
								<xsd:annotation>
									<xsd:documentation>line category</xsd:documentation>
									<xsd:documentation xml:lang="DE">Streckenklasse</xsd:documentation>
								</xsd:annotation>
								<xsd:restriction base="xsd:string">
									<xsd:length value="2"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="GuidingValue">
							<xsd:simpleType>
								<xsd:annotation>
									<xsd:documentation>value to determine the destination for the transport</xsd:documentation>
									<xsd:documentation xml:lang="DE">Richtzahl des Bestimmungsbahnhofs  im nationalen Verkehr, Richtpunktcode für Bestimmungsladestelle im internationalen Verkehr</xsd:documentation>
								</xsd:annotation>
								<xsd:restriction base="xsd:string">
									<xsd:maxLength value="7"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="MaximumSpeed" minOccurs="0">
							<xsd:simpleType>
								<xsd:annotation>
									<xsd:documentation>speed, used for load planning considering the load limits of a wagon</xsd:documentation>
									<xsd:documentation xml:lang="DE">Geschwindigkeit, Angabe für Verladedisposition in Bezug zum Lastgrenzraster</xsd:documentation>
								</xsd:annotation>
								<xsd:restriction base="xsd:string">
									<xsd:enumeration value="S"/>
									<xsd:enumeration value="SS"/>
									<xsd:enumeration value="90"/>
									<xsd:enumeration value="100"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="ModeOfTransport" minOccurs="0">
				<xsd:simpleType>
					<xsd:annotation>
						<xsd:documentation xml:lang="DE">Beförderungsart</xsd:documentation>
						<xsd:documentation xml:lang="DE">1 = FRACHTGUT</xsd:documentation>
						<xsd:documentation xml:lang="DE">2 = PAPERSOLUTION "QUALITY"</xsd:documentation>
						<xsd:documentation xml:lang="DE">3 = KOMBINIERTER VERKEHR</xsd:documentation>
						<xsd:documentation xml:lang="DE">4 = INTERCARGO</xsd:documentation>
						<xsd:documentation xml:lang="DE">5 = GANZZUGVERKEHR</xsd:documentation>
					</xsd:annotation>
					<xsd:restriction base="xsd:string">
						<xsd:pattern value="[1-5]"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="KLVIndicator" minOccurs="0">
				<xsd:simpleType>
					<xsd:annotation>
						<xsd:documentation>to be specified in case of bimodal traffic</xsd:documentation>
						<xsd:documentation>import/export by train (7) or truck (8)</xsd:documentation>
						<xsd:documentation xml:lang="DE">Kennzeichen für KLV-Verkehr</xsd:documentation>
						<xsd:documentation xml:lang="DE">Import/Export per Zug (7) oder LKW (8)</xsd:documentation>
					</xsd:annotation>
					<xsd:restriction base="xsd:string">
						<xsd:enumeration value="7"/>
						<xsd:enumeration value="8"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="ScheduledTrain" type="TrainDef" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>only mandatory for outbound traffic, when the TrainDetail in the LoadingUnit is not specified</xsd:documentation>
					<xsd:documentation xml:lang="DE">Pflicht im Bahnversand wenn keine TrainDetail für die Ladeeinheiten angegeben sind</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="OverloadLicenceNumber" minOccurs="0">
				<xsd:simpleType>
					<xsd:annotation>
						<xsd:documentation>licence number for the transport of heavy-weight load or goods exceeding the loading gauge</xsd:documentation>
						<xsd:documentation xml:lang="DE">Genehmigungsnummer für Schwerwagen bzw. Lademaß-Überschreitung</xsd:documentation>
					</xsd:annotation>
					<xsd:restriction base="xsd:string">
						<xsd:maxLength value="6"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="OverloadLicenceYear" minOccurs="0">
				<xsd:simpleType>
					<xsd:annotation>
						<xsd:documentation>year of the overload licence</xsd:documentation>
						<xsd:documentation xml:lang="DE">Jahr der Genehmigung für Schwerwagen / Lademaß-Überschreitung</xsd:documentation>
					</xsd:annotation>
					<xsd:restriction base="xsd:string">
						<xsd:pattern value="[0-9][0-9]"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="WagonLoadData" type="FurtherTransportRelatedDataDef" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>only used with TypeOfTransport = K</xsd:documentation>
					<xsd:documentation xml:lang="DE">an dieser Stelle nur für TypeOfTransport = K angeben</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Consignor" type="PartyDataDef">
				<xsd:annotation>
					<xsd:documentation>the address is mandatory</xsd:documentation>
					<xsd:documentation xml:lang="DE">Versender, Pflichtangabe</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Consignee" type="PartyDataDef">
				<xsd:annotation>
					<xsd:documentation>the address is mandatory</xsd:documentation>
					<xsd:documentation xml:lang="DE">Empfänger, Pflichtangabe</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ShippingDirector" type="PartyDataDef" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation xml:lang="DE">Verkehrsführer</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Customer" type="PartyDataDef" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>customer of the RTC</xsd:documentation>
					<xsd:documentation xml:lang="DE">Kunde des EVU</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ShippingUnit" maxOccurs="999">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="Position">
							<xsd:simpleType>
								<xsd:annotation>
									<xsd:documentation>Position of the container as transmitted by the customer in the transport order container segment. Unique number within the transport order.</xsd:documentation>
									<xsd:documentation>The position is used to unambigously identify the container in the communication.</xsd:documentation>
									<xsd:documentation xml:lang="DE">Position der Ladeeinheit im Transportauftrag. Eindeutige Nummer innerhalb des Transportauftrags.</xsd:documentation>
									<xsd:documentation>Die Positionsnummer wird in der Kommunikation benutzt zur eindeutigen Identifizierung der Ladeeinheit.</xsd:documentation>
								</xsd:annotation>
								<xsd:restriction base="xsd:positiveInteger">
									<xsd:maxInclusive value="999"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="EmptyFull" type="EmptyFullDef"/>
						<xsd:element name="PackageCode" minOccurs="0">
							<xsd:simpleType>
								<xsd:annotation>
									<xsd:documentation xml:lang="DE">Verpackungscode</xsd:documentation>
								</xsd:annotation>
								<xsd:restriction base="xsd:string">
									<xsd:length value="2"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="NumberOfPackages" minOccurs="0">
							<xsd:simpleType>
								<xsd:restriction base="xsd:positiveInteger">
									<xsd:maxInclusive value="99999"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="Weight" type="WeightDef" minOccurs="0">
							<xsd:annotation>
								<xsd:documentation>mandatory when loading unit is full</xsd:documentation>
								<xsd:documentation>for container it is the net weight without the weight for equipment</xsd:documentation>
								<xsd:documentation>for wagon it is the loading weight</xsd:documentation>
								<xsd:documentation xml:lang="DE">Pflicht bei EmptyFull="F"</xsd:documentation>
								<xsd:documentation xml:lang="DE">für Container ist das Nettogewicht ohne Gewicht der Lademittel anzugeben</xsd:documentation>
								<xsd:documentation xml:lang="DE">für Waggons ist das Ladungsgewicht anzugeben</xsd:documentation>
							</xsd:annotation>
						</xsd:element>
						<xsd:element name="ImportReference" minOccurs="0">
							<xsd:simpleType>
								<xsd:annotation>
									<xsd:documentation>identification number for a unit in the import platform of the port of Hamburg</xsd:documentation>
									<xsd:documentation xml:lang="DE">Referenznummer einer Ladeeinheit in der Import-Plattform des Hamburger Hafens</xsd:documentation>
								</xsd:annotation>
								<xsd:restriction base="xsd:string">
									<xsd:maxLength value="18"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="CustomsProcedure" type="CustomsProcedureDef" minOccurs="0"/>
						<xsd:element name="CustomsUnitHZODetail" type="CustomsHZODef" minOccurs="0"/>
						<xsd:element name="AtlasATBNr" minOccurs="0"/>
						<xsd:element name="OriginCountryCode" type="CountryCodeDef" minOccurs="0"/>
						<xsd:element name="DestinationCountryCode" type="CountryCodeDef" minOccurs="0"/>
						<xsd:element name="TrainDetail" type="TrainDef" minOccurs="0"/>
						<xsd:element name="ArrivalDate" type="xsd:date" minOccurs="0"/>
						<xsd:element name="CustomerInstructionForStation" minOccurs="0">
							<xsd:simpleType>
								<xsd:annotation>
									<xsd:documentation>customer instructions for the rail station</xsd:documentation>
									<xsd:documentation>used only for outbound traffic: instruction for the dispatch station</xsd:documentation>
									<xsd:documentation xml:lang="DE">Kunden-Anweisungen für den Bahnhof</xsd:documentation>
									<xsd:documentation xml:lang="DE">nur im Bahnversand benutzt: Anweisung für den Abgangsbahnhof</xsd:documentation>
								</xsd:annotation>
								<xsd:restriction base="xsd:string">
									<xsd:maxLength value="70"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="CustomerInstructionDestination" minOccurs="0">
							<xsd:simpleType>
								<xsd:annotation>
									<xsd:documentation>customer instructions for the destination station, for trains going between two harbour stations</xsd:documentation>
									<xsd:documentation>only used with outbound traffic</xsd:documentation>
									<xsd:documentation xml:lang="DE">Kunden-Anweisungen für den Zielbahnhof bei Umfuhren zwischen Hafenbahnhöfen</xsd:documentation>
									<xsd:documentation xml:lang="DE">nur beim Bahnversand benutzt</xsd:documentation>
								</xsd:annotation>
								<xsd:restriction base="xsd:string">
									<xsd:maxLength value="70"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="LoadingRemark" minOccurs="0">
							<xsd:simpleType>
								<xsd:annotation>
									<xsd:documentation>remarks from quay operator after loading of the unit</xsd:documentation>
									<xsd:documentation xml:lang="DE">Bemerkung des Kaibetriebs nach Verladung</xsd:documentation>
								</xsd:annotation>
								<xsd:restriction base="xsd:string">
									<xsd:maxLength value="40"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="SecondaryPlacard" type="PlacardDef" minOccurs="0" maxOccurs="2">
							<xsd:annotation>
								<xsd:documentation xml:lang="DE">Nebenzettel</xsd:documentation>
							</xsd:annotation>
						</xsd:element>
						<xsd:element name="SealData" type="SealDetailsDef" minOccurs="0" maxOccurs="99"/>
						<xsd:choice minOccurs="0">
							<xsd:element name="GEGISReferenceNumber" minOccurs="0">
								<xsd:annotation>
									<xsd:documentation>when a declaration exists in GEGIS</xsd:documentation>
									<xsd:documentation xml:lang="DE">wenn bereits eine GEGIS-Anmeldung existiert</xsd:documentation>
								</xsd:annotation>
								<xsd:simpleType>
									<xsd:restriction base="xsd:string">
										<xsd:minLength value="1"/>
										<xsd:maxLength value="18"/>
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:element>
							<xsd:element name="DangerousGoods" type="DangerousGoodsDef" minOccurs="0" maxOccurs="999"/>
						</xsd:choice>
						<xsd:choice>
							<xsd:element name="TransportContainer" type="TransportContainerDef" minOccurs="0"/>
							<xsd:element name="TransportWagon" type="TransportWagonDef" minOccurs="0"/>
						</xsd:choice>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="ContainerDef">
		<xsd:sequence>
			<xsd:element name="Length">
				<xsd:simpleType>
					<xsd:annotation>
						<xsd:documentation>container length</xsd:documentation>
						<xsd:documentation xml:lang="DE">Container-Länge</xsd:documentation>
					</xsd:annotation>
					<xsd:restriction base="xsd:string">
						<xsd:pattern value="\d{2}"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="Height" minOccurs="0">
				<xsd:simpleType>
					<xsd:annotation>
						<xsd:documentation>container height</xsd:documentation>
						<xsd:documentation xml:lang="DE">Container-Höhe</xsd:documentation>
					</xsd:annotation>
					<xsd:restriction base="xsd:string">
						<xsd:pattern value="\d{2}"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="Type" minOccurs="0">
				<xsd:simpleType>
					<xsd:annotation>
						<xsd:documentation>container type</xsd:documentation>
						<xsd:documentation xml:lang="DE">Container-Typ</xsd:documentation>
					</xsd:annotation>
					<xsd:restriction base="xsd:string">
						<xsd:length value="2"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="TareWeight" type="WeightDef" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>tare of container</xsd:documentation>
					<xsd:documentation xml:lang="DE">Tara des Containers</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="CustomsHZODef">
		<xsd:sequence>
			<xsd:element name="HANumber" type="HABISNumberDef" minOccurs="0"/>
			<xsd:element name="VubIndicator" type="ChoiceDef" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>to indicate if the goods are under embargo or other restrictions (can be necessary for inbound traffic)</xsd:documentation>
					<xsd:documentation>vub is the abbreviation for 'Verbote und Beschränkungen'</xsd:documentation>
					<xsd:documentation xml:lang="DE">Kennzeichen, dass die Ware unter Embargo-Regeln oder andere Beschränkungen fällt (evtl. nötig im Bahnempfang)</xsd:documentation>
					<xsd:documentation xml:lang="DE">VuB ist die Abkürzung für 'Verbote und Beschränkungen'</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="EquipmentDetailsDef">
		<xsd:annotation>
			<xsd:documentation>either TypeCode or Name must be specified</xsd:documentation>
			<xsd:documentation xml:lang="DE">Lademittel, entweder TypeCode oder Name muss angegeben sein</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="TypeCode" minOccurs="0">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:maxLength value="2"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="Name" minOccurs="0">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="1"/>
						<xsd:maxLength value="50"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="Quantity" minOccurs="0">
				<xsd:simpleType>
					<xsd:restriction base="xsd:positiveInteger">
						<xsd:maxInclusive value="999"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="Weight" type="WeightDef" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="SealDetailsDef">
		<xsd:sequence>
			<xsd:element name="SequenceNumber">
				<xsd:simpleType>
					<xsd:annotation>
						<xsd:documentation>used to unambigously identify the seal details for a unit in the communication</xsd:documentation>
						<xsd:documentation xml:lang="DE">zur eindeutigen Identifikation der Siegel-Angaben für eine Ladeeinheit</xsd:documentation>
					</xsd:annotation>
					<xsd:restriction base="xsd:positiveInteger">
						<xsd:maxInclusive value="99"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="Number">
				<xsd:simpleType>
					<xsd:annotation>
						<xsd:documentation>official seal number (e.g. customs seal)</xsd:documentation>
						<xsd:documentation>currently only 12 bytes used in TD01 communication</xsd:documentation>
						<xsd:documentation xml:lang="DE">amtliche Siegelnummer (z.B. Zollsiegel)</xsd:documentation>
						<xsd:documentation xml:lang="DE">z.Zt. nur 12 Stellen benutzt in TD01</xsd:documentation>
					</xsd:annotation>
					<xsd:restriction base="xsd:string">
						<xsd:maxLength value="20"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="TypeCode" minOccurs="0">
				<xsd:simpleType>
					<xsd:annotation>
						<xsd:documentation>type of seal</xsd:documentation>
						<xsd:documentation xml:lang="DE">1 = PLOMBE MIT PRÄGEAUFDRUCK</xsd:documentation>
						<xsd:documentation xml:lang="DE">2 = EINWEGVERSCHLUSS MIT IDENTIF.-MERKMAL</xsd:documentation>
						<xsd:documentation xml:lang="DE">3 = VORHÄNGESCHLOSS</xsd:documentation>
						<xsd:documentation xml:lang="DE">4 = ZOLLVERSCHLUSS</xsd:documentation>
						<xsd:documentation xml:lang="DE">9 = SONSTIGE VERSCHLÜSSE</xsd:documentation>
					</xsd:annotation>
					<xsd:restriction base="xsd:string">
						<xsd:length value="1"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="PlaceCode" minOccurs="0">
				<xsd:simpleType>
					<xsd:annotation>
						<xsd:documentation>code for the placement of the seal</xsd:documentation>
						<xsd:documentation xml:lang="DE">Anbringungs-Ort</xsd:documentation>
						<xsd:documentation xml:lang="DE">1 = STIRNWANDTÜREN ODER -LUKEN</xsd:documentation>
						<xsd:documentation xml:lang="DE">2 = SEITENWANDTÜREN ODER -LUKEN</xsd:documentation>
						<xsd:documentation xml:lang="DE">3 = DACHÖFFNUNGEN</xsd:documentation>
						<xsd:documentation xml:lang="DE">4 = BODENÖFFNUNGEN</xsd:documentation>
						<xsd:documentation xml:lang="DE">9 = ANBRINGUNGSORT UNBEKANNT</xsd:documentation>
					</xsd:annotation>
					<xsd:restriction base="xsd:string">
						<xsd:length value="1"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="TemperatureDef">
		<xsd:sequence>
			<xsd:element name="Refrigeration" type="ChoiceDef" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>indicator for refrigeration (default value is "No")</xsd:documentation>
					<xsd:documentation xml:lang="DE">Kennzeichen für Tiefkühlung (Default ist "N")</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MaxValue" type="TemperatureValue" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>upper limit of the temperature range for refrigerated goods / signed (+/-) temperature</xsd:documentation>
					<xsd:documentation xml:lang="DE">oberer Temperatur-Grenzwert für Kühlgut / mit Vorzeichen (+/-)</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MinValue" type="TemperatureValue" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>lower limit of the temperature range for refrigerated goods / signed (+/-) temperature</xsd:documentation>
					<xsd:documentation xml:lang="DE">unterer Temperatur-Grenzwert für Kühlgut / mit Vorzeichen (+/-)</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="TransportContainerDef">
		<xsd:sequence>
			<xsd:element name="ContainerNumber" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>mandatory for inbound traffic, and for outbound traffic when the loading unit is full</xsd:documentation>
					<xsd:documentation xml:lang="DE">Pflicht im Bahnempfang, und im Bahnversand bei beladener LE</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:annotation>
						<xsd:documentation>e.g.: byte 1 -  4 prefix, byte 5 - 12 number</xsd:documentation>
					</xsd:annotation>
					<xsd:restriction base="xsd:string">
						<xsd:minLength value="1"/>
						<xsd:maxLength value="12"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="WagonNumber" type="WagonNumberDef" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>number of the rail road wagon carrying the container</xsd:documentation>
					<xsd:documentation xml:lang="DE">Nummer des transportierenden Wagens</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ContainerLoadData" type="FurtherTransportRelatedDataDef" minOccurs="0"/>
			<xsd:element name="OceanCarrierData" minOccurs="0">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="Code" minOccurs="0">
							<xsd:simpleType>
								<xsd:restriction base="xsd:string">
									<xsd:maxLength value="4"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="Name">
							<xsd:simpleType>
								<xsd:restriction base="xsd:string">
									<xsd:maxLength value="20"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="BookingNumber" minOccurs="0">
							<xsd:simpleType>
								<xsd:annotation>
									<xsd:documentation xml:lang="DE">Reederbuchungsnummer</xsd:documentation>
								</xsd:annotation>
								<xsd:restriction base="xsd:string">
									<xsd:maxLength value="20"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="ContainerDetail" type="ContainerDef"/>
			<xsd:element name="OceanVoyage" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>one of the three elements must be specified</xsd:documentation>
					<xsd:documentation xml:lang="DE">mind. eine der drei Angaben muss vorhanden sein</xsd:documentation>
				</xsd:annotation>
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="Code" minOccurs="0">
							<xsd:simpleType>
								<xsd:annotation>
									<xsd:documentation>code of the destination port</xsd:documentation>
									<xsd:documentation>UN/LOCODE - the port code above will take precedence over the port name listed below</xsd:documentation>
									<xsd:documentation xml:lang="DE">Code des Bestimmungshafens</xsd:documentation>
									<xsd:documentation xml:lang="DE">UN/LOCODE - der Code hat Vorrang über einen evtl. zusätzlich angegeben Namen</xsd:documentation>
								</xsd:annotation>
								<xsd:restriction base="xsd:string">
									<xsd:length value="5"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="Name" minOccurs="0">
							<xsd:simpleType>
								<xsd:annotation>
									<xsd:documentation>name of the destination port</xsd:documentation>
									<xsd:documentation xml:lang="DE">Name des Bestimmungshafens</xsd:documentation>
								</xsd:annotation>
								<xsd:restriction base="xsd:string">
									<xsd:maxLength value="20"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="ShipName" minOccurs="0">
							<xsd:simpleType>
								<xsd:annotation>
									<xsd:documentation>name of ship (ocean vessel)</xsd:documentation>
									<xsd:documentation xml:lang="DE">Schiffsname (Seeschiff)</xsd:documentation>
								</xsd:annotation>
								<xsd:restriction base="xsd:string">
									<xsd:maxLength value="25"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="ReleaseNumber" minOccurs="0">
				<xsd:simpleType>
					<xsd:annotation>
						<xsd:documentation>code - defined by the owner of the container - used to verify the release of the container by the depot or quay operator</xsd:documentation>
						<xsd:documentation xml:lang="DE">Freistellungsnummer</xsd:documentation>
					</xsd:annotation>
					<xsd:restriction base="xsd:string">
						<xsd:maxLength value="15"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="TemperatureDetail" type="TemperatureDef" minOccurs="0"/>
			<xsd:element name="LoadingRequestCode" type="LoadingRequestDef" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="TransportWagonDef">
		<xsd:sequence>
			<xsd:element name="WagonNumber" type="WagonNumberDef" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="FurtherTransportRelatedDataDef">
		<xsd:sequence>
			<xsd:element name="Content" minOccurs="0">
				<xsd:simpleType>
					<xsd:annotation>
						<xsd:documentation>textual description of the content</xsd:documentation>
						<xsd:documentation xml:lang="DE">Warenbeschreibung</xsd:documentation>
					</xsd:annotation>
					<xsd:restriction base="xsd:string">
						<xsd:maxLength value="200"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="Commodity" minOccurs="0">
				<xsd:simpleType>
					<xsd:annotation>
						<xsd:documentation>NHM-Code describing the shipped good.</xsd:documentation>
						<xsd:documentation xml:lang="DE">Warencode nach NHM</xsd:documentation>
					</xsd:annotation>
					<xsd:restriction base="xsd:string">
						<xsd:length value="6"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="EquipmentDetail" type="EquipmentDetailsDef" minOccurs="0"/>
			<xsd:element name="PoolPalletDetail" minOccurs="0">
				<xsd:complexType>
					<xsd:annotation>
						<xsd:documentation>one of the quanities must be specified</xsd:documentation>
						<xsd:documentation xml:lang="DE">Tauschpaletten, mind. eine Anzahl muss angegeben sein</xsd:documentation>
					</xsd:annotation>
					<xsd:sequence>
						<xsd:element name="QuantityEuroPallet" minOccurs="0">
							<xsd:simpleType>
								<xsd:restriction base="xsd:positiveInteger">
									<xsd:maxInclusive value="999"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
						<xsd:element name="QuantityBox" minOccurs="0">
							<xsd:simpleType>
								<xsd:restriction base="xsd:positiveInteger">
									<xsd:maxInclusive value="999"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:element>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>
