<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:THM="APC:STUZZA:THM:container:001" xmlns="APC:STUZZA:payments:ISO:pain:001:001:02:austrian:002" targetNamespace="APC:STUZZA:THM:container:001" elementFormDefault="qualified" attributeFormDefault="qualified">
	<!-- Edited by Hendrik Muus, STUZZA, AT -->
	<!-- ***** Change log at end of document -->
	<!-- Imported name spaces -->
	<!-- All underlying schemata can be downloaded from www.stuzza.at/schemata  -->
	<!-- Pointer to resources of original name spaces can be extended with attribute "schemaLocation" pointing to lokal, network or internet file (or path if applicable) ; change to your needs  -->
	<xs:import namespace="APC:STUZZA:payments:ISO:pain:001:001:02:austrian:002" schemaLocation="ISO.pain.001.001.02.austrian.002.xsd"/>
	<!-- Version information -->
	<xs:attribute name="version" fixed="001">
		<xs:annotation>
			<xs:documentation xml:lang="de">Version dieses Schemas</xs:documentation>
			<xs:documentation xml:lang="en">Schema version</xs:documentation>
		</xs:annotation>
	</xs:attribute>
	<xs:attribute name="lastEdit" fixed="2009-01-28">
		<xs:annotation>
			<xs:documentation xml:lang="de">Datum der letzten Veränderung</xs:documentation>
			<xs:documentation xml:lang="en">Date of last change</xs:documentation>
		</xs:annotation>
	</xs:attribute>
	<xs:attribute name="replaceVersion" fixed="001">
		<xs:annotation>
			<xs:documentation xml:lang="de">Ersetzte Version</xs:documentation>
			<xs:documentation xml:lang="en">Replaced version</xs:documentation>
		</xs:annotation>
	</xs:attribute>
	<xs:attribute name="replaceLastEdit" fixed="2009-01-16">
		<xs:annotation>
			<xs:documentation xml:lang="de">Ersetztes Versionsdatum</xs:documentation>
			<xs:documentation xml:lang="en">Replaced version date</xs:documentation>
		</xs:annotation>
	</xs:attribute>
	<xs:attribute name="validityStart" fixed="2009-10-01">
		<xs:annotation>
			<xs:documentation xml:lang="de">Beginn der Gültigkeit</xs:documentation>
			<xs:documentation xml:lang="en">Start of validity</xs:documentation>
		</xs:annotation>
	</xs:attribute>
	<xs:attribute name="validityEnd" fixed="with validity start of version 3">
		<xs:annotation>
			<xs:documentation xml:lang="de">Ende der Gültigkeit</xs:documentation>
			<xs:documentation xml:lang="en">End of validity</xs:documentation>
		</xs:annotation>
	</xs:attribute>
	<!-- The documents root -->
	<xs:element name="THMPaymentsContainer" type="THM:THMPaymentContainerType">
		<xs:annotation>
			<xs:documentation xml:lang="de">Container für THM Nachrichten zwischen Bank und Kunde</xs:documentation>
			<xs:documentation xml:lang="en">Container for THM messages between customers and banks</xs:documentation>
		</xs:annotation>
	</xs:element>
	<!-- The roots type definition -->
	<xs:complexType name="THMPaymentContainerType">
		<xs:sequence>
			<xs:element name="CntnrId">
				<xs:annotation>
					<xs:documentation>Container Identification</xs:documentation>
					<xs:documentation xml:lang="de">Einmalige und eindeutige Identifikation des Containers. Die im Pattern definierte Struktur (YYMMDDhhmmss....) sichert 100 Jahre Eindeutigkeit bei gleichzeitig ungefähr 1300 möglichen Containern je Sekunde. UTC Zeit</xs:documentation>
					<xs:documentation xml:lang="en">Unique and unambiguous identification of the container. Structure defined in pattern (YYMMDDhhmmss..) ensures 100 year uniqueness while allowing about 1300 containers per second. UTC time</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:pattern value="\d\d((0[1-9])|(1[0-2]))((0[1-9])|([1-2]\d)|(3[0-1]))(([0-1]\d)|(2[0-3]))([0-5]\d)([0-5]\d)[A-Z0-9]{0,2}"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="Msgs" type="THM:MsgsType" maxOccurs="9999">
				<xs:annotation>
					<xs:documentation xml:lang="de">Maximal 9999 Bestände folgen</xs:documentation>
					<xs:documentation xml:lang="en">A maximum of 9999 batches or bulks follow</xs:documentation>
				</xs:annotation>
				<!--hint: some parsers seem to work quicker if this set to unbound. if you adapt your local copy accordingly, you need to safely ensure the maximum count with other mechanisms  -->
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!-- The messages element type definition -->
	<xs:complexType name="MsgsType">
		<xs:complexContent>
			<xs:extension base="Document">
				<xs:sequence>
					<xs:element name="Sgntr" type="THM:SgntrType">
						<xs:annotation>
							<xs:documentation xml:lang="de">Signatur
