<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2007 sp1 (http://www.altova.com) by Paolo (ISTI 
	- CNR) -->
<!--W3C Schema generated by XMLSpy v2007 sp1 (http://www.altova.com) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:element name="RESOURCE_PROFILE">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="HEADER" type="HEADERType" />
				<xs:element name="BODY" type="BODYType" />
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:complexType name="RESOURCE_TYPEType">
		<xs:attribute name="value" use="required">
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:enumeration value="TransformationRuleDSResourceType" />
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
	</xs:complexType>
	<xs:complexType name="RESOURCE_URIType">
		<xs:attribute name="value" type="xs:string" use="required" />
	</xs:complexType>
	<xs:complexType name="RESOURCE_KINDType">
		<xs:attribute name="value" use="required">
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:enumeration value="TransformationRuleDSResources" />
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
	</xs:complexType>
	<xs:complexType name="RESOURCE_IDENTIFIERType">
		<xs:attribute name="value" type="xs:string" use="required" />
	</xs:complexType>
	<xs:complexType name="DATE_OF_CREATIONType">
		<xs:attribute name="value" type="xs:dateTime" use="required" />
	</xs:complexType>

	<xs:complexType name="HEADERType">
		<xs:all>
			<xs:element name="RESOURCE_IDENTIFIER" type="RESOURCE_IDENTIFIERType" />
			<xs:element name="RESOURCE_TYPE" type="RESOURCE_TYPEType" />
			<xs:element name="RESOURCE_KIND" type="RESOURCE_KINDType" />
			<xs:element name="RESOURCE_URI" type="RESOURCE_URIType" />
			<xs:element name="DATE_OF_CREATION" type="DATE_OF_CREATIONType" />
		</xs:all>
	</xs:complexType>

	<xs:complexType name="CONFIGURATIONType">
		<xs:all>
			<xs:element name="SOURCE_METADATA_FORMAT" minOccurs="0"
				maxOccurs="1" type="METADATA_FORMATType" />
			<xs:element name="SINK_METADATA_FORMAT" minOccurs="0"
				maxOccurs="1" type="METADATA_FORMATType" />
			<xs:element name="IMPORTED" type="IMPORTEDType" />
			<xs:element name="SCRIPT" type="SCRIPTType" />
		</xs:all>
	</xs:complexType>

	<xs:complexType name="METADATA_FORMATType">
		<xs:attribute name="name" type="xs:string" />
		<xs:attribute name="interpretation" type="xs:string" />
		<xs:attribute name="layout" type="xs:string" />
	</xs:complexType>
	<xs:complexType name="STATUSType">
		<xs:all>
		</xs:all>
	</xs:complexType>

	<xs:complexType name="BODYType">
		<xs:sequence>
			<xs:element name="CONFIGURATION" type="CONFIGURATIONType" />
			<xs:element name="STATUS" type="STATUSType" />
			<xs:element name="SECURITY_PARAMETERS" type="xs:string" />
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="SCRIPTType">
		<xs:sequence>
			<xs:element name="TITLE" type="xs:string" />
			<xs:element name="CODE" type="CODEType" />
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="CODEType" mixed="true">
		<xs:complexContent mixed="true">
			<xs:restriction base="xs:anyType">
				<xs:sequence>
					<xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded" />
				</xs:sequence>
			</xs:restriction>
		</xs:complexContent>
	</xs:complexType>

	<xs:complexType name="SCRIPT_REFERENCEType" mixed="true">
		<xs:attribute name="id" use="required" />
	</xs:complexType>

	<xs:complexType name="IMPORTEDType">
		<xs:sequence>
			<xs:element name="SCRIPT_REFERENCE" type="SCRIPT_REFERENCEType"
				minOccurs="0" maxOccurs="unbounded"></xs:element>
		</xs:sequence>
	</xs:complexType>
</xs:schema>
