<?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/bib/"
	elementFormDefault="qualified"
	attributeFormDefault="unqualified">
	
	<xs:annotation>
		<xs:documentation>
			PICO AP - Sotto profilo ICCD
			ICCD 2.00 BIB PICO Types XML Schema
			XML Schema for http://purl.org/pico/iccd/2.00/bib/ namespace

			Created 2009-03-17
			Modified 2009-03-17
			Creator Davide Merlitti (d.merlitti@sns.it)
			Contributor Irene Buonazia (i.buonazia@sns.it)
			Contributor Maria Emilia Masci (e.masci@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.
			Per il BIBH è stata imposta una restrizione su una lunghezza di
			esattamente 8 caratteri.
			Per il BIBD è stata usata una espressione regolare basata sulle specifiche
			della normativa iccd:
			"Si riporta l'anno di edizione dell'opera o del contributo nella forma "anno". Se l'edizione dell'opera occupa un
			arco di anni (come alcune opere composte da volumi editi separatamente ma catalogati insieme), si inseriscano
			il primo e l'ultimo anno separati da un "-"."
		</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="BIBG">
		<xs:simpleContent>
			<xs:restriction base="dc:SimpleLiteral">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="250"></xs:maxLength>
					</xs:restriction>
				</xs:simpleType>
			</xs:restriction>
		</xs:simpleContent>
	</xs:complexType>

	<xs:complexType name="BIBT">
		<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="BIBH">
		<xs:simpleContent>
			<xs:restriction base="dc:SimpleLiteral">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="8" />
						<xs:maxLength value="8" />
					</xs:restriction>
				</xs:simpleType>
			</xs:restriction>
		</xs:simpleContent>
	</xs:complexType>

	<xs:complexType name="BIBD">
		<xs:simpleContent>
			<xs:restriction base="dc:SimpleLiteral">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:pattern value="[0-9]{4}(-[0-9]{4})?"></xs:pattern>
					</xs:restriction>
				</xs:simpleType>
			</xs:restriction>
		</xs:simpleContent>
	</xs:complexType>
	
	<xs:complexType name="BIBA">
		<xs:simpleContent>
			<xs:restriction base="dc:SimpleLiteral">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="250"></xs:maxLength>
					</xs:restriction>
				</xs:simpleType>
			</xs:restriction>
		</xs:simpleContent>
	</xs:complexType>
	
	<xs:complexType name="BIBZ">
		<xs:simpleContent>
			<xs:restriction base="dc:SimpleLiteral">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="50"></xs:maxLength>
					</xs:restriction>
				</xs:simpleType>
			</xs:restriction>
		</xs:simpleContent>
	</xs:complexType>
	
	<xs:complexType name="BIBC">
		<xs:simpleContent>
			<xs:restriction base="dc:SimpleLiteral">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="70"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:restriction>
		</xs:simpleContent>
	</xs:complexType>
	
	<xs:complexType name="BIBF">
		<xs:simpleContent>
			<xs:restriction base="dc:SimpleLiteral">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="25"></xs:maxLength>
					</xs:restriction>
				</xs:simpleType>
			</xs:restriction>
		</xs:simpleContent>
	</xs:complexType>
	
	<xs:complexType name="BIBL">
		<xs:simpleContent>
			<xs:restriction base="dc:SimpleLiteral">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="50"></xs:maxLength>
					</xs:restriction>
				</xs:simpleType>
			</xs:restriction>
		</xs:simpleContent>
	</xs:complexType>
	
</xs:schema>
