<?xml version="1.0" encoding="UTF-8"?>
<!--
	Limitations of Liability:
	
 1.  This material is provided "As Is" and neither ATA nor any person who has contributed to the creation, revision or maintenance of the material makes any representations or warranties, express or implied, including but not limited to, warranties of merchantability or fitness for any particular purpose.

2.  Neither ATA nor any person who has contributed to the creation, revision or maintenance of this material shall be liable for any direct, indirect, special or consequential damages or any other liability arising from any use of this material.

3.  Revisions to this document may occur after its issuance.  The user is responsible for determining if revisions to the material contained in this document have occurred and are applicable.  
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="3.00" id="R2006.1">
	<xs:include schemaLocation="ReliabilityCommonTypes.xsd"/>
	<xs:annotation>
		<xs:documentation>Version Number: 1.00</xs:documentation>
		<xs:documentation>Initial Revision Number:  2004.1</xs:documentation>
		<xs:documentation>Initial Revision Date:  March 2004</xs:documentation>
		<xs:documentation>Revision Comments:  Initial revision</xs:documentation>
	</xs:annotation>
	<xs:annotation>
		<xs:documentation>Version Number: 2.00</xs:documentation>
		<xs:documentation>Revision Date:  March 2005</xs:documentation>
		<xs:documentation>Revision Comments:  Changed the "version" attribute in the "schema" element to reference the global attribute, "version" in ATA_CommonTypes</xs:documentation>
		<xs:documentation>Revision Comments:  Changed format of the "version" attribute to N.NN</xs:documentation>
		<xs:documentation>Revision Comments:  Incremented version number as a Major Revision due to change of element IMC to TSK in ScheduledMaintenanceDetailsSegmentType in ReliabilityCommonTypes.xsd</xs:documentation>
	</xs:annotation>
	<xs:annotation>
		<xs:documentation>Version Number: 3.00</xs:documentation>
		<xs:documentation>Revision Date:  March 2006</xs:documentation>
		<xs:documentation>Revision Comments:  Changed optional element AEM (Aircraft Engine/APU Mode) to mandatory in EngineInformationSegmentType in Reliability Common Types Schema</xs:documentation>
		<xs:documentation>Revision Comments:  Changed name of element WDT (Work Order Description) to WOT in CSDD_MM Schema</xs:documentation>
		<xs:documentation>Revision Comments:  Added optional elements ATA (ATA Standard Number) and DTA (Discrepancy ATA Standard Number) to ScheduledMaintenanceDetailsSegmentType in Reliability Common Types Schema</xs:documentation>
		<xs:documentation>Revision Comments:  Added optional elements DOI (Installation Date) and PML (Part Modification Level) to RemovedPartInformationSegmentType-ScheduledMaintenance in Reliability Common Types Schema</xs:documentation>
		<xs:documentation>Revision Comments:  Added optional element APT (Aircraft Engine/APU Position Text) to RemovedPartInformationSegmentType-ScheduledMaintenance and InstalledPartInformationSegmentType-ScheduledMaintenance in Reliability Common Types Schema</xs:documentation>
		<xs:documentation>Revision Comments:  Deleted optional element EPC (Engine Position Identifier) from RemovedPartInformationSegmentType-ScheduledMaintenance and InstalledPartInformationSegmentType-ScheduledMaintenance in Reliability Common Types Schema</xs:documentation>
