<?xml version="1.0" encoding="UTF-8"?>
<xd:schema xmlns:_="urn:iso:std:iso:20022:tech:xsd:pain.002.001.10" xmlns:doc="AT-Documentation" xmlns:xd="http://www.w3.org/2001/XMLSchema" xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" targetNamespace="urn:iso:std:iso:20022:tech:xsd:pain.002.001.10" elementFormDefault="qualified" vc:minVersion="1.1">
	<xd:annotation>
		<xd:documentation>
			<doc:source>
				<doc:line>PSA Payment Services Austria</doc:line>
				<doc:line>Edited by Hendrik Muus</doc:line>
			</doc:source>
			<doc:useCase>
				<doc:line>Definition for validation for use in Austria</doc:line>
				<doc:line>Payment Status Report, i.e. status of execution of initiated payments</doc:line>
			</doc:useCase>
			<doc:changeLog>
				<doc:date on="2024-04-04">
					<doc:line>correct pattern of ISODateTime</doc:line>
					<doc:line>Release as Version 4</doc:line>
				</doc:date>
				<doc:date on="2023-10-18">
					<doc:line>correct pattern of ISODateTime</doc:line>
					<doc:line>Release as Version 3</doc:line>
				</doc:date>
				<doc:date on="2023-06-23">
					<doc:line>add optional OrgnlUETR under CstmrPmtStsRpt/OrgnlPmtInfAndSts/TxInfAndSts</doc:line>
					<doc:line>Release as Version 2</doc:line>
				</doc:date>
				<doc:date on="2023-03-10">
					<doc:line>typo corrections and sort of elements</doc:line>
					<doc:line>Release as Version 1</doc:line>
				</doc:date>
			</doc:changeLog>
			<doc:notes>Strukturfestlegungen 12/2015 plus neue Status

Die drei Ebenen des pain.002, Group (Grp, 'OrgnlGrpInfAndSts'), PaymentInformation (PmtInf, 'OrgnlPmtInfAndSts') und Transaction (tx, 'OrgnlPmtInfAndSts'/'TxInfAndSts') beziehen sich auf eine übermittelte Nachricht pain.001/008 (Grp), die darin enthaltenen Bestände (PmtInf) und die Transaktionen (Tx) in den Beständen.

Innerhalb einer Nachricht können sich mehrere Bestandsebenen auf den gleichen Auftragsbestand beziehen und erhalten gleichlautende OrgnlPmtInfId.

Der Zustand einer Ebene gilt für alle darunterliegenden Ebenen (Vererbung).

┌──────┬─────┬────────────────────────────────────────────────────────────────────────────────┐
│Level │  n  │                                   Ausprägung                                   │
├──────┴─────┼──────┬───────┬────────┬───────┬────────┬──────┬──────┬────────┬─────────┬──────┤
│            │  1   │  2a   │   2b   │  2c   │   2d   │  3a  │  3b  │   3c   │   3d    │  3e  │
├──────┬─────┼──────┼───────┴────────┴───────┴────────┼──────┴──────┴────────┴─────────┴──────┤
│Grp   │1..1 │ RJCT │       AC(TC/CP/SP/SC/CC)º       │                 PARTº                 │
├──────┼─────┼──────┼───────────────────┬─────────────┼──────┬──────┬──────────────────┬──────┤
│PmtInf│0..n │ ---  │AC(TC/CP/SP/SC/CC)¹│    ACWC     │ RJCT │PART² │AC(TC/CP/SP/SC/CC)│ACWC³ │
├──────┼─────┼──────┼─────────┬─────────┼──────┬──────┼──────┼──────┼─────────┬────────┼──────┤
│Tx    │0..n │ ---  │   ---   │  ACWC   │ ---  │ ACWC │ ---  │ RJCT │   ---   │  ACWC  │ ---  │
└──────┴─────┴──────┴─────────┴─────────┴──────┴──────┴──────┴──────┴─────────┴────────┴──────┘
º	Soll mit nur einem pain.002 ein vollständiges Bild zu einer Nachricht erzeugt werden, werden 2a-2d miteinander kombiniert, wenn keine RJCT vorliegen oder es werden 3a-3e miteinander kombiniert, wenn RJCT vorliegen.
¹	Zwingend gleicher Zustand wie eine Ebene höher.
²	Bei vollständiger Auskunft in einer Nachricht mindestens mit einem AC(TC/CP/SP/SC/CC) des gleichen Bestands.
³	Zwingend mit einem AC(TC/CP/SP/SC/CC) des gleichen Bestands in der gleichen Nachricht.

1) die gesamte Nachricht wird zurückgewiesen

2a) die gesamte Nachricht wird mit angegebenem Zustand akzeptiert
2b) wie 2a, jedoch gibt es bei einer oder mehreren Transaktionen Änderungen
2c) wie 2a, jedoch werden bei einem oder mehreren Beständen Korrekturen vorgenommen
2d) wie 2c, jedoch gibt es bei einer oder mehreren Transaktionen zusätzliche Änderungen

3a) die betroffenen Bestände werden zurückgewiesen
3b) die betroffenen Transaktionen werden zurückgewiesen
3c) die betroffenen Bestände werden akzeptiert
3d) wie 3c, jedoch gibt es bei einer oder mehreren Transaktionen Änderungen
3e) nur in Verbindung mit 3c/d für vorgenommene Korrekturen an Beständen

