<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://lpis.jrc.ec.europa.eu/registry/cbm/1.1.0" xmlns:cap="http://lpis.jrc.ec.europa.eu/registry/cbm/1.1.0" xmlns="http://lpis.jrc.ec.europa.eu/registry/cbm/1.1.0" elementFormDefault="qualified">
	<xs:include schemaLocation="CbmCommonTypes.xsd"/>
	
	<xs:simpleType name="restr_itemStatus">
		<xs:restriction base="xs:integer">
			<xs:minInclusive value = "0"/>
			<xs:maxInclusive value = "2"/>
		</xs:restriction>
	</xs:simpleType>
	
	<xs:simpleType name="restr_minLength_string">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
		</xs:restriction>
	</xs:simpleType>
	
	<xs:complexType name="lotTypeType">
		<xs:simpleContent>
			<xs:extension base="cap:restr_minLength_string">
				<xs:attribute name="itemStatus" type="cap:restr_itemStatus" use="required"/>
			</xs:extension>
		</xs:simpleContent>
	</xs:complexType>
	
	<xs:complexType name="featureOfInterestType">
		<xs:sequence>
			<xs:element name="lotType" type="cap:lotTypeType" minOccurs="1" maxOccurs ="unbounded"/>
		</xs:sequence>
		<xs:attribute name="foiID" type="xs:string" use="required"/>
	</xs:complexType>
	
	<xs:complexType name="ItemLogType">
		<xs:sequence>
			<xs:element name="featureOfInterest" type="cap:featureOfInterestType" minOccurs="1" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attributeGroup ref="cap:CbMReportIdentificationAttributeGroupNoLot"/>
	</xs:complexType>
	
	<xs:element name="itemLog" type="cap:ItemLogType"/>
	
</xs:schema>
