<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.cienciavitae.pt/ns/dataset" xmlns:dataset="http://www.cienciavitae.pt/ns/dataset"  xmlns:common="http://www.cienciavitae.pt/ns/common">

	<xs:annotation>
    	<xs:documentation>...</xs:documentation>
    </xs:annotation>
    
    <xs:import namespace="http://www.cienciavitae.pt/ns/common" schemaLocation="../common/common.xsd"/>
    
    <xs:element name="public-cv-dataset">
        <xs:annotation>
            <xs:documentation>dataset of public curricula</xs:documentation>
        </xs:annotation>
		<xs:complexType>
			<xs:complexContent>
				<xs:extension base="dataset:filepart-container-ctype">
					<xs:sequence>
						<xs:element name="file-part" type="dataset:filepart-ctype" maxOccurs="unbounded" />
					</xs:sequence>
				</xs:extension>
			</xs:complexContent>
		</xs:complexType>
    </xs:element>
    
    <xs:complexType name="filepart-ctype">
        <xs:simpleContent>
            <xs:extension base="xs:string">
                <xs:attribute name="name" type="xs:string"/>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
    
    <xs:complexType name="filepart-container-ctype">
        <xs:attribute name="total" type="xs:int"/>
        <xs:attribute ref="dataset:datestamp"/>
    </xs:complexType>
    
    <xs:attribute name="datestamp" type="xs:dateTime"/>
    
</xs:schema>