<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
	xmlns:dc="http://purl.org/dc/elements/1.1/" 
	targetNamespace="http://purl.org/pico/iccd/2.00/" 
	elementFormDefault="qualified" 
	attributeFormDefault="unqualified">
	
	<xs:annotation>
		<xs:documentation>
			PICO AP - Sotto profilo ICCD
			ICCD 2.00 OA PICO Types XML Schema
            XML Schema for http://purl.org/pico/iccd/2.00/ namespace

            Created 2007-04-10

            Creator Davide Merlitti (d.merlitti@sns.it)
            Creator Irene Buonazia (i.buonazia@sns.it)
            Creator Maria Emilia Masci (e.masci@sns.it)
			
			Modified 2008-06-25 
			
			Modified the targetNamespace and the XML Schema namespace from the previous http://pico.sns.it/pico/iccd/2.00/ to the current http://purl.org/pico/iccd/2.0
			Contributor Karim Ben Hamida (karim.benhamida@beniculturali.it)
			
			Modified 2009-12-30
			Fixed the pattern of the complexType UID (d.merlitti@sns.it)
			</xs:documentation>
	</xs:annotation>

    <xs:annotation>
		<xs:documentation>
			Per i campi semplici, sono stati creati dei complexType
			composti da un simpleContent con restriction su dc:SimpleLiteral
			e maxLength uguale a quello risultante dalla normativa xml iccd.
			Per i campi strutturati, è stata imposta solo una restrizione
			con base=xs:string.
		</xs:documentation>
    </xs:annotation>
	
	<xs:import namespace="http://purl.org/dc/elements/1.1/" 
		schemaLocation="http://www.dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd">
	</xs:import>
	
	<xs:complexType name="UID">
		<xs:simpleContent>
			<xs:restriction base="dc:SimpleLiteral">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:pattern value="[0-9]{2}[0-9]{8}(\-[0-9A-Za-z]{2})?"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:restriction>
		</xs:simpleContent>
	</xs:complexType>
	
	<xs:complexType name="ESC">
		<xs:simpleContent>
			<xs:restriction base="dc:SimpleLiteral">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="25"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:restriction>
		</xs:simpleContent>
	</xs:complexType>
	
	<xs:complexType name="ECP">
		<xs:simpleContent>
			<xs:restriction base="dc:SimpleLiteral">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="25"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:restriction>
		</xs:simpleContent>
	</xs:complexType>
	
	<xs:complexType name="EPR">
		<xs:simpleContent>
			<xs:restriction base="dc:SimpleLiteral">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="25"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:restriction>
		</xs:simpleContent>
	</xs:complexType>
	
	<xs:complexType name="CD">
		<xs:simpleContent>
			<xs:restriction base="dc:SimpleLiteral">
				<xs:simpleType>
					<xs:restriction base="xs:string"/>
				</xs:simpleType>
			</xs:restriction>
		</xs:simpleContent>
	</xs:complexType>
	
	<xs:complexType name="NCT">
		<xs:simpleContent>
			<xs:restriction base="dc:SimpleLiteral">
				<xs:simpleType>
					<xs:restriction base="xs:string"/>
				</xs:simpleType>
			</xs:restriction>
		</xs:simpleContent>
	</xs:complexType>
	
</xs:schema>
