extend XML model for graduated feature colours, group associated manual/auto annotati...
[jalview.git] / schemas / JalviewUserColours.xsd
index 84220c2..3afe53f 100755 (executable)
@@ -1,15 +1,51 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by lj (jl) -->\r
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="www.jalview.org/colours">\r
-       <xs:complexType name="JalviewUserColours">\r
-               <xs:sequence>\r
-                       <xs:element name="colour" maxOccurs="unbounded">\r
-                               <xs:complexType>\r
-                                       <xs:attribute name="Name" type="xs:string"/>\r
-                                       <xs:attribute name="RGB" type="xs:string" use="required"/>\r
-                               </xs:complexType>\r
-                       </xs:element>\r
-               </xs:sequence>\r
-               <xs:attribute name="schemeName" type="xs:string" use="optional"/>\r
-       </xs:complexType>\r
-</xs:schema>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
+  Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
+  
+  This program is free software; you can redistribute it and/or
+  modify it under the terms of the GNU General Public License
+  as published by the Free Software Foundation; either version 2
+  of the License, or (at your option) any later version.
+  
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+  
+  You should have received a copy of the GNU General Public License
+  along with this program; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+-->
+
+<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by lj (jl) -->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="www.jalview.org/colours">
+       <xs:complexType name="JalviewUserColours">
+               <xs:sequence>
+                       <xs:element name="Version" maxOccurs="1" minOccurs="0" type="xs:string">\r                               <xs:annotation>
+                               <xs:documentation>
+                               Jalview colour scheme document version.
+                               </xs:documentation>
+                               </xs:annotation>
+                       </xs:element>
+                       <xs:element name="colour" maxOccurs="unbounded" minOccurs="0">
+                               <xs:complexType>
+                                       <xs:attribute name="Name" type="xs:string"/>
+                                       <xs:attribute name="RGB" type="xs:string" use="required"/>
+                                       <xs:attribute name="minRGB" type="xs:string" use="optional"/>
+                                       <xs:attribute name="threshType" type="xs:string" use="optional">
+                                       <xs:annotation>
+                                       <xs:documentation>loosely specified enumeration: NONE,ABOVE, or BELOW</xs:documentation>
+                                       </xs:annotation>
+                                       </xs:attribute>
+                                       <xs:attribute name="threshold" type="xs:float" use="optional"/>
+                                       <xs:attribute name="max" type="xs:float" use="optional"/>
+                                       <xs:attribute name="min" type="xs:float" use="optional"/>
+                                       <xs:attribute name="colourByLabel" type="xs:boolean" use="optional"/>
+                                       <xs:attribute name="autoScale" type="xs:boolean" use="optional"/>
+                               </xs:complexType>
+                       </xs:element>
+               </xs:sequence>
+               <xs:attribute name="schemeName" type="xs:string" use="optional"/>
+       </xs:complexType>
+</xs:schema>