JAL-2843 save/restore colour feature by attribute, and feature filters, to Jalview...
[jalview.git] / schemas / JalviewUserColours.xsd
index 9cc7083..3934d66 100755 (executable)
                                        </xs:attribute>
                                        <xs:attribute name="RGB" type="xs:string" use="required"/>
                                        <xs:attribute name="minRGB" type="xs:string" use="optional"/>
-                                       <xs:attribute name="noValueColour" use="optional" default="Min">
-                                               <xs:annotation>
-                                                       <xs:documentation>Colour if no attribute or score value</xs:documentation>
-                                               </xs:annotation>
-                                               <xs:simpleType> 
-                                                       <xs:restriction base="xs:string">
-                                                     <xs:enumeration value="None" />
-                                                     <xs:enumeration value="Min" />
-                                                     <xs:enumeration value="Max" />
-                                                   </xs:restriction>   
-                                           </xs:simpleType> 
-                                       </xs:attribute>
+                                       <xs:attribute name="noValueColour" use="optional" type="jalview:NoValueColour" default="Min" />
                                        <xs:attribute name="threshType" use="optional">
                                                <xs:simpleType> 
                                                        <xs:restriction base="xs:string">
          </xs:attribute> 
        </xs:complexType> 
        
+       <xs:simpleType name="NoValueColour">
+               <xs:annotation>
+                       <xs:documentation>Graduated feature colour if no score (or attribute) value</xs:documentation>
+               </xs:annotation>
+               <xs:restriction base="xs:string">
+             <xs:enumeration value="None" />
+             <xs:enumeration value="Min" />
+             <xs:enumeration value="Max" />
+           </xs:restriction>   
+       </xs:simpleType>
 </xs:schema>