Die textlich gegebenen Gründe haben einen normierten Aufbau
┌─────────┬───────────────────────────┬──────────────┬────────────────────────────────┬──────────────────────────────────┐
│Schlüssel│         Bedeutung         │   Auslöser   │             Inhalt             │Beispiel                          │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  IACC   │     InitiatorAccount      │       *      │      IBAN des Einreichers      │IACC:AT015432101234567890         │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  TACC   │    TransactionAccount     │       *      │      IBAN der Gegenseite       │TACC:AT015432101234567890         │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  SRDT   │   StatusReachedDateTime   │       *      │         Zustands Datum         │SRDT:2015-08-12T12:53:48          │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  NCDT   │     NewCollectionDate     │     TM01     │          Neues Datum           │NCDT:2015-08-12                   │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  NEDT   │     NewExecutionDate      │     TM01     │          Neues Datum           │NEDT:2015-08-12                   │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  SBIC   │       SubmittedBIC        │  RC06/RC07   │         Erhaltene BIC          │SBIC:ABCDATWWXXX                  │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  CBIC   │       CorrectedBIC        │  RC06/RC07   │            Neue BIC            │CBIC:ABCDATWWXXX                  │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  SIBN   │       SubmittedIBAN       │AC01/AC02/AC03│         Erhaltene IBAN         │SIBN:AT015432101234567890         │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  CIBN   │       CorrectedIBAN       │AC01/AC02/AC03│           Neue IBAN            │CIBN:AT015432101234567890         │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  CEID   │    CorrectedEndToEndId    │ Zeichensatz  │   Weitergegebene EndToEndId    │CEID:Aufw.ndungen Nieder.sterreich│
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  CCRF   │CorrectedCreditorReference │ Zeichensatz  │Weitergegebene CreditorReference│CCRF:Zuw.ndungen Nieder.sterreich │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  ERTC   │ErroneousTransactionCounter│     RJCT     │       Ermittelter Zähler       │ERTC:27                           │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  ERTS   │  ErroneousTransactionSum  │     RJCT     │        Ermittelte Summe        │ERTS:24567.3                      │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  ERME   │  ErroneousMessageElement  │     RJCT     │Pfad zum fehlerhaften Element in│ERME:PmtInf(3)CdtTrfTxInf(5)Am    │
│         │                           │              │der Form Element(z)Element(z)...│t(0)InstdAmt(0):Betrag fehlerhaft │
│         │                           │              │, wobei z der mit 0 beginnenden │                                  │
│         │                           │              │Zähler des Vorkommens ist       │                                  │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  NARR   │         Narrative         │       *      │            Freitext            │NARR:Leider kann die ...          │
└─────────┴───────────────────────────┴──────────────┴────────────────────────────────┴──────────────────────────────────┘</doc:notes>
			<doc:notes>Fixing of structure 12/2015 plus new status

The three levels of a pain.002, Group (Grp, 'OrgnlGrpInfAndSts'), PaymentInformation (PmtInf, 'OrgnlPmtInfAndSts') and Transaction (tx, 'OrgnlPmtInfAndSts'/'TxInfAndSts') are relating to a submitted message pain.001/008 (Grp), the batches in there (PmtInf) and the transactions (Tx) in the batches.

Within one message multiple batch levels can relate to the same submitted batch and therefore have the same OrgnlPmtInfId.

The status of a level is valid for all belonging sub levels (inheritance).

┌──────┬─────┬────────────────────────────────────────────────────────────────────────────────┐
│Level │  n  │                                   Ausprägung                                   │
├──────┴─────┼──────┬───────┬────────┬───────┬────────┬──────┬──────┬────────┬─────────┬──────┤
│            │  1   │  2a   │   2b   │  2c   │   2d   │  3a  │  3b  │   3c   │   3d    │  3e  │
├──────┬─────┼──────┼───────┴────────┴───────┴────────┼──────┴──────┴────────┴─────────┴──────┤
│Grp   │1..1 │ RJCT │       AC(TC/CP/SP/SC/CC)º       │                 PARTº                 │
├──────┼─────┼──────┼───────────────────┬─────────────┼──────┬──────┬──────────────────┬──────┤
│PmtInf│0..n │ ---  │AC(TC/CP/SP/SC/CC)¹│    ACWC     │ RJCT │PART² │AC(TC/CP/SP/SC/CC)│ACWC³ │
├──────┼─────┼──────┼─────────┬─────────┼──────┬──────┼──────┼──────┼─────────┬────────┼──────┤
│Tx    │0..n │ ---  │   ---   │  ACWC   │ ---  │ ACWC │ ---  │ RJCT │   ---   │  ACWC  │ ---  │
└──────┴─────┴──────┴─────────┴─────────┴──────┴──────┴──────┴──────┴─────────┴────────┴──────┘
º	To make a complete status image of a message with just one pain.002, 2a-2d are combined if no RJCT occur or 3a-3e are combined if RJCT occur.
¹	Mandatorily same status as level above.
²	with a complete status image of a message with just one pain.002 at least with one AC(TC/CP/SP/SC/CC) of same batch.
³	Mandatorily with AC(TC/CP/SP/SC/CC) of same batch of same message.

1) the whole message is rejected

2a) the whole message is accepted with quoted status
2b) as 2a, but changes occur on one or more transactions
2c) as 2a, but changes occur on one or more batches
2d) as 2c, but additional changes occur on one or more transactions

3a) some batches are rejected
3b) some transactions are rejected
3c) these batches are accepted
3d) as 3c, but changes occur on one or more transactions
3e) only in combination with 3c/d with changes on batches

