<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="urn:FCA:xsd:FCA_FDBSR_1.3.1" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:FCA:xsd:FCA_FDBSR_1.3.1" elementFormDefault="qualified">
	<xs:element name="Document" type="Document"/>
	<xs:complexType name="Document">
		<xs:sequence>
			<xs:element name="ScrtstnRpstryFdb" type="SecuritisationRepositoryFeedbackV01"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="SecuritisationRepositoryFeedbackV01">
		<xs:annotation>
			<xs:documentation source="Name" xml:lang="EN">SecuritisationRepositoryFeedbackV01</xs:documentation>
			<xs:documentation source="Definition" xml:lang="EN">The feedback message is sent by the FCA to the reporting securitisation repository to provide the status of processing.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="FdbMsg" type="FeedbackMessage">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="EN">FeedbackMessage</xs:documentation>
					<xs:documentation source="Definition" xml:lang="EN">Processing Status Feedback</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="FeedbackMessage">
		<xs:annotation>
			<xs:documentation source="Name" xml:lang="EN">FeedbackMessage</xs:documentation>
			<xs:documentation source="Definition" xml:lang="EN">Provides details of the processing status.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="FileNm" type="Max100Text">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="EN">FileName</xs:documentation>
					<xs:documentation source="Definition" xml:lang="EN">Original name of the file for which this feedback is sent.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="FdbSts" type="FeedbackStatus">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="EN">FeedbackStatus</xs:documentation>
					<xs:documentation source="Definition" xml:lang="EN">Details the feedback for the file received.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="FeedbackStatus">
		<xs:annotation>
			<xs:documentation source="Name" xml:lang="EN">FeedbackStatus</xs:documentation>
			<xs:documentation source="Definition" xml:lang="EN">Provides the file level feedback.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Fdb" type="ReportingFeedbackStatus">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="EN">ReportingFeedbackStatus</xs:documentation>
					<xs:documentation source="Definition" xml:lang="EN">Provides the processing status for the file.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element maxOccurs="unbounded" minOccurs="0" name="VldtnRule" type="GenericValidationRuleIdentification1">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="EN">ValidationRule</xs:documentation>
					<xs:documentation source="Definition" xml:lang="EN">Provides the details of the rule which could not be validated.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="ReportingFeedbackStatus">
		<xs:annotation>
			<xs:documentation source="Name" xml:lang="EN">ReportingFeedbackStatus</xs:documentation>
			<xs:documentation source="Definition" xml:lang="EN">Provides the processing status for the file.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="ACPT">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="EN">Accepted</xs:documentation>
					<xs:documentation source="Definition" xml:lang="EN">The file has been accepted.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="RJCT">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="EN">Rejected</xs:documentation>
					<xs:documentation source="Definition" xml:lang="EN">The file has been rejected.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="CRPT">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="EN">CorruptedFile</xs:documentation>
					<xs:documentation source="Definition" xml:lang="EN">File containing the report is corrupted.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="GenericValidationRuleIdentification1">
		<xs:annotation>
			<xs:documentation source="Name" xml:lang="EN">GenericValidationRuleIdentification1</xs:documentation>
			<xs:documentation source="Definition" xml:lang="EN">Information for the identification of a validation rule.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Id" type="FileErrorReference">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="EN">Identification</xs:documentation>
					<xs:documentation source="Definition" xml:lang="EN">Unique and unambiguous identification of a validation rule.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Desc" type="Max10000Text">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="EN">Description</xs:documentation>
					<xs:documentation source="Definition" xml:lang="EN">Detailed error message for the validation failure.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="FileErrorReference">
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="collapse"/>
			<xs:pattern value="FIL-[0-9]{3,3}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="Max100Text">
		<xs:annotation>
			<xs:documentation source="Name" xml:lang="EN">Max100Text</xs:documentation>
			<xs:documentation source="Definition" xml:lang="EN">Specifies a character string with a maximum length of 100 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="100"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="Max10000Text">
		<xs:annotation>
			<xs:documentation source="Name" xml:lang="EN">Max10000Text</xs:documentation>
			<xs:documentation source="Definition" xml:lang="EN">Specifies a character string with a maximum length of 10000 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="10000"/>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>