Provenance must contain 1 entry, Alignment may have multiple AlignmentAnnotations
[vamsas.git] / schemas / vamsasDocument.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vdoc="http://www.vamsas.ac.uk/vamsasDocument" xmlns:vamsas="http://www.vamsas.org" targetNamespace="http://www.vamsas.ac.uk/vamsasDocument" elementFormDefault="qualified">
3     <xs:import namespace="http://www.vamsas.org" schemaLocation="vamsas.xsd"/>
4     <xs:element name="VamsasDocument" nillable="false">
5         <xs:complexType>
6             <xs:sequence>
7                 <xs:element name="Version" type="xs:string" minOccurs="1" maxOccurs="1">
8                     <xs:annotation>
9                         <xs:documentation>Vamsas Document Version Number</xs:documentation>
10                     </xs:annotation>
11                 </xs:element>
12                 <xs:element name="LockFile" minOccurs="0" maxOccurs="1">
13                     <xs:complexType>
14                         <xs:simpleContent>
15                             <xs:extension base="xs:string"/>
16                         </xs:simpleContent>
17                     </xs:complexType>
18                 </xs:element>
19                 <xs:element ref="vamsas:Provenance" minOccurs="0" maxOccurs="1"/>
20                 <xs:element ref="vamsas:VAMSAS" minOccurs="1" maxOccurs="unbounded"/>
21                 <xs:element ref="vamsas:ApplicationData" minOccurs="0" maxOccurs="1"/>
22             </xs:sequence>
23         </xs:complexType>
24     </xs:element> 
25 </xs:schema>