The textual quoted reasons do have a standardised structure
┌─────────┬───────────────────────────┬──────────────┬────────────────────────────────┬──────────────────────────────────┐
│   Key   │          Meaning          │    Trigger   │             Content            │Example                           │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  IACC   │     InitiatorAccount      │       *      │    IBAN of initiating party    │IACC:AT015432101234567890         │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  TACC   │    TransactionAccount     │       *      │      IBAN of counter part      │TACC:AT015432101234567890         │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  SRDT   │   StatusReachedDateTime   │       *      │        Status date time        │SRDT:2015-08-12T12:53:48          │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  NCDT   │     NewCollectionDate     │     TM01     │            New date            │NCDT:2015-08-12                   │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  NEDT   │     NewExecutionDate      │     TM01     │            New date            │NEDT:2015-08-12                   │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  SBIC   │       SubmittedBIC        │  RC06/RC07   │          Received BIC          │SBIC:ABCDATWWXXX                  │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  CBIC   │       CorrectedBIC        │  RC06/RC07   │             New BIC            │CBIC:ABCDATWWXXX                  │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  SIBN   │       SubmittedIBAN       │AC01/AC02/AC03│          Received IBAN         │SIBN:AT015432101234567890         │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  CIBN   │       CorrectedIBAN       │AC01/AC02/AC03│            New IBAN            │CIBN:AT015432101234567890         │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  CEID   │    CorrectedEndToEndId    │Character set │      Forwarded EndToEndId      │CEID:Aufw.ndungen Nieder.sterreich│
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  CCRF   │CorrectedCreditorReference │Character set │  Forwarded CreditorReference   │CCRF:Zuw.ndungen Nieder.sterreich │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  ERTC   │ErroneousTransactionCounter│     RJCT     │       Calculated counter       │ERTC:27                           │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  ERTS   │  ErroneousTransactionSum  │     RJCT     │         Calculated sum         │ERTS:24567.3                      │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  ERME   │  ErroneousMessageElement  │     RJCT     │Path to erroneous element in the│ERME:PmtInf(3)CdtTrfTxInf(5)Am    │
│         │                           │              │format Element(z)Element(z)..., │t(0)InstdAmt(0):Amount incorrect  │
│         │                           │              │where by z is the counter of    │                                  │
│         │                           │              │occurence starting with 0       │                                  │
├─────────┼───────────────────────────┼──────────────┼────────────────────────────────┼──────────────────────────────────┤
│  NARR   │         Narrative         │              │           Free text            │NARR:Unfortunately we cant ...    │
└─────────┴───────────────────────────┴──────────────┴────────────────────────────────┴──────────────────────────────────┘</doc:notes>
		</xd:documentation>
	</xd:annotation>
	<!-- Include code lists -->
	<!--  ********************** start replace include nodes with copy of type definitions of schema to get stand-alone schema  -->
	<xd:include schemaLocation="pain.002.codelists.xsd"/>
	<!--  ********************** end replace include nodes with copy of type definitions of schema to get stand-alone schema  -->
	<!-- Redefinition through deriving types by restriction and add documentation -->
	<xd:redefine schemaLocation="pain.002.001.10.xsd">
		<!-- root element type -->
		<xd:complexType name="Document">
			<xd:complexContent>
				<xd:restriction base="_:Document">
					<xd:sequence>
						<xd:element name="CstmrPmtStsRpt" type="_:CustomerPaymentStatusReportV10">
							<xd:annotation>
								<xd:documentation xml:lang="de">Überweisungsnachricht.

Diese Version definiert die Beschränkungen der ISO-Struktur für die Verwendung in Österreich</xd:documentation>
								<xd:documentation xml:lang="en">Credit transfer message.

This version defines the restrictions of the ISO structure for use in Austria</xd:documentation>
							</xd:annotation>
						</xd:element>
					</xd:sequence>
				</xd:restriction>
			</xd:complexContent>
		</xd:complexType>
		<!-- complex types with complex content -->
		<xd:complexType name="CustomerPaymentStatusReportV10">
			<xd:complexContent>
				<xd:restriction base="_:CustomerPaymentStatusReportV10">
					<xd:sequence>
						<xd:element name="GrpHdr" type="_:GroupHeader86">
							<xd:annotation>
								<xd:documentation xml:lang="de">Nachrichtenkopf.

Grundlegende Informationen zur übermittelten Datei</xd:documentation>
								<xd:documentation xml:lang="en">Message header.

Basic information on transmitted file</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="OrgnlGrpInfAndSts" type="_:OriginalGroupHeader17">
							<xd:annotation>
								<xd:documentation xml:lang="de">Referenzinformationen.

Informationen zur Datei, auf den sich diese Datei bezieht</xd:documentation>
								<xd:documentation xml:lang="en">Reference information.

Information on file this file refers to</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="OrgnlPmtInfAndSts" type="_:OriginalPaymentInstruction32" minOccurs="0" maxOccurs="unbounded">
							<xd:annotation>
								<xd:documentation xml:lang="de">Informationen zu Beständen.

Verpflichtend, wenn OrgnlGrpInfAndSts/GrpSts ungleich RJCT (Fall 2a-d,3a-e).
Ungenutzt, wenn OrgnlGrpInfAndSts/GrpSts gleich RJCT (Fall 1), es sei denn, es werden Daten aus einem pacs.002 weitergeleitet.</xd:documentation>
								<xd:documentation xml:lang="en">Information on batches.

Mandatory, when OrgnlGrpInfAndSts/GrpSts is not RJCT (Case 2a-d,3a-e).
Not used, when OrgnlGrpInfAndSts/GrpSts is RJCT (Case 1), unless data from a pacs.002 are forwarded.</xd:documentation>
							</xd:annotation>
						</xd:element>
					</xd:sequence>
					<xd:assert test="if(_:OrgnlGrpInfAndSts/_:GrpSts eq 'RJCT') then (count(_:OrgnlPmtInfAndSts) eq 0) else (count(_:OrgnlPmtInfAndSts) ge 1)">
						<xd:annotation>
							<xd:documentation xml:lang="de">Bei RJCT keine, sonst weitere Level</xd:documentation>
							<xd:documentation xml:lang="en">RJCT no, otherwise further level</xd:documentation>
						</xd:annotation>
					</xd:assert>
					<xd:assert test="if(_:OrgnlGrpInfAndSts/_:GrpSts eq 'PART') then (
							count(_:OrgnlPmtInfAndSts[/_:PmtInfSts eq 'RJCT']/_:TxInfAndSts) eq 0 and
							count(_:OrgnlPmtInfAndSts[/_:PmtInfSts eq 'ACWC']/_:TxInfAndSts) eq 0 and
							_:OrgnlPmtInfAndSts[/_:PmtInfSts eq 'PART']/_:TxInfAndSts/_:TxSts eq 'RJCT') else (
							_:OrgnlPmtInfAndSts/_:PmtInfSts eq 'ACWC' or
							_:OrgnlPmtInfAndSts/_:PmtInfSts eq _:OrgnlGrpInfAndSts/_:GrpSts
							)">
						<xd:annotation>
							<xd:documentation xml:lang="de">Code-Kombinationen der verschiedenen Ebenen</xd:documentation>
							<xd:documentation xml:lang="en">Code combinations of the various levels</xd:documentation>
						</xd:annotation>
					</xd:assert>
				</xd:restriction>
			</xd:complexContent>
		</xd:complexType>
		<xd:complexType name="GroupHeader86">
			<xd:complexContent>
				<xd:restriction base="_:GroupHeader86">
					<xd:sequence>
						<xd:element name="MsgId" type="_:Max35Text_REF">
							<xd:annotation>
								<xd:documentation xml:lang="de">Technische Referenz der Übermittlungsdatei.

