<?xml version="1.0" encoding="UTF-8"?>
<!--

     Business Document Envelope Version 1.0
     Committee Specification 01  
     02 August 2015
     Copyright (c) OASIS Open 2015. All Rights Reserved.
     Source: http://docs.oasis-open.org/bdxr/bdx-bde/v1.0/cs01/xsd/

     
-->

<!--
  Library:           OASIS Business Document Envelope (BDE) 1.0 CS01
                     http://docs.oasis-open.org/bdxr/bde/V1.0/cs01/
  Release Date:      02 August 2015
  Module:            xsd/BDE-Envelope-1.0.xsd
  Generated on:      2015-09-06 21:34z
  Copyright (c) OASIS Open 2015. All Rights Reserved.
-->
<xsd:schema xmlns="http://docs.oasis-open.org/bdxr/ns/bde/1.0/Envelope"
            xmlns:eac="http://docs.oasis-open.org/bdxr/ns/bde/1.0/AggregateComponents"
            xmlns:cbc="http://docs.oasis-open.org/bdxr/ns/bde/1.0/BasicComponents"
            xmlns:ext="http://docs.oasis-open.org/bdxr/ns/bde/1.0/ExtensionComponents"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
            xmlns:ccts="urn:un:unece:uncefact:documentation:2"
            targetNamespace="http://docs.oasis-open.org/bdxr/ns/bde/1.0/Envelope"
            elementFormDefault="qualified"
            attributeFormDefault="unqualified"
            version="1.0">
   <!-- ===== Imports ===== -->
   <xsd:import namespace="http://docs.oasis-open.org/bdxr/ns/bde/1.0/AggregateComponents"
               schemaLocation="common/BDE-CommonAggregateComponents-1.0.xsd"/>
   <xsd:import namespace="http://docs.oasis-open.org/bdxr/ns/bde/1.0/BasicComponents"
               schemaLocation="common/BDE-CommonBasicComponents-1.0.xsd"/>
   <xsd:import namespace="http://docs.oasis-open.org/bdxr/ns/bde/1.0/ExtensionComponents"
               schemaLocation="common/BDE-CommonExtensionComponents-1.0.xsd"/>

   <!-- ===== Incorporate W3C signature specification-->
   <xsd:import namespace="http://www.w3.org/2000/09/xmldsig#"
               schemaLocation="common/BDE-xmldsig1-schema-1.0.xsd"/>

   <!-- ===== Incorporate ETSI signature specifications-->
   <xsd:import namespace="http://uri.etsi.org/01903/v1.3.2#"
               schemaLocation="common/BDE-XAdESv132-1.0.xsd"/>
   <xsd:import namespace="http://uri.etsi.org/01903/v1.4.1#"
               schemaLocation="common/BDE-XAdESv141-1.0.xsd"/>
          
   <!-- ===== Element Declarations ===== -->
   <xsd:element name="Envelope" type="EnvelopeType">
      <xsd:annotation>
         <xsd:documentation>This element MUST be conveyed as the root element in any instance document based on this Schema expression</xsd:documentation>
      </xsd:annotation>
   </xsd:element>
   <!-- ===== Type Definitions ===== -->
   <!-- ===== Aggregate Business Information Entity Type Definitions ===== -->
   <xsd:complexType name="EnvelopeType">
      <xsd:annotation>
         <xsd:documentation>
            <ccts:Component>
               <ccts:ComponentType>ABIE</ccts:ComponentType>
               <ccts:DictionaryEntryName>Envelope. Details</ccts:DictionaryEntryName>
               <ccts:Definition>The Business Document Envelope</ccts:Definition>
               <ccts:ObjectClass>Envelope</ccts:ObjectClass>
            </ccts:Component>
         </xsd:documentation>
      </xsd:annotation>
      <xsd:sequence>
         <xsd:element ref="ext:BDEExtensions" minOccurs="0" maxOccurs="1">
            <xsd:annotation>
               <xsd:documentation>A container for all extensions present in the document.</xsd:documentation>
            </xsd:annotation>
         </xsd:element>
        <xsd:element ref="cbc:BDEVersionID" minOccurs="0" maxOccurs="1">
            <xsd:annotation>
               <xsd:documentation>
                  <ccts:Component>
                     <ccts:ComponentType>BBIE</ccts:ComponentType>
                     <ccts:DictionaryEntryName>Envelope. BDE Version Identifier. Identifier</ccts:DictionaryEntryName>
                     <ccts:Definition>The version of the specific envelope model in use.</ccts:Definition>
                     <ccts:Cardinality>0..1</ccts:Cardinality>
                     <ccts:ObjectClass>Envelope</ccts:ObjectClass>
                     <ccts:PropertyTerm>BDE Version Identifier</ccts:PropertyTerm>
                     <ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm>
                     <ccts:DataType>Identifier. Type</ccts:DataType>
                  </ccts:Component>
               </xsd:documentation>
            </xsd:annotation>
         </xsd:element>
         <xsd:element ref="cbc:CustomizationID" minOccurs="0" maxOccurs="1">
            <xsd:annotation>
               <xsd:documentation>
                  <ccts:Component>
                     <ccts:ComponentType>BBIE</ccts:ComponentType>
                     <ccts:DictionaryEntryName>Envelope. Customization Identifier. Identifier</ccts:DictionaryEntryName>
                     <ccts:Definition>The identification of a customization or use of the envelope model.</ccts:Definition>
                     <ccts:Cardinality>0..1</ccts:Cardinality>
                     <ccts:ObjectClass>Envelope</ccts:ObjectClass>
                     <ccts:PropertyTerm>Customization Identifier</ccts:PropertyTerm>
                     <ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm>
                     <ccts:DataType>Identifier. Type</ccts:DataType>
                  </ccts:Component>
               </xsd:documentation>
            </xsd:annotation>
         </xsd:element>
         <xsd:element ref="cbc:ID" minOccurs="1" maxOccurs="1">
            <xsd:annotation>
               <xsd:documentation>
                  <ccts:Component>
                     <ccts:ComponentType>BBIE</ccts:ComponentType>
                     <ccts:DictionaryEntryName>Envelope. Identifier</ccts:DictionaryEntryName>
                     <ccts:Definition>Unique ID for the envelope for tracking purposes.</ccts:Definition>
                     <ccts:Cardinality>1</ccts:Cardinality>
                     <ccts:ObjectClass>Envelope</ccts:ObjectClass>
                     <ccts:PropertyTerm>Identifier</ccts:PropertyTerm>
                     <ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm>
                     <ccts:DataType>Identifier. Type</ccts:DataType>
                  </ccts:Component>
               </xsd:documentation>
            </xsd:annotation>
         </xsd:element>
         <xsd:element ref="cbc:CreationDateTime" minOccurs="1" maxOccurs="1">
            <xsd:annotation>
               <xsd:documentation>
                  <ccts:Component>
                     <ccts:ComponentType>BBIE</ccts:ComponentType>
                     <ccts:DictionaryEntryName>Envelope. Creation Date Time. Date Time</ccts:DictionaryEntryName>
                     <ccts:Definition>Date and time when the envelope was created.</ccts:Definition>
                     <ccts:Cardinality>1</ccts:Cardinality>
                     <ccts:ObjectClass>Envelope</ccts:ObjectClass>
                     <ccts:PropertyTerm>Creation Date Time</ccts:PropertyTerm>
                     <ccts:RepresentationTerm>Date Time</ccts:RepresentationTerm>
                     <ccts:DataType>Date Time. Type</ccts:DataType>
                  </ccts:Component>
               </xsd:documentation>
            </xsd:annotation>
         </xsd:element>
         <xsd:element ref="cbc:TestIndicator" minOccurs="0" maxOccurs="1">
            <xsd:annotation>
               <xsd:documentation>
                  <ccts:Component>
                     <ccts:ComponentType>BBIE</ccts:ComponentType>
                     <ccts:DictionaryEntryName>Envelope. Test Indicator. Indicator</ccts:DictionaryEntryName>
                     <ccts:Definition>There is a requirement to identify that the content inside the envelope is for test purposes. </ccts:Definition>
                     <ccts:Cardinality>0..1</ccts:Cardinality>
                     <ccts:ObjectClass>Envelope</ccts:ObjectClass>
                     <ccts:PropertyTerm>Test Indicator</ccts:PropertyTerm>
                     <ccts:RepresentationTerm>Indicator</ccts:RepresentationTerm>
                     <ccts:DataType>Indicator. Type</ccts:DataType>
                  </ccts:Component>
               </xsd:documentation>
            </xsd:annotation>
         </xsd:element>
         <xsd:element ref="eac:FromParty" minOccurs="0" maxOccurs="1">
            <xsd:annotation>
               <xsd:documentation>
                  <ccts:Component>
                     <ccts:ComponentType>ASBIE</ccts:ComponentType>
                     <ccts:DictionaryEntryName>Envelope. From_ Party. Party</ccts:DictionaryEntryName>
                     <ccts:Definition>An unambiguous identification of the party that originated the envelope.</ccts:Definition>
                     <ccts:Cardinality>0..1</ccts:Cardinality>
                     <ccts:ObjectClass>Envelope</ccts:ObjectClass>
                     <ccts:PropertyTermQualifier>From</ccts:PropertyTermQualifier>
                     <ccts:PropertyTerm>Party</ccts:PropertyTerm>
                     <ccts:AssociatedObjectClass>Party</ccts:AssociatedObjectClass>
                     <ccts:RepresentationTerm>Party</ccts:RepresentationTerm>
                  </ccts:Component>
               </xsd:documentation>
            </xsd:annotation>
         </xsd:element>
         <xsd:element ref="eac:ToParty" minOccurs="1" maxOccurs="1">
            <xsd:annotation>
               <xsd:documentation>
                  <ccts:Component>
                     <ccts:ComponentType>ASBIE</ccts:ComponentType>
                     <ccts:DictionaryEntryName>Envelope. To_ Party. Party</ccts:DictionaryEntryName>
                     <ccts:Definition>An unambiguous identification of the party to receive the envelope.</ccts:Definition>
                     <ccts:Cardinality>1</ccts:Cardinality>
                     <ccts:ObjectClass>Envelope</ccts:ObjectClass>
                     <ccts:PropertyTermQualifier>To</ccts:PropertyTermQualifier>
                     <ccts:PropertyTerm>Party</ccts:PropertyTerm>
                     <ccts:AssociatedObjectClass>Party</ccts:AssociatedObjectClass>
                     <ccts:RepresentationTerm>Party</ccts:RepresentationTerm>
                  </ccts:Component>
               </xsd:documentation>
            </xsd:annotation>
         </xsd:element>
         <xsd:element ref="eac:Payload" minOccurs="1" maxOccurs="unbounded">
            <xsd:annotation>
               <xsd:documentation>
                  <ccts:Component>
                     <ccts:ComponentType>ASBIE</ccts:ComponentType>
                     <ccts:DictionaryEntryName>Envelope. Payload</ccts:DictionaryEntryName>
                     <ccts:Definition>The actual payload, such as an invoice, to be processed at next level.</ccts:Definition>
                     <ccts:Cardinality>1..n</ccts:Cardinality>
                     <ccts:ObjectClass>Envelope</ccts:ObjectClass>
                     <ccts:PropertyTerm>Payload</ccts:PropertyTerm>
                     <ccts:AssociatedObjectClass>Payload</ccts:AssociatedObjectClass>
                     <ccts:RepresentationTerm>Payload</ccts:RepresentationTerm>
                  </ccts:Component>
               </xsd:documentation>
            </xsd:annotation>
         </xsd:element>
         <xsd:element ref="ds:Signature" minOccurs="0" maxOccurs="unbounded">
           <xsd:annotation>
               <xsd:documentation>This is an optional set of digital signatures as defined by the W3C specification.</xsd:documentation>
           </xsd:annotation>
         </xsd:element>
          </xsd:sequence>
   </xsd:complexType>
