<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.xmlmode.nl/interdata/milieu" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.xmlmode.nl/interdata/milieu" elementFormDefault="unqualified" attributeFormDefault="unqualified">
	<xs:include schemaLocation="SharedVehicleDataTypes.xsd"/>
	<xs:simpleType name="roetfilterType">
		<xs:annotation>
			<xs:documentation>Geeft aan of een roetfilter is ingebouwd in het voertuig. Geeft alijtd de waarde n.v.t. indien brandstof geen Diesel is.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="n.v.t."/>
			<xs:enumeration value="afwezig"/>
			<xs:enumeration value="affabriek"/>
			<xs:enumeration value="retrofit"/>
			<xs:enumeration value="onbekend"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="milieuInfoBasicTypeV1">
		<xs:sequence>
			<xs:element ref="kenteken" minOccurs="0"/>
      <xs:element ref="chassisnummer" minOccurs="0"/>
      <xs:element ref="roetfilter"/>
			<xs:element ref="roetdeeltjes"/>
			<xs:element ref="co2uitstootGecombineerd"/>
			<xs:element ref="euroklasse"/>
			<xs:element ref="energielabel"/>
			<xs:element ref="brandstofverbruikStad"/>
			<xs:element ref="brandstofverbruikBuitenweg"/>
			<xs:element ref="brandstofverbruikGecombineerd"/>
			<xs:element ref="typeVersnellingsbak"/>
			<xs:element ref="aantalVersnellingen"/>
			<xs:element ref="topsnelheid"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="milieuInfoBasicTypeV2">
		<xs:complexContent>
			<xs:extension base="milieuInfoBasicTypeV1">
				<xs:sequence>
					<xs:element ref="bijtellingsKlasse"/>
				</xs:sequence>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>

  <xs:complexType name="milieuInfoBasicTypeV3">
      <xs:sequence>
        <xs:element ref="kenteken" minOccurs="0"/>
        <xs:element ref="chassisnummer" minOccurs="0"/>
        <xs:element ref="roetfilter"/>
        <xs:element ref="roetdeeltjes"/>
        <xs:element ref="co2uitstootGecombineerd"/>
        <xs:element ref="euroklasse"/>
        <xs:element ref="energielabel"/>
        <xs:element ref="brandstofverbruikStad"/>
        <xs:element ref="brandstofverbruikBuitenweg"/>
        <xs:element ref="brandstofverbruikGecombineerd"/>
        <xs:element ref="typeVersnellingsbak"/>
        <xs:element ref="aantalVersnellingen"/>
        <xs:element ref="topsnelheid"/>
        <xs:element ref="bijtellingsKlasse"/>
        <xs:element ref="coEmissie"/>
        <xs:element ref="hcEmissie"/>
        <xs:element ref="noxEmissie"/>
        <xs:element ref="hcNoxEmissie"/>
        <xs:element ref="geluidsniveauStilstaand"/>
        <xs:element ref="toerenGeluidsniveauStilstaand"/>
        <xs:element ref="geluidsniveauRijdend"/>
      </xs:sequence>
  </xs:complexType>

	<xs:complexType name="milieuInfoBasicTypeV4">
		<xs:complexContent>
			<xs:extension base="milieuInfoBasicTypeV3">
				<xs:sequence>
					<xs:element ref="roetdeeltjesZwaar"/>
				</xs:sequence>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>

	<!-- Uitbreiding Solera, ten behoeve van NULL naar '0'-->
	<xs:complexType name="milieuInfoBasicTypeV5">
		<xs:complexContent>
			<xs:extension base="milieuInfoBasicTypeV4">
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>

	<xs:element name="kenteken" type="kentekenType">
		<xs:annotation>
			<xs:documentation>Kenteken van het voertuig</xs:documentation>
		</xs:annotation>
	</xs:element>
  <xs:element name="chassisnummer" type="chassisnummerType">
    <xs:annotation>
      <xs:documentation>Chassisnummer van het voertuig</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:element name="roetfilter" type="roetfilterType">
		<xs:annotation>
			<xs:documentation>Zie roetfilterType</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="roetdeeltjes" nillable="true">
		<xs:annotation>
			<xs:documentation>De uitstoot van vaste stoffen (onder andere roet) gemeten bij een op een rollenbank rijdend voertuig.</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:decimal">
				<xs:fractionDigits value="5"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="roetdeeltjesZwaar" nillable="true">
		<xs:annotation>
			<xs:documentation>De uitstoot van vaste stoffen (onder andere roet) gemeten met een testcyclus bestaande uit 13 statische toestanden die tot stand moeten worden gebracht overeenkomstig punt 6.2 van richtlijn 2005/55.</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:decimal">
				<xs:fractionDigits value="5"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="co2uitstootGecombineerd" nillable="true">
		<xs:annotation>
			<xs:documentation>De emissie van CO2 tijdens een combinatie van gestandaardiseerde stadsrit- en buitenwegcycli, uitgevoerd op een rollenbank.</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:short">
				<xs:minInclusive value="0"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="euroklasse" nillable="true">
		<xs:annotation>
			<xs:documentation>Euroklasse op basis van emissie richtlijn</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:maxLength value="10"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="energielabel" type="zuinigheidslabel" nillable="true">
		<xs:annotation>
			<xs:documentation>Zie zuinigheidslabel</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="brandstofverbruikBuitenweg" nillable="true">
		<xs:annotation>
			<xs:documentation>Het brandstofverbruik tijdens een gestandaardiseerde buitenwegcyclus,