Eindeutigkeit über mindestens 30 Tage ist herzustellen.
Beschränken Sie sich für einen sicheren Ablauf auf Buchstaben, Ziffern und Bindestrich.
Eindeutigkeit erreicht man zB einfach über die Kombination des Datums mit einem Tageszähler</xd:documentation>
								<xd:documentation xml:lang="en">Technical reference of transmitted file.

Ensure uniqueness for at least 30 days.
For save processing limit yourselves to digits, letters and minus sign.
Uniqueness is simple achievable e.g. with combining the date with a daily counter</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="CreDtTm" type="_:ISODateTime">
							<xd:annotation>
								<xd:documentation xml:lang="de">Dateierzeugungsdatum und -zeit

Lokale Zeit mit Zeitoffset oder UTC</xd:documentation>
								<xd:documentation xml:lang="en">File creation date and time

Local time with time offset or UTC</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="DbtrAgt" type="_:BranchAndFinancialInstitutionIdentification6_Sender" minOccurs="0">
							<xd:annotation>
								<xd:documentation xml:lang="de">Identifikation des Debtor Instituts.

Bei CreditTransfer verpflichtend, sonst nicht genutzt.

Antwort auf einen pain.001</xd:documentation>
								<xd:documentation xml:lang="en">Identification of debtors bank.

At credit transfers mandatory, otherwise not used.

Response to a pain.001</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="CdtrAgt" type="_:BranchAndFinancialInstitutionIdentification6_Sender" minOccurs="0">
							<xd:annotation>
								<xd:documentation xml:lang="de">Identifikation des Creditor Instituts.

Bei DirectDebit verpflichtend, sonst nicht genutzt.

Antwort auf einen pain.008</xd:documentation>
								<xd:documentation xml:lang="en">Identification of creditors bank.

At DirectDebit mandatory, otherwise not used.

Response to a pain.008</xd:documentation>
							</xd:annotation>
						</xd:element>
					</xd:sequence>
				</xd:restriction>
			</xd:complexContent>
		</xd:complexType>
		<xd:complexType name="OriginalGroupHeader17">
			<xd:complexContent>
				<xd:restriction base="_:OriginalGroupHeader17">
					<xd:sequence>
						<xd:element name="OrgnlMsgId" type="_:Max35Text_REF">
							<xd:annotation>
								<xd:documentation xml:lang="de">Original MsgId der Datei, auf den diese Nachricht referenziert.</xd:documentation>
								<xd:documentation xml:lang="en">Original MsgId of file this message refers to.</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="OrgnlMsgNmId" type="_:Max35Text_REF">
							<xd:annotation>
								<xd:documentation xml:lang="de">Original Dateityp der referenzierten Datei.

pain.001
pain.008</xd:documentation>
								<xd:documentation xml:lang="en">Original file type of referred file.

pain.001
pain.008
pain.007</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="OrgnlCreDtTm" type="_:ISODateTime">
							<xd:annotation>
								<xd:documentation xml:lang="de">Original CreDtTm der referenzierten Datei.</xd:documentation>
								<xd:documentation xml:lang="en">Original CreDtTm of referred file.</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="OrgnlNbOfTxs" type="_:Max15NumericText">
							<xd:annotation>
								<xd:documentation xml:lang="de">Original NbOfTxs der referenzierten Datei.</xd:documentation>
								<xd:documentation xml:lang="en">Original NbOfTxs of referred file.</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="OrgnlCtrlSum" type="_:DecimalNumber" minOccurs="0">
							<xd:annotation>
								<xd:documentation xml:lang="de">Original CtrlSum der referenzierten Datei.

Verpflichtend, wenn in der Original Nachricht vorhanden.</xd:documentation>
								<xd:documentation xml:lang="en">Original CtrlSum of referred file.

Mandatory, if available in original message.</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="GrpSts" type="_:AT_ExternalPaymentGroupStatus1Code_Grp">
							<xd:annotation>
								<xd:documentation xml:lang="de">Bestandsstatus.

Status mit Gültigkeit für alle in der Nachricht enthaltenen Umsätze.

Gesamt-Rückweisung RJCT (Fall 1)
Gesamt-Bestätigung AC(TC/CP/SP/SC/CC) (Fall 2a-d)
Teil-Auskünfte PART (Fall 3a-e)</xd:documentation>
								<xd:documentation xml:lang="en">Batch status.

Status valid for all contained transactions of message.

Complete reject RJCT (Case 1)
Complete accept AC(TC/CP/SP/SC/CC) (Case 2a-d)
Partial information PART (Case 3a-e)</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="StsRsnInf" type="_:StatusReasonInformation12_File" minOccurs="0">
							<xd:annotation>
								<xd:documentation xml:lang="de">Statuserläuterungen.

Verpflichtend bei GrpSts gleich RJCT.
Nicht benutzt bei anderen Kodes.</xd:documentation>
								<xd:documentation xml:lang="en">Explanation on status.

