<?xml version="1.0" encoding="UTF-8"?>
<xs:schema 
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:ublinv="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
    xmlns="urn:DGFIP:EtatsFrais"
    targetNamespace="urn:DGFIP:EtatsFrais"
    elementFormDefault="qualified">
    <xs:import schemaLocation="./xsd/maindoc/UBL-Invoice-2.0.xsd" namespace="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"/>    
    
    <xs:element name="EtatsFrais" type="TEtatsFrais">
        <xs:annotation>
            <xs:documentation>Ensemble des états de frais</xs:documentation>
        </xs:annotation>
    </xs:element>
    
    <xs:complexType name="TEtatsFrais">
        <xs:sequence>
            <xs:element name="Invoice" type="ublinv:InvoiceType" maxOccurs="unbounded"></xs:element>
        </xs:sequence>
        <xs:attribute name="CODE_APPLI" use="required">
            <xs:annotation><xs:documentation>Code Application et instance de l'application</xs:documentation></xs:annotation>
        </xs:attribute>
        <xs:attribute name="VersionCSS" use="required">
            <xs:annotation><xs:documentation>Version de la feuille de style de visualisation</xs:documentation></xs:annotation>
        </xs:attribute>
    </xs:complexType>
</xs:schema>