uitgevoerd op een rollenbank. Eenheid: l/100 km</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:decimal">
				<xs:minInclusive value="0"/>
				<xs:fractionDigits value="2"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="brandstofverbruikGecombineerd" nillable="true">
		<xs:annotation>
			<xs:documentation>Het brandstofverbruik tijdens een combinatie van gestandaardiseerde
stadsrit- en buitenwegcycli, uitgevoerd op een rollenbank. Eenheid: l/100 km</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:decimal">
				<xs:minInclusive value="0"/>
				<xs:fractionDigits value="2"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="brandstofverbruikStad" nillable="true">
		<xs:annotation>
			<xs:documentation>Het brandstofverbruik tijdens een gestandaardiseerde stadsritcyclus,
uitgevoerd op een rollenbank. Eenheid: l/100 km</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:decimal">
				<xs:minInclusive value="0"/>
				<xs:fractionDigits value="2"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
  <!-- merk met attribuut code -->
  <xs:element name="typeVersnellingsbak" nillable="true">
    <xs:annotation>
      <xs:documentation>
        Type versnellingsbak. Mogelijke waarden voor coderingen:
        H=Handmatig geschakelde transmissie
        A=Automatisch geschakelde transmissie
        C=Continu Variabele Transmissie
      </xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:simpleContent>
        <xs:extension base="versnellingType">
          <xs:attribute name="code" type="versnellingCodeType"/>
        </xs:extension>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>

	<xs:element name="aantalVersnellingen" nillable="true">
		<xs:annotation>
			<xs:documentation>Aantal aanwezige versnellingen</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:short">
				<xs:minInclusive value="0"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element name="topsnelheid" nillable="true">
		<xs:annotation>
			<xs:documentation>Maximum snelheid zoals door de fabrikant opgegeven voor een voertuig.</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:short">
				<xs:minInclusive value="0"/>
			</xs:restriction>
		</xs:simpleType>
	</xs:element>

	<xs:element name="bijtellingsKlasse" nillable="true">
		<xs:annotation>
			<xs:documentation>De fiscale bijtelling gebaseerd op de CO2 uitstoot en brandstof</xs:documentation>
		</xs:annotation>
		<xs:simpleType>
			<xs:restriction base="xs:string">
				<xs:maxLength value="6" />
			</xs:restriction>
		</xs:simpleType>
	</xs:element>

  <xs:element name="coEmissie" nillable="true" type="xs:decimal">
    <xs:annotation>
      <xs:documentation>Koolstofmonoxide emissie gemeten bij een op een rollenbank rijdend voertuig in g/km</xs:documentation>
    </xs:annotation>
  </xs:element>

  <xs:element name="hcEmissie" nillable="true" type="xs:decimal">
    <xs:annotation>
      <xs:documentation>Koolwaterstof emissie gemeten bij een op een rollenbank rijdend voertuig in g/km</xs:documentation>
    </xs:annotation>
  </xs:element>

  <xs:element name="noxEmissie" nillable="true" type="xs:decimal">
    <xs:annotation>
      <xs:documentation>NOx emissie gemeten bij een op een rollenbank rijdend voertuig in g/km</xs:documentation>
    </xs:annotation>
  </xs:element>

  <xs:element name="hcNoxEmissie" nillable="true" type="xs:decimal">
    <xs:annotation>
      <xs:documentation>Som van HC en NOx uitstoot in g/km</xs:documentation>
    </xs:annotation>
  </xs:element>

  <xs:element name="geluidsniveauStilstaand" nillable="true" type="xs:short">
    <xs:annotation>
      <xs:documentation>Geluidsniveau van een stilstaand motorrijtuig bij toerental 'toerenGeluidsniveauStilstaand' in dBA</xs:documentation>
    </xs:annotation>
  </xs:element>

  <xs:element name="toerenGeluidsniveauStilstaand" nillable="true" type="xs:int">
    <xs:annotation>
      <xs:documentation>Aantal omwentelingen per minuut waarbij het geluidsniveau van een stilstaand motorrijtuig wordt gemeten (geluidsniveauStilstaand).
      Dit toerental is 3/4 van het toerental bij maximum vermogen.
      </xs:documentation>
    </xs:annotation>
  </xs:element>

  <xs:element name="geluidsniveauRijdend" nillable="true" type="xs:short">
    <xs:annotation>
      <xs:documentation>Geluidsniveau van een rijdend motorrijtuig in dBA</xs:documentation>
    </xs:annotation>
  </xs:element>

</xs:schema>