Mandatory when GrpSts is RJCT.
Not used for other codes.</xd:documentation>
							</xd:annotation>
						</xd:element>
					</xd:sequence>
					<xd:assert test="if (_:GrpSts eq 'RJCT') then (count(_:StsRsnInf) eq 1) else (count(_:StsRsnInf) eq 0)">
						<xd:annotation>
							<xd:documentation xml:lang="de">StsRsnInf nur bei Reject</xd:documentation>
							<xd:documentation xml:lang="en">StsRsnInf only with reject</xd:documentation>
						</xd:annotation>
					</xd:assert>
				</xd:restriction>
			</xd:complexContent>
		</xd:complexType>
		<xd:complexType name="OriginalPaymentInstruction32">
			<xd:complexContent>
				<xd:restriction base="_:OriginalPaymentInstruction32">
					<xd:sequence>
						<xd:element name="OrgnlPmtInfId" type="_:Max35Text_REF">
							<xd:annotation>
								<xd:documentation xml:lang="de">Bestandskontrollnummer des Originalbestands.</xd:documentation>
								<xd:documentation xml:lang="en">Batch control number of original batch.</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="OrgnlNbOfTxs" type="_:Max15NumericText" minOccurs="0">
							<xd:annotation>
								<xd:documentation xml:lang="de">Original NbOfTxs des übermittelten Bestands.

Verpflichtend, wenn in der Original Nachricht vorhanden.</xd:documentation>
								<xd:documentation xml:lang="en">Original NbOfTxs of remitted batch.

Mandatory, if available in original message.</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="OrgnlCtrlSum" type="_:DecimalNumber" minOccurs="0">
							<xd:annotation>
								<xd:documentation xml:lang="de">Original CtrlSum des übermittelten Bestands.

Verpflichtend, wenn in der Original Nachricht vorhanden.</xd:documentation>
								<xd:documentation xml:lang="en">Original CtrlSum of remitted batch.

Mandatory, if available in original message.</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="PmtInfSts" type="_:AT_ExternalPaymentGroupStatus1Code_Pmt">
							<xd:annotation>
								<xd:documentation xml:lang="de">Status mit Gültigkeit für alle enthaltenen Umsätze im Bestand.

Mit OrgnlGrpInfAndSts/GrpSts gleich AC(TC/CP/SP/SC/CC) (Fall 2a-d):
- Gesamt-Bestätigung AC(TC/CP/SP/SC/CC) (Fall 2a-b), ! gleicher Code in GrpSts ! 
- Gesamt-Änderung ACWC (Fall 2c-d)

Mit OrgnlGrpInfAndSts/GrpSts gleich PART (Fall 3a-e):
- Teil-Rückweisung RJCT (Fall 3a)
- Teil-Bestätigung AC(TC/CP/SP/SC/CC) (Fall 3c-d)
- Teil-Auskunft PART (Fall 3b)
- Teil-Änderung ACWC (Fall 3e), ! erfordert parallel Teil-Bestätigung AC(TC/CP/SP/SC/CC) (Fall 3c-d) mit gleicher OrgnlPmtInfId !</xd:documentation>
								<xd:documentation xml:lang="en">Status valid for all contained transactions of batch.

With OrgnlGrpInfAndSts/GrpSts is AC(TC/CP/SP/SC/CC) (Case 2a-d):
- Complete accept AC(TC/CP/SP/SC/CC) (Case 2a-b), ! same code as in GrpSts ! 
- Complete change ACWC (Case 2c-d)

With OrgnlGrpInfAndSts/GrpSts is PART (Case 3a-e):
- Partial reject RJCT (Case 3a)
- Partial accept AC(TC/CP/SP/SC/CC) (Case 3c-d)
- Partial information PART (Case 3b)
- Partial change ACWC (Case 3e), ! requires parallel partial accept AC(TC/CP/SP/SC/CC) (Case 3c-d) with same OrgnlPmtInfId !</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="StsRsnInf" type="_:StatusReasonInformation12_Pmt">
							<xd:annotation>
								<xd:documentation xml:lang="de">Statuserläuterungen.</xd:documentation>
								<xd:documentation xml:lang="en">Explanation on status.</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="TxInfAndSts" type="_:PaymentTransaction105" minOccurs="0" maxOccurs="unbounded">
							<xd:annotation>
								<xd:documentation xml:lang="de">Informationen zur Transaktion, auf den sich dieser Abschnitt bezieht.

Verpflichtend, wenn OrgnlPmtInfAndSts/PmtSts gleich PART (Fall 3b).
Ungenutzt, wenn OrgnlPmtInfAndSts/PmtSts gleich RJCT (Fall 3a), es sei denn es werden Daten aus einem pacs.002 weitergeleitet.
Ungenutzt, wenn OrgnlGrpInfAndSts/GrpSts gleich PART und OrgnlPmtInfAndSts/PmtSts gleich ACWC (Fall 3e).
Optional, wenn OrgnlPmtInfAndSts/PmtSts gleich AC(TC/CP/SP/SC/CC) (Fall 2b,3d).
Optional, wenn OrgnlGrpInfAndSts/GrpSts gleich AC(TC/CP/SP/SC/CC) und OrgnlPmtInfAndSts/PmtSts gleich ACWC (Fall 2d).</xd:documentation>
								<xd:documentation xml:lang="en">Information on transaction this section refers on.

Mandatory, when OrgnlPmtInfAndSts/PmtSts is PART (Case 3b).
Not used, when OrgnlPmtInfAndSts/PmtSts is RJCT (Case 3a), unless data from a pacs.002 are forwarded.
Not used, when OrgnlGrpInfAndSts/GrpSts is PART and OrgnlPmtInfAndSts/PmtSts is ACWC (Case 3e).
Optional, when OrgnlPmtInfAndSts/PmtSts is AC(TC/CP/SP/SC/CC) (Case 2b,3d).
Optional, when OrgnlGrpInfAndSts/GrpSts is AC(TC/CP/SP/SC/CC) and OrgnlPmtInfAndSts/PmtSts is ACWC (Case 2d).</xd:documentation>
							</xd:annotation>
						</xd:element>
					</xd:sequence>
				</xd:restriction>
			</xd:complexContent>
		</xd:complexType>
		<xd:complexType name="PaymentTransaction105">
			<xd:complexContent>
				<xd:restriction base="_:PaymentTransaction105">
					<xd:sequence>
						<xd:element name="StsId" type="_:Max35Text_REF">
							<xd:annotation>
								<xd:documentation xml:lang="de">Ersterfassungsreferenz der Transaktion.</xd:documentation>
								<xd:documentation xml:lang="en">First financial institutions reference identifying the transaction.</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="OrgnlEndToEndId" type="_:Max35Text_REF">
							<xd:annotation>
								<xd:documentation xml:lang="de">Original EndToEndId des Grundgeschäfts.</xd:documentation>
								<xd:documentation xml:lang="en">Original EndToEndId of basic underlying transaction.</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="OrgnlUETR" type="_:UUIDv4Identifier" minOccurs="0">
							<xd:annotation>
								<xd:documentation xml:lang="de">Zukünftige Verwendung. Original UETR des Grundgeschäfts.</xd:documentation>
								<xd:documentation xml:lang="en">Future use. Original UETR of basic underlying transaction.</xd:documentation>
							</xd:annotation>
						</xd:element>
            			<xd:element name="TxSts" type="_:AT_ExternalPaymentTransactionStatus1Code">
							<xd:annotation>
								<xd:documentation xml:lang="de">Status dieses Umsatzes.