</xsd:schema>
<!-- ===== Copyright Notice ===== --><!--
  OASIS takes no position regarding the validity or scope of any 
  intellectual property or other rights that might be claimed to pertain 
  to the implementation or use of the technology described in this 
  document or the extent to which any license under such rights 
  might or might not be available; neither does it represent that it has 
  made any effort to identify any such rights. Information on OASIS's 
  procedures with respect to rights in OASIS specifications can be 
  found at the OASIS website. Copies of claims of rights made 
  available for publication and any assurances of licenses to be made 
  available, or the result of an attempt made to obtain a general 
  license or permission for the use of such proprietary rights by 
  implementors or users of this specification, can be obtained from 
  the OASIS Executive Director.

  OASIS invites any interested party to bring to its attention any 
  copyrights, patents or patent applications, or other proprietary 
  rights which may cover technology that may be required to 
  implement this specification. Please address the information to the 
  OASIS Executive Director.
  
  This document and translations of it may be copied and furnished to 
  others, and derivative works that comment on or otherwise explain 
  it or assist in its implementation may be prepared, copied, 
  published and distributed, in whole or in part, without restriction of 
  any kind, provided that the above copyright notice and this 
  paragraph are included on all such copies and derivative works. 
  However, this document itself may not be modified in any way, 
  such as by removing the copyright notice or references to OASIS, 
  except as needed for the purpose of developing OASIS 
  specifications, in which case the procedures for copyrights defined 
  in the OASIS Intellectual Property Rights document must be 
  followed, or as required to translate it into languages other than 
  English. 

  The limited permissions granted above are perpetual and will not be 
  revoked by OASIS or its successors or assigns. 

  This document and the information contained herein is provided on 
  an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, 
  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY 
  WARRANTY THAT THE USE OF THE INFORMATION HEREIN 
  WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED 
  WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A 
  PARTICULAR PURPOSE.    
-->