<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSpy v2006 U (http://www.altova.com) by Gudmundur Jokulsson (KSAT) -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:trans="http://cweb.ksat.no/cweb/schema/transfer" targetNamespace="http://cweb.ksat.no/cweb/schema/transfer" elementFormDefault="qualified" attributeFormDefault="unqualified" version="3.1.1" id="trans">
	<xsd:annotation>
		<xsd:documentation>
		    Copyright (c) 2006 KSAT, All Rights Reserved.
			File transfer report, describes oil service transport of a set of data files.
		</xsd:documentation>
	</xsd:annotation>
	<!-- ================================================================== -->
	<!-- Global element definitons -->
	<xsd:element name="oilReport" type="trans:OilReportType">
		<xsd:annotation>
			<xsd:documentation>Information about oil (alert) report sendt by e-mail</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="OilReportType">
		<xsd:sequence>
			<xsd:element name="mailTo" type="xsd:string" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Mail address to whom the oil report was sendt.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="mailBy" type="xsd:string">
				<xsd:annotation>
					<xsd:documentation>Name/signature by whom the oil report was sendt (operator at the provider).</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="mailTime" type="xsd:dateTime">
				<xsd:annotation>
					<xsd:documentation>When the oil report was sendt.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="file" type="trans:FileType">
		<xsd:annotation>
			<xsd:documentation>Information about a file that has been transferred as part of the file-set in question.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="FileType">
		<xsd:sequence>
			<xsd:element name="fileName" type="xsd:string">
				<xsd:annotation>
					<xsd:documentation>Name of the transferred file.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="fileSize" type="xsd:integer">
				<xsd:annotation>
					<xsd:documentation>Size of the transferred file.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="fileTime" type="xsd:dateTime">
				<xsd:annotation>
					<xsd:documentation>When transfer of the file was successfully completed.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ================================================================== -->
	<!--  transfer report (top level) element -->
	<xsd:element name="transfer" type="trans:TransferType">
		<xsd:annotation>
			<xsd:documentation>File transfer report, describes an oil service transport of a set of data files.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="TransferType">
		<xsd:sequence>
			<xsd:element name="provider" type="xsd:string">
				<xsd:annotation>
					<xsd:documentation>The name of the data provider (e.g. TPZ)</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="customer" type="xsd:string">
				<xsd:annotation>
					<xsd:documentation>The name of the customer receiving the data (e.g. EMSA)</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="requestID" type="xsd:string">
				<xsd:annotation>
					<xsd:documentation>The users requestID, (EMSA frameID), identifying the customers order for the files of this transfer</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="transferTime" type="xsd:dateTime">
				<xsd:annotation>
					<xsd:documentation>The point in time when this file-set transfer to the customer was successfully completed</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="reference" type="xsd:string" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Optional; Free text field for further reference at the data provider</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="trans:oilReport" minOccurs="0"/>
			<xsd:element ref="trans:file" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>