Mit OrgnlPmtInfAndSts/PmtSts gleich PART (Fall 3b):
- Einzel-Rückweisung RJCT (Fall 3b)

Mit OrgnlPmtInfAndSts/PmtSts ungleich PART oder RJCT (Fall 2a-d,3c-d):
- Einzel-Änderung ACWC (Fall 2b,2d,3d)</xd:documentation>
								<xd:documentation xml:lang="en">Status of this transaction.

With OrgnlPmtInfAndSts/PmtSts is PART (Case 3b):
-Single reject RJCT (Case 3b)

With OrgnlPmtInfAndSts/PmtSts not PART or RJCT (Case 2a-d,3c-d):
- Single change ACWC (Case 2b,2d,3d)</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="StsRsnInf" type="_:StatusReasonInformation12_Tx">
							<xd:annotation>
								<xd:documentation xml:lang="de">Informationen zum Status.</xd:documentation>
								<xd:documentation xml:lang="en">Information on status.</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="ChrgsInf" type="_:Charges7" minOccurs="0" maxOccurs="unbounded">
							<xd:annotation>
								<xd:documentation xml:lang="de">Benutzt bei der Weitergabe von Informationen aus einem pacs.002</xd:documentation>
								<xd:documentation xml:lang="en">Used to forward information from a pacs.002</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="AcctSvcrRef" type="_:Max35Text_REF" minOccurs="0">
							<xd:annotation>
								<xd:documentation xml:lang="de">Benutzt bei der Weitergabe von Informationen aus einem pacs.002</xd:documentation>
								<xd:documentation xml:lang="en">Used to forward information from a pacs.002</xd:documentation>
							</xd:annotation>
						</xd:element>
						<xd:element name="OrgnlTxRef" type="_:OriginalTransactionReference28" minOccurs="0">
							<xd:annotation>
								<xd:documentation xml:lang="de">Original Elemente und Werte aus der referenzierten Nachricht. Benutzt bei der Weitergabe von Informationen aus einem pacs.002</xd:documentation>
								<xd:documentation xml:lang="en">Original elements and values from referred message. Used to forward information from a pacs.002</xd:documentation>
							</xd:annotation>
						</xd:element>
					</xd:sequence>
					<xd:assert test="if (_:TxSts eq 'ACWC') then (count(_:StsRsnInf/_:AddtlInf) ge 1) else true()">
						<xd:annotation>
							<xd:documentation xml:lang="de">Bei ACWC muss AddtlInf vorhanden sein</xd:documentation>
							<xd:documentation xml:lang="en">ACWC needs AddtlInf being present</xd:documentation>
						</xd:annotation>
					</xd:assert>
				</xd:restriction>
			</xd:complexContent>
		</xd:complexType>
		<xd:complexType name="StatusReason6Choice">
			<xd:complexContent>
				<xd:restriction base="_:StatusReason6Choice">
					<xd:choice>
						<xd:element name="Cd" type="_:ISO_ExternalStatusReason1Code">
							<xd:annotation>
								<xd:documentation xml:lang="de">Kodierter Grund.

Siehe externe Codeliste.</xd:documentation>
								<xd:documentation xml:lang="en">Coded reason.

See external code list.</xd:documentation>
							</xd:annotation>
						</xd:element>
					</xd:choice>
				</xd:restriction>
			</xd:complexContent>
		</xd:complexType>
		<!-- simple types -->
		<xd:simpleType name="ISODateTime">
			<xd:restriction base="_:ISODateTime">
				<xd:pattern value="\d{4}(-\d{2}){2}T\d{2}(:\d{2}){2}(\.\d{0,2}[1-9])?(Z|[-+]\d{2}(:\d{2})?)">
					<xd:annotation>
						<xd:documentation>ISO 8601 local time with time offset or UTC