<xs:documentation>Revision Comments:  Added optional elements ATT_Segment  to RemovedPartInformationSegmentType-ScheduledMaintenance in Reliability Common Types Schema</xs:documentation>
<xs:documentation>Revision Comments:  Added optional elements IAT_Segment  to InstalledPartInformationSegmentType-ScheduledMaintenance in Reliability Common Types Schema</xs:documentation>
	</xs:annotation>
	<xs:element name="ScheduledMaintenance">
		<xs:annotation>
			<xs:documentation>The root element for the Scheduled Maintenance message.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="HDR_Segment" type="HeaderSegmentType">
					<xs:annotation>
						<xs:documentation>This segment is mandatory. It describes where the data is coming from, which operator it pertains to, and which reporting period it pertains to. It is provided only once when reporting scheduled maintenance data by aircraft serial number. </xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element ref="ScheduledMaintenanceEvents" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute ref="version" use="required"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="ScheduledMaintenanceEvents">
		<xs:annotation>
			<xs:documentation>This element encapsulates all information for scheduled maintenance related to a single aircraft.  It may be repeated for multiple aircraft.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="AID_Segment" type="AirframeInformationSegmentType">
					<xs:annotation>
						<xs:documentation>This segment is mandatory. It identifies the aircraft upon which the scheduled maintenance was performed.  It wil be provided once for each aircraft serial number for which maintenance data is being reported.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:choice>
					<xs:element ref="ScheduledMaintenanceDetails" maxOccurs="unbounded"/>
					<xs:element ref="WorkPackageDetails" maxOccurs="unbounded"/>
				</xs:choice>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="WorkPackageDetails">
		<xs:annotation>
			<xs:documentation>This element associates scheduled maintenance details with work package information.  It is used if an operator issues work authorization by packages that include MRB-type scheduled maintenance together with deferred maintenance etc.   It may be provided once for each scheduled maintenance task performed on a given aircraft serial number.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="WPI_Segment" type="WorkPackageInformationSegmentType">
					<xs:annotation>
						<xs:documentation>This segment is conditional. It describes a work package to which a scheduled maintenance event applies.   It may be provided once for each scheduled maintenance task performed on a given aircraft serial number.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element ref="ScheduledMaintenanceDetails" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="ScheduledMaintenanceDetails">
		<xs:annotation>
			<xs:documentation>This element encapsulates the maintenance details for a specific aircraft.  It may be repeated for multiple tasks on a single aircraft.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="HCD_Segment" type="ScheduledMaintenanceDetailsSegmentType">
					<xs:annotation>
						<xs:documentation>This segment is mandatory.  It describes the scheduled maintenance event.  It will be provided once for each scheduled maintenance task on a given aircraft serial number.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="CMR_Segment" type="CMR_ALI_SegmentType" minOccurs="0">
					<xs:annotation>
						<xs:documentation>This segment is conditional.  It is used to provide data on CMRs.  It may be provided once for each scheduled maintenance task on a given aircraft serial number.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="LNK_Segment" type="LinkingFieldsSegmentType-ScheduledMaintenance" minOccurs="0">
					<xs:annotation>
						<xs:documentation>This segment is conditional.  It is used to link the Scheduled Maintenance Event record to a Logbook record.  It may be provided once for each scheduled maintenance task on a given aircraft serial number.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="PAR_Segment" type="RemovedPartInformationSegmentType-ScheduledMaintenance" minOccurs="0" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>This segment is conditional. It describes the parts that were removed while performing a particular scheduled task. This segment may be provided once each for as many parts as were removed during the task.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="IPT_Segment" type="InstalledPartInformationSegmentType-ScheduledMaintenance" minOccurs="0" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>This segment is conditional. It describes the parts that were installed while performing a particular scheduled task. This segment may be provided once each for as many parts as were installed during the task.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="MCI_Segment" type="MaintenanceCostInformationSegmentType" minOccurs="0">
					<xs:annotation>
						<xs:documentation>This segment is conditional. It is used to report cost data associated with the scheduled maintenance task.  It may be provided once for each scheduled maintenance task on a given aircraft serial number.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="EID_Segment" type="EngineInformationSegmentType" minOccurs="0" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>This segment is conditional. It is used if the scheduled maintenance task being reported pertains to a particular engine.  It may be provided once for each engine on the aircraft.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="API_Segment" type="APU_InformationSegmentType" minOccurs="0" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>This segment is conditional. It is used if the scheduled maintenance task being reported pertains to a particular APU.  It may be provided once for each APU on the aircraft.</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>
