verson 0.2 LGPL licensed source and jars
[vamsas.git] / schemas / vamsasDocument.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3    * This file is part of the Vamsas Client version 0.2. 
4    * Copyright 2010 by Jim Procter, Iain Milne, Pierre Marguerite, 
5    *  Andrew Waterhouse and Dominik Lindner.
6    * 
7    * Earlier versions have also been incorporated into Jalview version 2.4 
8    * since 2008, and TOPALi version 2 since 2007.
9    * 
10    * The Vamsas Client is free software: you can redistribute it and/or modify
11    * it under the terms of the GNU Lesser General Public License as published by
12    * the Free Software Foundation, either version 3 of the License, or
13    * (at your option) any later version.
14    *  
15    * The Vamsas Client is distributed in the hope that it will be useful,
16    * but WITHOUT ANY WARRANTY; without even the implied warranty of
17    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18    * GNU Lesser General Public License for more details.
19    * 
20    * You should have received a copy of the GNU Lesser General Public License
21    * along with the Vamsas Client.  If not, see <http://www.gnu.org/licenses/>.
22 -->
23 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vdoc="http://www.vamsas.ac.uk/schemas/1.0/vamsasDocument" xmlns:vamsas="http://www.vamsas.ac.uk/schemas/1.0/vamsasTypes" targetNamespace="http://www.vamsas.ac.uk/schemas/1.0/vamsasDocument" elementFormDefault="qualified">
24     <xs:import namespace="http://www.vamsas.ac.uk/schemas/1.0/vamsasTypes" schemaLocation="vamsas.xsd"/>
25     <xs:element name="VamsasDocument" nillable="false">
26         <xs:complexType>
27             <xs:sequence>
28                 <xs:element name="Version" type="xs:string" minOccurs="1" maxOccurs="1">
29                     <xs:annotation>
30                         <xs:documentation>Vamsas Document Version Number</xs:documentation>
31                     </xs:annotation>
32                 </xs:element>
33                 <xs:element name="LockFile" minOccurs="0" maxOccurs="1">
34                     <xs:complexType>
35                         <xs:simpleContent>
36                             <xs:extension base="xs:string"/>
37                         </xs:simpleContent>
38                     </xs:complexType>
39                 </xs:element>
40                 <xs:element ref="vamsas:Provenance" minOccurs="0" maxOccurs="1"/>
41                 <xs:element ref="vamsas:VAMSAS" minOccurs="1" maxOccurs="unbounded"/>
42                 <xs:element ref="vamsas:ApplicationData" minOccurs="0" maxOccurs="unbounded"/>
43                 <xs:element ref="vamsas:Attachment" minOccurs="0" maxOccurs="unbounded"/>
44             </xs:sequence>
45         </xs:complexType>
46     </xs:element> 
47 </xs:schema>