Last digit of seconds fraction must not be 0. If no fraction given, delimeter "." is not allowed (3.2.7.2 Canonical representation in XML Schema Part 2: Datatypes Second Edition)
E.g.
2030-12-12T12:12Z
2030-12-12T12:12+02
2030-12-12T12:12+02:00
2030-12-12T12:12:12Z
2030-12-12T12:12:12+02
2030-12-12T12:12:12+02:00
2030-12-12T12:12:12.123Z
2030-12-12T12:12:12.123+02
2030-12-12T12:12:12.123+02:00</xd:documentation>
					</xd:annotation>
				</xd:pattern>
			</xd:restriction>
		</xd:simpleType>
	</xd:redefine>
	<!-- Attributes  -->
	<xd:attribute name="lastEdit" fixed="2024-04-04">
		<xd:annotation>
			<xd:documentation xml:lang="de">Datum der letzten Veränderung</xd:documentation>
			<xd:documentation xml:lang="en">Date of last change</xd:documentation>
		</xd:annotation>
	</xd:attribute>
	<xd:attribute name="replaceLastEdit" fixed="2023-10-18">
		<xd:annotation>
			<xd:documentation xml:lang="de">Ersetztes Versionsdatum</xd:documentation>
			<xd:documentation xml:lang="en">Replaced version date</xd:documentation>
		</xd:annotation>
	</xd:attribute>
	<!-- derived types -->
	<!-- complex types with complex content -->
	<xd:complexType name="BranchAndFinancialInstitutionIdentification6_Sender">
		<xd:complexContent>
			<xd:restriction base="_:BranchAndFinancialInstitutionIdentification6">
				<xd:sequence>
					<xd:element name="FinInstnId" type="_:FinancialInstitutionIdentification18_Sender">
						<xd:annotation>
							<xd:documentation xml:lang="de">Identifikation einer Bank im SEPA-Raum</xd:documentation>
							<xd:documentation xml:lang="en">Identification of a bank in SEPA area</xd:documentation>
						</xd:annotation>
					</xd:element>
				</xd:sequence>
			</xd:restriction>
		</xd:complexContent>
	</xd:complexType>
	<xd:complexType name="FinancialInstitutionIdentification18_Sender">
		<xd:complexContent>
			<xd:restriction base="_:FinancialInstitutionIdentification18">
				<xd:sequence>
					<xd:element name="BICFI" type="_:BICFIDec2014Identifier">
						<xd:annotation>
							<xd:documentation xml:lang="de">BIC des Kreditinstituts</xd:documentation>
							<xd:documentation xml:lang="en">BIC of financial institution</xd:documentation>
						</xd:annotation>
					</xd:element>
				</xd:sequence>
			</xd:restriction>
		</xd:complexContent>
	</xd:complexType>
	<xd:complexType name="OrganisationIdentification29_Status">
		<xd:complexContent>
			<xd:restriction base="_:OrganisationIdentification29">
				<xd:sequence>
					<xd:element name="AnyBIC" type="_:AnyBICDec2014Identifier">
						<xd:annotation>
							<xd:documentation xml:lang="de">BIC des Kreditinstitutes.</xd:documentation>
							<xd:documentation xml:lang="en">BIC of financial institution.</xd:documentation>
						</xd:annotation>
					</xd:element>
				</xd:sequence>
			</xd:restriction>
		</xd:complexContent>
	</xd:complexType>
	<xd:complexType name="Party38Choice_Status">
		<xd:complexContent>
			<xd:restriction base="_:Party38Choice">
				<xd:choice>
					<xd:element name="OrgId" type="_:OrganisationIdentification29_Status">
						<xd:annotation>
							<xd:documentation xml:lang="de">Identifikation der Organisation</xd:documentation>
							<xd:documentation xml:lang="en">Identification of organisation</xd:documentation>
						</xd:annotation>
					</xd:element>
				</xd:choice>
			</xd:restriction>
		</xd:complexContent>
	</xd:complexType>
	<xd:complexType name="PartyIdentification135_Status">
		<xd:complexContent>
			<xd:restriction base="_:PartyIdentification135">
				<xd:sequence>
					<xd:element name="Id" type="_:Party38Choice_Status">
						<xd:annotation>
							<xd:documentation xml:lang="de">Identifikation des Erzeugers</xd:documentation>
							<xd:documentation xml:lang="en">Identification of originator</xd:documentation>
						</xd:annotation>
					</xd:element>
				</xd:sequence>
			</xd:restriction>
		</xd:complexContent>
	</xd:complexType>
	<xd:complexType name="StatusReasonInformation12_File">
		<xd:complexContent>
			<xd:restriction base="_:StatusReasonInformation12">
				<xd:sequence>
					<xd:element name="Orgtr" type="_:PartyIdentification135_Status" minOccurs="0">
						<xd:annotation>
							<xd:documentation xml:lang="de">Erzeuger der Rückweisung</xd:documentation>
							<xd:documentation xml:lang="en">Originator of reject</xd:documentation>
						</xd:annotation>
					</xd:element>
					<xd:element name="Rsn" type="_:StatusReason6Choice">
						<xd:annotation>
							<xd:documentation xml:lang="de">Grund der Rückweisung.</xd:documentation>
							<xd:documentation xml:lang="en">Reason of reject.</xd:documentation>
						</xd:annotation>
					</xd:element>
					<xd:element name="AddtlInf" type="_:Max105Text_INFO" maxOccurs="unbounded">
						<xd:annotation>
							<xd:documentation xml:lang="de">Erläuterungen zur Rückweisung.

Verpflichtend mit "IACC:*iban*", ggf. mehrfach.
Zusätzlich verpflichtend, wenn Rsn gleich NARR, mit "NARR:*text*".
Zusätzlich optional, wenn Rsn ungleich NARR.

ACHTUNG: Vereinbarter Aufbau notwendig!</xd:documentation>
							<xd:documentation xml:lang="en">Explanations on reject.

Mandatory with "IACC:*iban*", occ. multiple.
Additionally mandatory, if Rsn is NARR, with "NARR:*text*".
Additionally optional, if Rsn not NARR.

ATTENTION: Agreed structure necessary!</xd:documentation>
						</xd:annotation>
					</xd:element>
				</xd:sequence>
			</xd:restriction>
		</xd:complexContent>
	</xd:complexType>
	<xd:complexType name="StatusReasonInformation12_Pmt">
		<xd:complexContent>
			<xd:restriction base="_:StatusReasonInformation12">
				<xd:sequence>
					<xd:element name="Orgtr" type="_:PartyIdentification135_Status" minOccurs="0">
						<xd:annotation>
							<xd:documentation xml:lang="de">Erzeuger des Status.</xd:documentation>
							<xd:documentation xml:lang="en">Originator of status.</xd:documentation>
						</xd:annotation>
					</xd:element>
					<xd:element name="Rsn" type="_:StatusReason6Choice">
						<xd:annotation>
							<xd:documentation xml:lang="de">Grund des Status.</xd:documentation>
							<xd:documentation xml:lang="en">Reason of status.</xd:documentation>
						</xd:annotation>
					</xd:element>
					<xd:element name="AddtlInf" type="_:Max105Text_INFO" maxOccurs="unbounded">
						<xd:annotation>
							<xd:documentation xml:lang="de">Erläuterungen zur Rückweisung.

