JAL-1620 version bump and release notes
[jalview.git] / schemas / jalview.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2b1)
4  * Copyright (C) 2014 The Jalview Authors
5  * 
6  * This file is part of Jalview.
7  * 
8  * Jalview is free software: you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License 
10  * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
11  *  
12  * Jalview is distributed in the hope that it will be useful, but 
13  * WITHOUT ANY WARRANTY; without even the implied warranty 
14  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
15  * PURPOSE.  See the GNU General Public License for more details.
16  * 
17  * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
18  * The Jalview Authors are detailed in the 'AUTHORS' file.
19 -->
20 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vamsas="www.vamsas.ac.uk/jalview/version2" xmlns:jalview="www.jalview.org/colours" xmlns:jv="www.jalview.org" xmlns:jvws="www.jalview.org/xml/wsparamset" targetNamespace="www.jalview.org" elementFormDefault="qualified" attributeFormDefault="unqualified">
21                 <xs:import namespace="www.vamsas.ac.uk/jalview/version2" schemaLocation="vamsas.xsd"/>
22         <xs:import namespace="www.jalview.org/colours" schemaLocation="JalviewUserColours.xsd"/>
23         <xs:import namespace="www.jalview.org/xml/wsparamset" schemaLocation="JalviewWsParamSet.xsd"/>
24         <xs:complexType name="JalviewModel">
25                 <xs:sequence>
26                         <xs:element name="creationDate" type="xs:dateTime" />
27                         <xs:element name="version" type="xs:string" />
28                         <xs:element name="vamsasModel" type="vamsas:VAMSAS" />
29                         <xs:sequence>
30                                 <xs:element name="JSeq" maxOccurs="unbounded" minOccurs="0">
31                                         <xs:complexType>
32                                                 <xs:sequence>
33                                                         <xs:element name="features"
34                                                                 type="jv:feature" minOccurs="0" maxOccurs="unbounded" />
35                                                         <xs:element name="pdbids" minOccurs="0"
36                                                                 maxOccurs="unbounded">
37                                                                 <xs:complexType>
38                                                                         <xs:complexContent>
39                                                                                 <xs:extension
40                                                                                         base="jv:pdbentry">
41                                                                                         <xs:sequence>
42                                                                                                 <xs:element
43                                                                                                         name="structureState" minOccurs="0"
44                                                                                                         maxOccurs="unbounded">
45                                                                                                         <xs:complexType>
46                                                                                                                 <xs:simpleContent>
47                                                                                                                         <xs:extension
48                                                                                                                                 base="xs:string">
49                                                                                                                                 <xs:attributeGroup
50                                                                                                                                         ref="jv:swingwindow" />
51                                                                                                                                 <xs:attribute
52                                                                                                                                         name="visible" type="xs:boolean" />
53                                                                                                                                 <xs:attribute
54                                                                                                                                         name="viewId" type="xs:string" use="optional">
55                                                                                                                                         <xs:annotation>
56                                                                                                                                                 <xs:documentation>
57                                                                                                                                                         additional
58                                                                                                                                                         identifier
59                                                                                                                                                         which
60                                                                                                                                                         properly
61                                                                                                                                                         disambiguates
62                                                                                                                                                         the
63                                                                                                                                                         structure
64                                                                                                                                                         view
65                                                                                                                                                         from
66                                                                                                                                                         any
67                                                                                                                                                         other
68                                                                                                                                                         view
69                                                                                                                                                         with
70                                                                                                                                                         the
71                                                                                                                                                         same
72                                                                                                                                                         attributes.
73                                                                                                                                                         This
74                                                                                                                                                         is
75                                                                                                                                                         not
76                                                                                                                                                         an
77                                                                                                                                                         ID,
78                                                                                                                                                         because
79                                                                                                                                                         it
80                                                                                                                                                         is
81                                                                                                                                                         possible
82                                                                                                                                                         to
83                                                                                                                                                         have
84                                                                                                                                                         many
85                                                                                                                                                         references
86                                                                                                                                                         to
87                                                                                                                                                         the
88                                                                                                                                                         same
89                                                                                                                                                         physical
90                                                                                                                                                         structure
91                                                                                                                                                         view
92                                                                                                                                                         from
93                                                                                                                                                         different
94                                                                                                                                                         sequences
95                                                                                                                                                         in
96                                                                                                                                                         an
97                                                                                                                                                         alignment.
98                                                                                                                                                         A
99                                                                                                                                                         structureState
100                                                                                                                                                         element
101                                                                                                                                                         citing
102                                                                                                                                                         the
103                                                                                                                                                         same
104                                                                                                                                                         viewId
105                                                                                                                                                         will
106                                                                                                                                                         appear
107                                                                                                                                                         for
108                                                                                                                                                         each
109                                                                                                                                                         instance.
110                                                                                                                                                 </xs:documentation>
111                                                                                                                                         </xs:annotation>
112                                                                                                                                 </xs:attribute>
113                                                                                                                                 <xs:attribute
114                                                                                                                                         name="alignwithAlignPanel" type="xs:boolean"
115                                                                                                                                         use="optional" default="true">
116                                                                                                                                         <xs:annotation>
117                                                                                                                                                 <xs:documentation>
118                                                                                                                                                         Flag
119                                                                                                                                                         set
120                                                                                                                                                         if
121                                                                                                                                                         the
122                                                                                                                                                         alignment
123                                                                                                                                                         panel
124                                                                                                                                                         containing
125                                                                                                                                                         this
126                                                                                                                                                         JSeq
127                                                                                                                                                         should
128                                                                                                                                                         be
129                                                                                                                                                         included
130                                                                                                                                                         in
131                                                                                                                                                         those
132                                                                                                                                                         used
133                                                                                                                                                         to
134                                                                                                                                                         perform
135                                                                                                                                                         a
136                                                                                                                                                         structure
137                                                                                                                                                         superposition
138                                                                                                                                                         (since
139                                                                                                                                                         Jalview
140                                                                                                                                                         2.7).
141                                                                                                                                                 </xs:documentation>
142                                                                                                                                         </xs:annotation>
143                                                                                                                                 </xs:attribute>
144                                                                                                                                 <xs:attribute
145                                                                                                                                         name="colourwithAlignPanel" type="xs:boolean"
146                                                                                                                                         use="optional" default="false">
147                                                                                                                                         <xs:annotation>
148                                                                                                                                                 <xs:documentation>
149                                                                                                                                                         Flag
150                                                                                                                                                         set
151                                                                                                                                                         if
152                                                                                                                                                         the
153                                                                                                                                                         alignment
154                                                                                                                                                         panel
155                                                                                                                                                         containing
156                                                                                                                                                         this
157                                                                                                                                                         JSeq
158                                                                                                                                                         should
159                                                                                                                                                         be
160                                                                                                                                                         included
161                                                                                                                                                         in
162                                                                                                                                                         those
163                                                                                                                                                         used
164                                                                                                                                                         to
165                                                                                                                                                         colour
166                                                                                                                                                         its
167                                                                                                                                                         associated
168                                                                                                                                                         sequences
169                                                                                                                                                         in
170                                                                                                                                                         this
171                                                                                                                                                         structureState(since
172                                                                                                                                                         Jalview
173                                                                                                                                                         2.7).
174                                                                                                                                                 </xs:documentation>
175                                                                                                                                         </xs:annotation>
176                                                                                                                                 </xs:attribute>
177                                                                                                                                 <xs:attribute
178                                                                                                                                         name="colourByJmol" type="xs:boolean" use="optional"
179                                                                                                                                         default="true">
180                                                                                                                                         <xs:annotation>
181                                                                                                                                                 <xs:documentation>
182                                                                                                                                                         Flag
183                                                                                                                                                         set
184                                                                                                                                                         if
185                                                                                                                                                         the
186                                                                                                                                                         structure
187                                                                                                                                                         display
188                                                                                                                                                         is
189                                                                                                                                                         coloured
190                                                                                                                                                         by
191                                                                                                                                                         the
192                                                                                                                                                         Jmol
193                                                                                                                                                         state,
194                                                                                                                                                         rather
195                                                                                                                                                         than
196                                                                                                                                                         by
197                                                                                                                                                         one
198                                                                                                                                                         or
199                                                                                                                                                         more
200                                                                                                                                                         linked
201                                                                                                                                                         alignment
202                                                                                                                                                         views.
203                                                                                                                                                 </xs:documentation>
204                                                                                                                                         </xs:annotation>
205                                                                                                                                 </xs:attribute>
206
207                                                                                                                         </xs:extension>
208                                                                                                                 </xs:simpleContent>
209                                                                                                         </xs:complexType>
210                                                                                                 </xs:element>
211                                                                                         </xs:sequence>
212                                                                                 </xs:extension>
213                                                                         </xs:complexContent>
214                                                                 </xs:complexType>
215                                                         </xs:element>
216                                                         <xs:element name="hiddenSequences"
217                                                                 type="xs:int" minOccurs="0" maxOccurs="unbounded" />
218                                                 </xs:sequence>
219                                                 <xs:attribute name="colour" type="xs:int"
220                                                         use="optional" />
221                                                 <xs:attribute name="start" type="xs:int"
222                                                         use="required" />
223                                                 <xs:attribute name="end" type="xs:int"
224                                                         use="required" />
225                                                 <xs:attribute name="id" type="xs:string"
226                                                         use="required" />
227                                                 <xs:attribute name="hidden" type="xs:boolean" />
228                                         </xs:complexType>
229                                 </xs:element>
230                                 <xs:element name="JGroup" minOccurs="0"
231                                         maxOccurs="unbounded">
232                                         <xs:complexType>
233             <xs:sequence>
234                                                         <xs:element name="seq" type="xs:string" maxOccurs="unbounded" />
235                                                         <xs:element name="annotationColours" type="jv:AnnotationColourScheme"
236                                                                 minOccurs="0" maxOccurs="1" />
237                                                 </xs:sequence>
238                                                 <xs:attribute name="start" type="xs:int" />
239                                                 <xs:attribute name="end" type="xs:int" />
240                                                 <xs:attribute name="name" type="xs:string" />
241                                                 <xs:attribute name="colour" type="xs:string" />
242                                                 <xs:attribute name="consThreshold"
243                                                         type="xs:int" />
244                                                 <xs:attribute name="pidThreshold" type="xs:int" />
245                                                 <xs:attribute name="outlineColour"
246                                                         type="xs:int" />
247                                                 <xs:attribute name="displayBoxes"
248                                                         type="xs:boolean" />
249                                                 <xs:attribute name="displayText"
250                                                         type="xs:boolean" />
251                                                 <xs:attribute name="colourText"
252                                                         type="xs:boolean" />
253                                                 <xs:attribute name="textCol1" type="xs:int" />
254                                                 <xs:attribute name="textCol2" type="xs:int" />
255                                                 <xs:attribute name="textColThreshold"
256                                                         type="xs:int" />
257                                                 <xs:attribute name="showUnconserved"
258                                                         type="xs:boolean" use="optional" />
259                                                 <xs:attribute name="ignoreGapsinConsensus"
260                                                         type="xs:boolean" use="optional" default="true" />
261                                                 <xs:attribute name="showConsensusHistogram"
262                                                         type="xs:boolean" use="optional" default="true" />
263                                                 <xs:attribute name="showSequenceLogo"
264                                                         type="xs:boolean" use="optional" default="false" />
265                                                 <xs:attribute name="normaliseSequenceLogo"
266               type="xs:boolean" use="optional" default="false" />
267             <xs:attribute name="id" type="xs:string"
268                                                         use="optional">
269                                                         <xs:annotation>
270                                                                 <xs:documentation>
271                                                                         Optional sequence group ID (only
272                                                                         needs to be unique for this
273                                                                         alignment)
274                                                                 </xs:documentation>
275                                                         </xs:annotation>
276                                                 </xs:attribute>
277                                         </xs:complexType>
278                                 </xs:element>
279                                 <xs:element name="Viewport" maxOccurs="unbounded" minOccurs="0">
280                                         <xs:complexType>
281                                                 <xs:sequence>
282                                                         <xs:element name="AnnotationColours" type="jv:AnnotationColourScheme" 
283                                                                 minOccurs="0" maxOccurs="1">
284                                                         </xs:element>
285                                                         <xs:element name="hiddenColumns"
286                                                                 minOccurs="0" maxOccurs="unbounded">
287                                                                 <xs:complexType>
288                                                                         <xs:attribute name="start"
289                                                                                 type="xs:int" />
290                                                                         <xs:attribute name="end"
291                                                                                 type="xs:int" />
292                                                                 </xs:complexType>
293                                                         </xs:element>
294                                                         <xs:element name="calcIdParam" 
295                                                          
296                                                         minOccurs="0" maxOccurs="unbounded">
297                                                         <xs:complexType>
298                                                         <xs:complexContent>
299                                                         <xs:extension base="jvws:WebServiceParameterSet">
300                                                         <xs:attribute name="calcId" type="xs:string" use="required">
301                                                         <xs:annotation>
302                                                         <xs:documentation>handle for the calculation which uses this parameter set</xs:documentation></xs:annotation>
303                                                         </xs:attribute>
304                                                         <xs:attribute name="needsUpdate" type="xs:boolean" use="optional" default="false">
305                                                         <xs:annotation><xs:documentation>should the calculation be performed immediately after loading in order to refresh results</xs:documentation></xs:annotation>
306                                                         </xs:attribute>
307                                                         <xs:attribute name="autoUpdate" type="xs:boolean" use="required">
308                                                         <xs:annotation><xs:documentation>should the calculation be automatically performed on edits</xs:documentation></xs:annotation>
309                                                         </xs:attribute>
310                                                         </xs:extension>
311                                                         </xs:complexContent>
312                                                         </xs:complexType>
313                                                         </xs:element>
314                                                 </xs:sequence>
315                                                 <xs:attributeGroup ref="jv:swingwindow" />
316                                                 <xs:attribute name="conservationSelected"
317                                                         type="xs:boolean" />
318                                                 <xs:attribute name="pidSelected"
319                                                         type="xs:boolean" />
320                                                 <xs:attribute name="bgColour" type="xs:string" />
321                                                 <xs:attribute name="consThreshold"
322                                                         type="xs:int" />
323                                                 <xs:attribute name="pidThreshold" type="xs:int" />
324                                                 <xs:attribute name="title" type="xs:string" />
325                                                 <xs:attribute name="showFullId"
326                                                         type="xs:boolean" />
327                                                 <xs:attribute name="rightAlignIds"
328                                                         type="xs:boolean" />
329                                                 <xs:attribute name="showText" type="xs:boolean" />
330                                                 <xs:attribute name="showColourText"
331                                                         type="xs:boolean" />
332                                                 <xs:attribute name="showUnconserved"
333                                                         type="xs:boolean" use="optional" default="false" />
334                                                 <xs:attribute name="showBoxes"
335                                                         type="xs:boolean" />
336                                                 <xs:attribute name="wrapAlignment"
337                                                         type="xs:boolean" />
338                                                 <xs:attribute name="renderGaps"
339                                                         type="xs:boolean" />
340                                                 <xs:attribute name="showSequenceFeatures"
341                                                         type="xs:boolean" />
342                                                 <xs:attribute name="showNPfeatureTooltip"
343                                                         type="xs:boolean" use="optional" />
344                                                 <xs:attribute name="showDbRefTooltip"
345                                                         type="xs:boolean" use="optional" />
346                                                 <xs:attribute name="followHighlight"
347                                                         type="xs:boolean" use="optional" default="true" />
348                                                 <xs:attribute name="followSelection"
349                                                         type="xs:boolean" use="optional" default="true" />
350                                                 <xs:attribute name="showAnnotation"
351                                                         type="xs:boolean" />
352                                                 <xs:attribute name="centreColumnLabels"
353                                                         type="xs:boolean" use="optional" default="false" />
354                                                 <xs:attribute name="showGroupConservation"
355                                                         type="xs:boolean" use="optional" default="false" />
356                                                 <xs:attribute name="showGroupConsensus"
357                                                         type="xs:boolean" use="optional" default="false" />
358                                                 <xs:attribute name="showConsensusHistogram"
359                                                         type="xs:boolean" use="optional" default="true" />
360                                                 <xs:attribute name="showSequenceLogo"
361                                                         type="xs:boolean" use="optional" default="false" />
362             <xs:attribute name="normaliseSequenceLogo"
363               type="xs:boolean" use="optional" default="false" />
364                                                 <xs:attribute name="ignoreGapsinConsensus"
365                                                         type="xs:boolean" use="optional" default="true" />
366
367                                                 <xs:attribute name="startRes" type="xs:int" />
368                                                 <xs:attribute name="startSeq" type="xs:int" />
369                                                 <xs:attribute name="fontName" type="xs:string" />
370                                                 <xs:attribute name="fontSize" type="xs:int" />
371                                                 <xs:attribute name="fontStyle" type="xs:int" />
372                                                 <xs:attribute name="viewName" type="xs:string" />
373                                                 <xs:attribute name="sequenceSetId"
374                                                         type="xs:string" />
375                                                 <xs:attribute name="gatheredViews"
376                                                         type="xs:boolean" />
377                                                 <xs:attribute name="textCol1" type="xs:int" />
378                                                 <xs:attribute name="textCol2" type="xs:int" />
379                                                 <xs:attribute name="textColThreshold"
380                                                         type="xs:int" />
381                                                 <xs:attribute name="id" type="xs:ID"
382                                                         use="optional">
383                                                         <xs:annotation>
384                                                                 <xs:documentation>
385                                                                         unique id used by jalview to
386                                                                         synchronize between stored and
387                                                                         instantiated views
388                                                                 </xs:documentation>
389                                                         </xs:annotation>
390                                                 </xs:attribute>
391                                         </xs:complexType>
392                                 </xs:element>
393                                 <xs:element name="UserColours" minOccurs="0"
394                                         maxOccurs="unbounded">
395                                         <xs:complexType>
396                                                 <xs:sequence>
397                                                         <xs:element name="UserColourScheme"
398                                                                 type="jalview:JalviewUserColours" />
399                                                 </xs:sequence>
400                                                 <xs:attribute name="id" type="xs:string" />
401                                         </xs:complexType>
402                                 </xs:element>
403                                 <xs:element name="tree" minOccurs="0"
404                                         maxOccurs="unbounded">
405                                         <xs:complexType>
406                                                 <xs:sequence minOccurs="0">
407                                                         <xs:element name="title" type="xs:string" />
408                                                         <xs:element name="newick" type="xs:string" />
409                                                 </xs:sequence>
410                                                 <xs:attribute name="fontName" type="xs:string" />
411                                                 <xs:attribute name="fontSize" type="xs:int" />
412                                                 <xs:attribute name="fontStyle" type="xs:int" />
413                                                 <xs:attribute name="threshold" type="xs:float" />
414                                                 <xs:attribute name="showBootstrap"
415                                                         type="xs:boolean" />
416                                                 <xs:attribute name="showDistances"
417                                                         type="xs:boolean" />
418                                                 <xs:attribute name="markUnlinked"
419                                                         type="xs:boolean" />
420                                                 <xs:attribute name="fitToWindow"
421                                                         type="xs:boolean" />
422                                                 <xs:attribute name="currentTree"
423                                                         type="xs:boolean" />
424                                                 <xs:attribute name="id" type="xs:ID"
425                                                         use="optional">
426                                                         <xs:annotation>
427                                                                 <xs:documentation>
428                                                                         Tree ID added for binding tree
429                                                                         visualization settings to vamsas
430                                                                         document trees in jalview 2.4.1
431                                                                 </xs:documentation>
432                                                         </xs:annotation>
433                                                 </xs:attribute>
434                                                 <xs:attributeGroup ref="jv:swingwindow" />
435                                         </xs:complexType>
436                                 </xs:element>
437                                 <xs:element name="FeatureSettings" minOccurs="0">
438                                         <xs:complexType>
439                                                 <xs:sequence>
440                                                         <xs:element name="setting" minOccurs="0"
441                                                                 maxOccurs="unbounded">
442                                                                 <xs:complexType>
443                                                                         <xs:attribute name="type"
444                                                                                 type="xs:string" use="required" />
445                                                                         <xs:attribute name="colour"
446                                                                                 type="xs:int" use="required" />
447                                                                         <xs:attribute name="display"
448                                                                                 type="xs:boolean" use="required" />
449                                                                         <xs:attribute name="order"
450                                                                                 type="xs:float" use="optional" />
451                                                                         <xs:attribute name="mincolour"
452                                                                                 type="xs:int" use="optional">
453                                                                                 <xs:annotation>
454                                                                                         <xs:documentation>
455                                                                                                 Optional minimum colour
456                                                                                                 for graduated feature
457                                                                                                 colour
458                                                                                         </xs:documentation>
459                                                                                 </xs:annotation>
460                                                                         </xs:attribute>
461                                                                         <xs:attribute name="threshold"
462                                                                                 type="xs:float" use="optional">
463                                                                                 <xs:annotation>
464                                                                                         <xs:documentation>
465                                                                                                 threshold value for
466                                                                                                 graduated feature colour
467                                                                                         </xs:documentation>
468                                                                                 </xs:annotation>
469                                                                         </xs:attribute>
470                                                                         <xs:attribute name="threshstate"
471                                                                                 type="xs:int" use="optional">
472                                                                                 <xs:annotation>
473                                                                                         <xs:documentation>
474                                                                                                 threshold type for
475                                                                                                 graduated feature colour
476                                                                                         </xs:documentation>
477                                                                                 </xs:annotation>
478                                                                         </xs:attribute>
479                                                                         <xs:attribute name="max"
480                                                                                 type="xs:float" use="optional" />
481                                                                         <xs:attribute name="min"
482                                                                                 type="xs:float" use="optional" />
483                                                                         <xs:attribute name="colourByLabel"
484                                                                                 type="xs:boolean" use="optional" />
485                                                                         <xs:attribute name="autoScale"
486                                                                                 type="xs:boolean" use="optional" />
487                                                                 </xs:complexType>
488                                                         </xs:element>
489                                                         <xs:element name="group" minOccurs="0"
490                                                                 maxOccurs="unbounded">
491                                                                 <xs:complexType>
492                                                                         <xs:attribute name="name"
493                                                                                 type="xs:string" use="required" />
494                                                                         <xs:attribute name="display"
495                                                                                 type="xs:boolean" use="required" />
496                                                                 </xs:complexType>
497                                                         </xs:element>
498                                                 </xs:sequence>
499                                         </xs:complexType>
500                                 </xs:element>
501                         </xs:sequence>
502                 </xs:sequence>
503         </xs:complexType>
504         <xs:complexType name="feature">
505                 <xs:sequence>
506                         <xs:element name="otherData" minOccurs="0" maxOccurs="unbounded">
507                                 <xs:complexType>
508                                         <xs:attribute name="key" type="xs:string" use="required"/>
509                                         <xs:attribute name="value" type="xs:string" use="required"/>
510                                 </xs:complexType>
511                         </xs:element>
512                 </xs:sequence>
513                 <xs:attribute name="begin" type="xs:int" use="required"/>
514                 <xs:attribute name="end" type="xs:int" use="required"/>
515                 <xs:attribute name="type" type="xs:string" use="required"/>
516                 <xs:attribute name="description" type="xs:string" use="optional"/>
517                 <xs:attribute name="status" type="xs:string" use="optional"/>
518                 <xs:attribute name="featureGroup" type="xs:string" use="optional"/>
519                 <xs:attribute name="score" type="xs:float" use="optional"/>
520         </xs:complexType>
521         <xs:complexType name="pdbentry">
522                 <xs:sequence minOccurs="0" maxOccurs="unbounded">
523                         <xs:element name="property" minOccurs="0" maxOccurs="unbounded">
524                                 <xs:complexType>
525                                         <xs:attribute name="name" type="xs:string" use="required"/>
526                                         <xs:attribute name="value" type="xs:string" use="required"/>
527                                 </xs:complexType>
528                         </xs:element>
529                 </xs:sequence>
530                 <xs:attribute name="id" type="xs:string" use="required"/>
531                 <xs:attribute name="type" type="xs:string" use="optional"/>
532                 <xs:attribute name="file" type="xs:string"/>
533         </xs:complexType>
534         <!-- 
535         <xs:complexType name="reportWindow">
536         <xs:annotation>
537         <xs:documentation>Generic type for windows containing mime-typed data associated with other jalview windows</xs:documentation>
538         </xs:annotation>
539         <xs:sequence>
540         </xs:sequence>
541     <xs:attribute name="id" type="xs:string" use="required"/>
542     <xs:attribute name="type" type="xs:string" use="optional"/>
543     <xs:attribute name="file" type="xs:string" use="optional"/>
544         </xs:complexType>
545  -->
546     <xs:attributeGroup name="swingwindow">
547     <xs:annotation>
548     <xs:documentation>
549       base attributes for windows displayed in Jalview desktop.
550     </xs:documentation>
551     </xs:annotation>
552       <xs:attribute name="width" type="xs:int"/>
553       <xs:attribute name="height" type="xs:int"/>
554       <xs:attribute name="xpos" type="xs:int"/>
555       <xs:attribute name="ypos" type="xs:int"/>
556     </xs:attributeGroup>
557   <xs:complexType name="AnnotationColourScheme">
558         <xs:attribute name="aboveThreshold" type="xs:int" />
559         <xs:attribute name="annotation" type="xs:string" />
560         <xs:attribute name="minColour" type="xs:int" />
561         <xs:attribute name="maxColour" type="xs:int" />
562         <xs:attribute name="colourScheme" type="xs:string" />
563         <xs:attribute name="threshold" type="xs:float" />
564         <xs:attribute name="perSequence" type="xs:boolean" use="optional" />
565         <xs:attribute name="predefinedColours" type="xs:boolean"
566                 use="optional" />
567   </xs:complexType>
568   
569 </xs:schema>