<?xml version="1.0" encoding="WINDOWS-1250"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
	<xs:element name="ARSO_VHOD_DOK">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="ODPADKI_EVL_PODATKI_1"/>
			</xs:sequence>
			<xs:attribute name="PODROCJE" type="PODROCJEType" use="required"/>
			<xs:attribute name="TIP" type="TIPEVLSType" use="required"/>
			<xs:attribute name="VERZIJA" type="VERZIJAType" use="required"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="ODPADKI_EVL_PODATKI_1">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="EVLS_INT_ID" type="NotNullStringType"/>

				<xs:element name="POSILJATELJ">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="PSLJ_ST" type="NotNullLongType"/>
							<xs:element name="PSLJ_MATICNA_ST" type="NotNullLongType"/>
							<xs:element name="PSLJ_STATUS" type="StatusPosiljateljType"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>

				<xs:element name="PREJEMNIK">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="PRJM_ST" type="NotNullLongType"/>
							<xs:element name="PRJM_MATICNA_ST" type="NotNullLongType"/>
							<xs:element name="PRJM_STATUS" type="StatusPrejemnikType"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>

				<xs:element name="PREVOZNIK">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="PRVZ_ST" type="NotNullLongType"/>
							<xs:element name="PRVZ_MATICNA_ST" type="NotNullLongType"/>
							<xs:element name="PRVZ_STATUS" type="StatusPrevoznikType"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>

				<xs:element name="DATUM_ODDAJE" type="SLOVENSKIDATUMype"/>
				<xs:element name="DATUM_PREJEMA" type="SLOVENSKIDATUMype" minOccurs="0" nillable="true" maxOccurs="1"/>

				<xs:element name="KRAJ_ODDAJE">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="TIP_LOKACIJE_ODDAJE" type="TIPLOKACIJEype"/>
							<xs:choice>
								<xs:element name="ODP_LOC_ID" type="xs:long"/>
								<xs:element name="PARCELE">
									<xs:complexType>
										<xs:sequence>
											<xs:element name="PARCELA" type="PARCELAType" maxOccurs="unbounded">
											</xs:element>
										</xs:sequence>
									</xs:complexType>
								</xs:element>
							</xs:choice>
						</xs:sequence>
					</xs:complexType>
				</xs:element>

				<xs:element name="KRAJ_PREJEMA" minOccurs="0">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="TIP_LOKACIJE_PREJEMA" type="TIPLOKACIJEype"/>
							<xs:choice>
								<xs:element name="ODP_LOC_ID" type="xs:long"/>
								<xs:element name="PARCELE">
									<xs:complexType>
										<xs:sequence>
											<xs:element name="PARCELA" type="PARCELAType" maxOccurs="unbounded">
											</xs:element>
										</xs:sequence>
									</xs:complexType>
								</xs:element>
							</xs:choice>
						</xs:sequence>
					</xs:complexType>
				</xs:element>

				<xs:element name="OPOMBA_PSLJ" type="OPOMBAType" nillable="true" minOccurs="0"/>
				<xs:element name="OPOMBA_PRJM" type="OPOMBAType" nillable="true" minOccurs="0"/> 
				<xs:element name="OPOMBA_VOZNIK" type="OPOMBAType" nillable="true" minOccurs="0"/>

				<xs:element name="PRVZ_SREDSTVO" type="NotNullStringType" minOccurs="1"/>
				<xs:element name="IND_POOBLASTILO_OBSTAJA" type="INDPOOBLASTILOType"/>			

				<xs:element name="SEZNAM_ODPADKOV">
					<xs:complexType>
						<xs:sequence minOccurs="1" maxOccurs="unbounded">
							<xs:element name="ODPADEK">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="ODP_ST" type="NotNullStringType"/>
										<xs:element name="PRO" type="xs:string" nillable="true"/>
										<xs:element name="ODP_KOLICINA" type="NotNullLongType"/>
										<xs:element name="IND_SPREJETO" type="INDSPREJETOType"/>
										<xs:element name="ODP_EMBALAZA" type="xs:string" minOccurs="0"/>
										<xs:element name="ODP_EMB_ST_ENOT" type="xs:string" minOccurs="0"/>
										<xs:element name="ODP_EMB_SHEMA" type="xs:string" nillable="true"/>
										<xs:element name="ODP_FIZ_LAST" type="xs:string" minOccurs="0"/>
										<xs:element name="ODP_TIP" type="xs:string" minOccurs="0"/>
										<xs:element name="ODP_DEJ_NASTANKA" type="xs:string" minOccurs="0"/>
										<xs:element name="ODP_AKTIVNOST_PSLJ" type="NotNullStringType"/>
										<xs:element name="ODP_AKTIVNOST_PRJM" type="NotNullStringType"/>
										<xs:element name="ODP_OPOMBA_PSLJ" type="OPOMBAType" nillable="true" minOccurs="0"/>
										<xs:element name="ODP_OPOMBA_PRJM" type="OPOMBAType" nillable="true" minOccurs="0"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:simpleType name="StatusPosiljateljType">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
	           <xs:enumeration value="IZVIRNI POVZROCITELJ"/>
			<xs:enumeration value="ZBIRALEC"/>
			<xs:enumeration value="PREDELOVALEC"/>
			<xs:enumeration value="ODSTRANJEVALEC"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="StatusPrejemnikType">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:enumeration value="ZBIRALEC"/>
			<xs:enumeration value="PREDELOVALEC"/>
			<xs:enumeration value="ODSTRANJEVALEC"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="StatusPrevoznikType">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:enumeration value="PREVOZNIK"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:complexType name="PARCELAType">
		<xs:sequence>
			<xs:element name="SIFKO" type="xs:int">
			</xs:element>
			<xs:element name="ST_PARC" type="xs:int">
			</xs:element>
			<xs:element name="ST_PARC_P" type="xs:int">
			</xs:element>
		</xs:sequence>
	</xs:complexType>

	<xs:simpleType name="OPOMBAType">
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="1000"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="PODROCJEType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="ODPADKI"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TIPEVLSType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="EVLS_OBICAJNI_PRJMPSLJ"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TIPLOKACIJEype">
		<xs:restriction base="xs:string">
			<xs:enumeration value="STALNA"/>
			<xs:enumeration value="ZACASNA"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="INDSPREJETOType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="D"/>
			<xs:enumeration value="N"/>
			<xs:minLength value="1"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="INDPOOBLASTILOType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="D"/>
			<xs:enumeration value="N"/>
			<xs:minLength value="1"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="VERZIJAType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="1.0.0"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="SLOVENSKIDATUMype">
		<xs:restriction base="xs:string">
			<xs:pattern value="[0-3][0-9][.][0-1][0-9][.][2][0-1][0-9][0-9]"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="NotNullStringType">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="NotNullLongType">
		<xs:restriction base="xs:long">
			<xs:minInclusive value="-9223372036854775808"/>
			<xs:maxInclusive value="9223372036854775807"/>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>