Verpflichtend mit "IACC:*iban*"
Zusätzlich verpflichtend, wenn Rsn gleich NARR, mit "NARR:*text*".
Zusätzlich verpflichtend, wenn PmtInfSts gleich ACWC.
Zusätzlich optional, wenn Rsn ungleich NARR oder PmtInfSts ungleich ACWC.

ACHTUNG: Vereinbarter Aufbau notwendig!</xd:documentation>
							<xd:documentation xml:lang="en">Explanations on reject.

Mandatory with "IACC:*iban*", occ. multiple.
Additionally mandatory, if Rsn is NARR, with "NARR:*text*".
Additionally mandatory, if PmtInfSts is ACWC.
Additionally optional, if Rsn not NARR or PmtInfSts not ACWC.

ATTENTION: Agreed structure necessary!</xd:documentation>
						</xd:annotation>
					</xd:element>
				</xd:sequence>
			</xd:restriction>
		</xd:complexContent>
	</xd:complexType>
	<xd:complexType name="StatusReasonInformation12_Tx">
		<xd:complexContent>
			<xd:restriction base="_:StatusReasonInformation12">
				<xd:sequence>
					<xd:element name="Orgtr" type="_:PartyIdentification135_Status" minOccurs="0">
						<xd:annotation>
							<xd:documentation xml:lang="de">Erzeuger des Status.</xd:documentation>
							<xd:documentation xml:lang="en">Originator of status.</xd:documentation>
						</xd:annotation>
					</xd:element>
					<xd:element name="Rsn" type="_:StatusReason6Choice">
						<xd:annotation>
							<xd:documentation xml:lang="de">Grund des Status.</xd:documentation>
							<xd:documentation xml:lang="en">Reason of status.</xd:documentation>
						</xd:annotation>
					</xd:element>
					<xd:element name="AddtlInf" type="_:Max105Text_INFO" minOccurs="0" maxOccurs="unbounded">
						<xd:annotation>
							<xd:documentation xml:lang="de">Erläuterungen zur Rückweisung.

Verpflichtend, wenn Rsn gleich NARR, mit "NARR:*text*".
Verpflichtend, wenn TxSts gleich ACWC.
Optional, wenn TxSts gleich RJCT und Rsn ungleich NARR.

ACHTUNG: Vereinbarter Aufbau notwendig!</xd:documentation>
							<xd:documentation xml:lang="en">Explanations on reject.

Mandatory, when Rsn is NARR, with "NARR:*text*".
Mandatory, when TxSts is ACWC.
Optional, when TxSts is RJCT and Rsn not NARR.

ATTENTION: Agreed structure necessary!</xd:documentation>
						</xd:annotation>
					</xd:element>
				</xd:sequence>
				<xd:assert test="if (_:Rsn eq 'NARR') then (count(_:AddtlInf) ge 1) else true()">
					<xd:annotation>
						<xd:documentation xml:lang="de">Bei NARR muss AddtlInf vorhanden sein</xd:documentation>
						<xd:documentation xml:lang="en">NARR needs AddtlInf being present</xd:documentation>
					</xd:annotation>
				</xd:assert>
			</xd:restriction>
		</xd:complexContent>
	</xd:complexType>
	<!-- simple types -->
	<xd:simpleType name="Max105Text_INFO">
		<xd:restriction base="_:Max105Text">
			<xd:annotation>
				<xd:documentation xml:lang="de">Struktur für Zusatzinformationen

4 Stellen Kode für die Ermöglichung maschineller Verarbeitung, Doppelpunkt, Text zur menschlichen Interpretation</xd:documentation>
				<xd:documentation xml:lang="en">Structure for additional information

4 characters code enabling automated processing, colon, text for human interpretation</xd:documentation>
			</xd:annotation>
			<xd:pattern value="[A-Z0-9]{4}:.+">
				<xd:annotation>
					<xd:documentation>Remember that the pattern notation is governed by XML and XSD rules.
The regex is anchored to the whole string, which needs a ^ and a $ in other environments.
Entities like &#x09;, &amp;, &gt;, &lt; and &quot; need to be exchanged to their entity's meaning or other encoding in other environments.
The / might need to be escaped to \/ in other environments.</xd:documentation>
				</xd:annotation>
			</xd:pattern>
		</xd:restriction>
	</xd:simpleType>
	<xd:simpleType name="Max35Text_REF">
		<xd:restriction base="_:Max35Text">
			<xd:annotation>
				<xd:documentation xml:lang="de">Begrenzung des Zeichensatzes für Kodes, Referenzen und Identifikatoren

Erlaubte Struktur für Kodes, Referenzen und Identifikatoren nach EPC217-08 Best Practices SEPA Requirements for Character Set SSG.pdf
Ein Text oder Wert muss mindestens ein druckbares Zeichen enthalten, jedoch
startet nicht mit /
endet nicht mit /
enthält kein //</xd:documentation>
				<xd:documentation xml:lang="en">Limitation of character set for codes, references and identifications

Allowed structure for codes, references and identifications according EPC217-08 Best Practices SEPA Requirements for Character Set SSG.pdf
A text or value must contain at least one printable character, but
don't start with /
don't end with /
don't contain //</xd:documentation>
			</xd:annotation>
			<xd:pattern value="((([\-A-Za-z0-9+?:().,' ]+/)+[\-A-Za-z0-9+?:().,' ]+)|(( *[\-A-Za-z0-9+?:().,'])+ *))">
				<xd:annotation>
					<xd:documentation>Remember that the pattern notation is governed by XML and XSD rules.
The regex is anchored to the whole string, which needs a ^ and a $ in other environments.
Entities like &#x09;, &amp;, &gt;, &lt; and &quot; need to be exchanged to their entity's meaning or other encoding in other environments.
The / might need to be escaped to \/ in other environments.</xd:documentation>
				</xd:annotation>
			</xd:pattern>
		</xd:restriction>
	</xd:simpleType>
</xd:schema>