<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
	elementFormDefault="qualified">
	<xs:element name="RESOURCE_PROFILE">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="HEADER">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="RESOURCE_IDENTIFIER">
								<xs:complexType>
									<xs:attribute name="value" use="required" />
								</xs:complexType>
							</xs:element>
							<xs:element name="RESOURCE_TYPE">
								<xs:complexType>
									<xs:attribute name="value" use="required" type="xs:NCName" />
								</xs:complexType>
							</xs:element>
							<xs:element name="RESOURCE_KIND">
								<xs:complexType>
									<xs:attribute name="value" use="required" type="xs:NCName" />
								</xs:complexType>
							</xs:element>
							<xs:element name="RESOURCE_URI">
								<xs:complexType>
									<xs:attribute name="value" use="required" type="xs:anyURI" />
								</xs:complexType>
							</xs:element>
							<xs:element name="DATE_OF_CREATION">
								<xs:complexType>
									<xs:attribute name="value" use="required" />
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="BODY">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="SET">
								<xs:complexType>
									<xs:simpleContent>
										<xs:extension base="xs:string">
											<xs:attribute name="id" use="required" type="xs:string" />
											<xs:attribute name="directory" use="optional" type="xs:string"/>
										</xs:extension>
									</xs:simpleContent>
								</xs:complexType>
							</xs:element>
							<xs:element name="IMPACT" type="xs:NCName" />
							<xs:element name="RAW_SETS">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="LATEST" minOccurs="0" maxOccurs="1"
											type="RAW_SET_TYPE" />
										<xs:element name="EXPIRED" minOccurs="0" maxOccurs="unbounded"
											type="RAW_SET_TYPE" />
									</xs:sequence>
								</xs:complexType>
							</xs:element>

							<xs:element name="STATUS">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="LAST_EXECUTION_DATE" type="xs:string"
											nillable="true" />
										<xs:element name="NUMBER_OF_INFOPACKAGES" type="xs:integer" />
										<xs:element name="NUMBER_OF_ATOMICACTIONS" type="xs:integer" />
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:complexType name="RAW_SET_TYPE">
		<xs:attribute name="id" type="xs:string" use="required" />
		<xs:attribute name="creationDate" type="xs:string" use="required" />
		<xs:attribute name="lastUpdate" type="xs:string" use="required" />
	</xs:complexType>

</xs:schema>