Unterschrift der Rechtsanwaltskammer  für THM Transaktionen</xs:documentation>
							<xs:documentation xml:lang="en">Signature
To apply the attorny chamber's signature to THM transactions</xs:documentation>
						</xs:annotation>
					</xs:element>
				</xs:sequence>
			</xs:extension>
			<!-- The customer to bank credit transfer messages -->
		</xs:complexContent>
	</xs:complexType>
	<!-- The signature type definition -->
	<xs:complexType name="SgntrType">
		<xs:sequence>
			<xs:element name="Sgntry" type="THM:SgntryType">
				<xs:annotation>
					<xs:documentation xml:lang="de">Unterzeichner</xs:documentation>
					<xs:documentation xml:lang="en">Signatory</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="CreDtTm">
				<xs:annotation>
					<xs:documentation xml:lang="de">Zeitstempel der Signatur</xs:documentation>
					<xs:documentation xml:lang="en">Timestamp of signature</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="THM:SgntrDtTm"/>
				</xs:simpleType>
			</xs:element>
			<xs:element name="ElctrncSgntr" type="THM:SgntrElctrncSgntr">
				<xs:annotation>
					<xs:documentation xml:lang="de">Daten der electronischen Signatur</xs:documentation>
					<xs:documentation xml:lang="en">Electronic signature data</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!-- The signatory type definition -->
	<xs:complexType name="SgntryType">
		<xs:sequence>
			<xs:element name="Nm" type="THM:SgntrNm">
				<xs:annotation>
					<xs:documentation xml:lang="de">Name oder Identifikation des Unterzeichners z.B. RAK</xs:documentation>
					<xs:documentation xml:lang="en">Name or identification of the signatory e.g. RAK</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Cd" type="THM:SgntrCd">
				<xs:annotation>
					<xs:documentation xml:lang="de">Kode von oder für den Unterzeichner z.B. Postleitzahl</xs:documentation>
					<xs:documentation xml:lang="en">Code assigned to or from signatory e.g. postal code</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!-- The signature name type definition -->
	<xs:simpleType name="SgntrNm">
		<xs:restriction base="THM:Max70Text"/>
	</xs:simpleType>
	<!-- The signature code type definition -->
	<xs:simpleType name="SgntrCd">
		<xs:restriction base="THM:Max16Text"/>
	</xs:simpleType>
	<!-- The signature date time type definition -->
	<xs:simpleType name="SgntrDtTm">
		<xs:restriction base="THM:ISODateTime">
			<xs:pattern value=".{19}"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- The signature electronic signature type definition -->
	<xs:simpleType name="SgntrElctrncSgntr">
		<xs:restriction base="THM:Max1025Text"/>
	</xs:simpleType>
	<!-- The copy of Max70Text type definition -->
	<xs:simpleType name="Max70Text">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="70"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- The copy of Max16Text type definition -->
	<xs:simpleType name="Max16Text">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="16"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- The copy of ISODateTime type definition -->
	<xs:simpleType name="ISODateTime">
		<xs:restriction base="xs:dateTime"/>
	</xs:simpleType>
	<!-- The copy of Max1025Text type definition -->
	<xs:simpleType name="Max1025Text">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1025"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- ***** Begin of change log -->
	<!-- 2009-01-16 -->
	<!-- shift repetion of sequence of elements of Msgs to Msgs itselves -->
	<!-- delete element Crdts -->
	<!-- change Msgs type to extension of type Document of importet pain.001.001.02 -->
	<!-- rearrage documentation to be german english -->
	<!-- 2009-01-28 -->
	<!-- add attribute schemalocation to import statement with file name of pain schema -->
	<!-- ***** End of change log -->
</xs:schema>
