<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:annotation>
    <xsd:appinfo>
      Schema file for the validation of xml file containing detailed
      data according to Regulation 510/2011/EC .  Monitoring and reporting
      of average CO2 emissions (light commercial vehicles) - vans.

      Version: $Id$
      Created: 16.01.2013

      Reporting Obligation: http://rod.eionet.europa.eu/obligations/665
      Reporting year: 2013
    </xsd:appinfo>
  </xsd:annotation>
  <xsd:element name="VansDetails">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element ref="item" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
      <!--Attributes of the element 'vans'-->
      <xsd:attribute name="Y" type="xsd:integer" use="required">
        <xsd:annotation>
          <xsd:documentation xml:lang="en">
            Attribute 'Year'.
            Attribute of element 'vans'.
            Length is 4 (e.g. '2012')
            Mandatory Input.
          </xsd:documentation>
        </xsd:annotation>
      </xsd:attribute>
      <xsd:attribute name="MS" type="xsd:string" use="required">
        <xsd:annotation>
          <xsd:documentation xml:lang="en">
            Attribute 'Member State name'.
            Attribute of element 'vans'.
            Use abbreviation in interinstitutional style guide of the European Union.
            Length 2 (e.g. CH for Switzerland).
            Mandatory Input.
          </xsd:documentation>
        </xsd:annotation>
      </xsd:attribute>
    </xsd:complexType>
  </xsd:element>

  <xsd:element name="item">
    <xsd:complexType>
      <xsd:all>
        <xsd:element name="ID" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Element 'ID',
              Internal code in MS database. Used to identify a single row of data. Optional input.
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:maxLength value="30"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="Mh">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Manufacturer name - EU standard denomination.
              This is the short name assigned by the Commission service to easily identify each manufacturer.
              This denomination will not contain any special character and it is contained in the list of manufacturers present in CIRCABC.
              Mandatory input.
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:maxLength value="120"/>
              <xsd:minLength value="1"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="Man">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Manufacturer as declared by OEM,
              This is the name stated by the manufacturer in accordance with Article 8 of Regulation (EU) No 1014/2010.
              It is contained in the list of manufacturers present in CIRCABC.
              In case of multistage vans, indicate the name of the base vehicle manufacturer.
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:maxLength value="120"/>
              <xsd:minLength value="1"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="MMS">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Manufacturer name MS registry denomination.
              This is the name for the manufacturer as contained in the national registry of the Member State.
              In case of multistage vans, indicate the name of the final vehicle manufacturer (optional).
              Mandatory input.
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:maxLength value="120"/>
              <xsd:minLength value="1"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="Tan">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Type approval number and its extension,
              length max. 120. Mandatory input.
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:maxLength value="120"/>
              <xsd:minLength value="1"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="T">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Type, length max. 120, mandatory input
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:maxLength value="120"/>
              <xsd:minLength value="1"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="Va">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Variant, length max. 120, mandatory input
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:maxLength value="120"/>
              <xsd:minLength value="1"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="Ve">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Version, length max. 120, mandatory input
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:maxLength value="120"/>
              <xsd:minLength value="1"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="Mk">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Make, length max. 120,
              In case that the commercial name and the make are not separately entered into the national database on newly registered M1’s enter the available information into the field “make”.
              Mandatory input.
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:maxLength value="120"/>
              <xsd:minLength value="1"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="Cn">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Commercial Name,
              Same as for the entry "make".
              Mandatory input.
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:maxLength value="120"/>
              <xsd:minLength value="1"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="Ct">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Category of Vehicle Type Approved (e.g. 'M1'),
              mandatory input.
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:maxLength value="2"/>
              <xsd:minLength value="1"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="Cr">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Category of Vehicle Type Registered (e.g. 'M1'),
              mandatory input.
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:maxLength value="2"/>
              <xsd:minLength value="1"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="R">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Registrations, mandatory input
              Number of registrations for vehicles of the same version with the same value for each  numerical parameter.
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:nonNegativeInteger">
              <xsd:minInclusive value="1"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="M">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Mass [kg]
              In case of multistage vans indicate the mass of the final vehicle.
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:integer">
              <xsd:minInclusive value="300"/>
              <xsd:maxInclusive value="5000"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="TPMLM">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Technically permissible maximum laden mass [kg],
              integer, non-negative whole number, No
              separator for thousand, Min value is 300,
              Mandatory input.
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:integer">
              <xsd:minInclusive value="300"/>
              <xsd:maxInclusive value="5000"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="E">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Emissions [g CO2/km] - integer, non-negative whole
              number, min value is 0 (i.e. electric), max value is
              700. Leave blank when no emission value is available,
              mandatory  input
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:integer">
              <xsd:minInclusive value="0"/>
              <xsd:maxInclusive value="700"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="W">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Wheelbase [mm], non-negative whole number, no separator for thousand, Max value is 6000, Min value is 500.
              Leave blank when no wheelbase value is available.
              In case of ranges in the type approval documentation please provide the value that is in accordance with one present in
              the CoC.
              Mandatory input.
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:integer">
              <xsd:minInclusive value="500"/>
              <xsd:maxInclusive value="9999"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="At1">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Axle track of steered axle [mm], non-negative whole number, no separator for thousand, Max value is
              3000, Min value is 500.
              In case of ranges in the type approval documentation please provide the value that is in accordance with one present in
              the CoC.
              Mandatory input.
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:integer">
              <xsd:minInclusive value="500"/>
              <xsd:maxInclusive value="3000"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="At2">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Axle track of other axle [mm], non-negative whole number, No separator for thousand, Max value is 3000,
              Min value is 500.
              Leave empty of delivering only one value for axle track.
              Mandatory input.
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
              <xsd:restriction base="xsd:integer">
              <xsd:minInclusive value="500"/>
              <xsd:maxInclusive value="3000"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="Ft">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Fuel type, length max. 120, mandatory input.
              This field is mandatory only for reporting E85 fuel type as these vehicles may benefit from the 5% CO2 emission reductions. The reporting of other fuels is optional.
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:minLength value="1"/>
              <xsd:maxLength value="120"/>
              <xsd:pattern value="[Pp]etrol|PETROL|[Ll]pg|LPG|[Nn][Gg]-[Bb]iomethane|NG-BIOMETHANE|[Hh]ydrogen|HYDROGEN|[Ee]85|[Bb]iodiesel|BIODIESEL|[Dd]iesel|DIESEL|[Ee]lectric|ELECTRIC|[Oo]ther|OTHER"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="Fm">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Fuel mode, length max. 1, Content is M (mono), B
              (bifuel) or F (flex), leave empty if not applicable
              or not known. Mandatory input.
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:minLength value="1"/>
              <xsd:maxLength value="1"/>
              <xsd:pattern value="(M|m)|(B|b)|(F|f)"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="Ec">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Engine capacity [cm3], non-negative whole number,
              No separator for thousand, Max. value is not
              defined. Min. value is 0 Leave blank when no engine
              capacity value is available. Leave blank for electric
              vehicles. Mandatory input.
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:nonNegativeInteger">
              <xsd:totalDigits value="5"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="Ep" minOccurs="0">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Engine power [kW], non-negative whole number,
              No separator for thousand, Max. value is not
              defined. Min. value is 0.
              Optional input
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:union>
              <xsd:simpleType>
                <xsd:restriction base="xsd:nonNegativeInteger">
                  <xsd:totalDigits value="3"/>
                </xsd:restriction>
              </xsd:simpleType>
              <xsd:simpleType>
                <xsd:restriction base="xsd:token">
                  <xsd:enumeration value=""/>
                </xsd:restriction>
              </xsd:simpleType>
            </xsd:union>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="Z" type="xsd:nonNegativeInteger">
          <xsd:annotation>
            <xsd:documentation xml:lang="en">
              Electric energy consumption [Wh/km], non-negative
              whole number, No separator for thousand. Optional input
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
        <xsd:element name="IT">
          <xsd:annotation>
            <xsd:documentation>
              Innovative technology or group of innovative technologies. Optional input
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:maxLength value="120"/>
              <xsd:minLength value="0"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element>
        <xsd:element name="Er">
          <xsd:annotation>
            <xsd:documentation>
              Emission reduction through innovative technology. Optional input
            </xsd:documentation>
          </xsd:annotation>
          <xsd:simpleType>
            <xsd:union>
              <xsd:simpleType>
                <xsd:restriction base="xsd:integer">
                  <xsd:minInclusive value="0"/>
                  <xsd:maxInclusive value="999"/>
                </xsd:restriction>
              </xsd:simpleType>
              <xsd:simpleType>
                <xsd:restriction base="xsd:token">
                  <xsd:enumeration value=""/>
                </xsd:restriction>
              </xsd:simpleType>
            </xsd:union>
          </xsd:simpleType>
        </xsd:element>
      </xsd:all>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>




