<?xml version="1.0" encoding="UTF-8"?>
<!-- 
(c) 2003 Electronic Data Systems Corporation. All Rights Reserved. 
This software and related documentation are proprietary to EDS. 
LIMITATIONS TO U.S. GOVERNMENT RIGHTS.  UNPUBLISHED - RIGHTS 
RESERVED UNDER THE COPYRIGHT LAWS OF THE UNITED STATES. This 
computer software and related computer software documentation have 
been developed exclusively at private expense and are provided 
subject to the following rights:  If this computer software and 
computer software documentation qualify as "commercial items" (as 
that term is defined in FAR 2.101), their use, duplication or 
disclosure by the U.S. Government is subject to the protections 
and restrictions as set forth in the EDS commercial license for 
the software and/or documentation, as prescribed in FAR 12.212 
and FAR 27.405(b)(2)(i) (for civilian agencies) and in 
DFARS 227.7202-1(a) and DFARS 227.7202-3(a) (for the Department 
of Defense), or any successor or similar regulation, as applicable
or as amended from time to time. If this computer software and 
computer documentation do not qualify as "commercial items," then 
they are "restricted computer software" and are provided with 
"restrictive rights," and their use, duplication or disclosure by 
the U.S. Government is subject to the protections and restrictions 
as set forth in FAR 27.404(b) and FAR 52-227-14 (for civilian 
agencies), and DFARS 227.7203-5(c) and DFARS 252.227-7014 (for the 
Department of Defense), or any successor or similar regulation, as 
applicable or as amended from time to time. 

Electronic Data Systems Corporation, 5400 Legacy Drive, 
Plano, Texas 75024.
-->
<!--                                                                  -->
<!--                   In-Service (MRO) schema.                       -->
<!--                                                                  -->
<xsd:schema targetNamespace="http://www.plmxml.org/Schemas/PLMXMLSchema" xmlns:plm="http://www.plmxml.org/Schemas/PLMXMLSchema" xmlns="http://www.plmxml.org/Schemas/PLMXMLMROSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <xsd:include schemaLocation="PLMXMLSchema.xsd"/>
  <!-- -->
  <!-- ********************* Annotation ********************************** -->
  <!-- -->
  <xsd:annotation>
    <xsd:documentation xml:lang="en">    	 
		Types, elements and attributes for exporting the As-built structure    	  
	 </xsd:documentation>
    <xsd:appinfo source="http://www.plmxml.org/Schemas/PLMXMLMROSchema">
      <version name="PLMXMLMROSchema.xsd" date="2003-07-15" version="1.0" status="release"/>
    </xsd:appinfo>
  </xsd:annotation>
  <!-- -->
  <!-- *************************** RealisedProduct **********************-->
  <!-- -->
  <xsd:simpleType name="RealisedProductTraceableType">
    <xsd:restriction base="xsd:NMTOKEN">
      <xsd:enumeration value="repairable"/>
      <xsd:enumeration value="nonRepairable"/>
    </xsd:restriction>
  </xsd:simpleType>
  <!-- -->
  <xsd:complexType name="RealisedProductType">
    <xsd:annotation>
      <xsd:documentation>
      This represents a physical product, throughout its as-built/as-maintained lifecycle. 
      
      Attributes:
      
      manufacturerId     Id (part number) assigned by Manufacturer.
      mrbId              Id (part number) assigned by Material Review Board
      manufactureDate    Date (and time) of manufacture
      manufacturerRef    Ref to manufacturing Organisation 
      designRef          Reference to Product Revision from which this product was realised.   
      standardLife       StandardLife specified in given environment and operation conditions.
      actualLife         Actual Hours recorded by physical part.
      lifeLimitedPart    Whether the life of a part is limited.      
      orderDate          Physical Part Order Date.
      serialNumber       Serial Number if a serialised product 
      lot                Lot number if product is lot.
      traceablePartType  Whether the part is repairable or non-repairable.
      orderId            Physical Part order id.
    </xsd:documentation>
    </xsd:annotation>
    <xsd:complexContent>
      <xsd:extension base="plm:ProductType">
        <xsd:attribute name="manufacturerId" type="xsd:string" use="optional"/>
        <xsd:attribute name="mrbId" type="xsd:string" use="optional"/>
        <xsd:attribute name="manufactureDate" type="xsd:dateTime" use="optional"/>
        <xsd:attribute name="manufacturerRef" type="plm:anyURIType" use="optional"/>
        <xsd:attribute name="designRef" type="plm:anyURIType" use="optional"/>
        <xsd:attribute name="standardLife" type="xsd:duration" use="optional"/>
        <xsd:attribute name="actualLife" type="xsd:duration" use="optional"/>
        <xsd:attribute name="lifeLimitedPart" type="xsd:boolean" use="optional"/>
        <xsd:attribute name="orderDate" type="xsd:dateTime" use="optional"/>
        <xsd:attribute name="traceablePartType" type="plm:RealisedProductTraceableType" use="optional"/>
        <xsd:attribute name="orderId" type="xsd:string" use="optional"/>
        <xsd:attribute name="serialNumber" type="xsd:string" use="optional"/>
        <xsd:attribute name="lot" type="xsd:string" use="optional"/>
      </xsd:extension>
    </xsd:complexContent>
  </xsd:complexType>
  <xsd:element name="RealisedProduct" type="plm:RealisedProductType" substitutionGroup="plm:Product"/>
  <!-- -->
  <!-- ************************* RealisedProductRevision ****************************** -->
  <!-- -->
  <xsd:complexType name="RealisedProductRevisionType">
    <xsd:annotation>
      <xsd:documentation>
	   This represents a physical product, at a particular stage of maintainance.
	   It corresponds to STEP AP239 'product_as_realized'.
       
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexContent>
      <xsd:extension base="plm:ProductRevisionType"/>
    </xsd:complexContent>
  </xsd:complexType>
  <xsd:element name="RealisedProductRevision" type="plm:RealisedProductRevisionType" substitutionGroup="plm:ProductRevision"/>
  <!-- -->
  <!-- ************************* Facility ********************************** -->
  <!-- -->
  <xsd:complexType name="FacilityType" abstract="true">
    <xsd:annotation>
      <xsd:documentation>
	   Facility classes are defined to identify usage of physical parts in various facilities 
	   like Inventory, Repair Shop etc.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexContent>
      <xsd:extension base="plm:StructureBase"/>
    </xsd:complexContent>
  </xsd:complexType>
  <xsd:element name="Facility" type="plm:FacilityType" substitutionGroup="plm:Structure"/>
  <!-- -->
  <!-- ************************* Inventory ********************************** -->
  <!-- -->
  <xsd:complexType name="InventoryType">
    <xsd:annotation>
      <xsd:documentation>
	   Inventory class is defined to identify usage of physical parts in an Inventory.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexContent>
      <xsd:extension base="plm:FacilityType"/>
    </xsd:complexContent>
  </xsd:complexType>
  <xsd:element name="Inventory" type="plm:InventoryType" substitutionGroup="plm:Facility"/>
  <!-- -->
  <!-- ************************* RepairShop ********************************** -->
  <!-- -->
  <xsd:complexType name="RepairShopType">
    <xsd:annotation>
      <xsd:documentation>
	   RepairShop class is defined to identify usage of physical parts in a Repair Shop.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:complexContent>
      <xsd:extension base="plm:FacilityType"/>
    </xsd:complexContent>
  </xsd:complexType>
  <xsd:element name="RepairShop" type="plm:RepairShopType" substitutionGroup="plm:Facility"/>
  <!-- -->
</xsd:schema>
