This file is indexed.

/usr/share/gps/plug-ins/customFiles.xsd is in gnat-gps-common 5.3dfsg-1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
<?xml version="1.0" encoding="utf-8" ?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

   <!--  No targetNamespace specified here, so that we can validate files
         even if they don't use namespaces. -->

   <xsd:annotation>
      <xsd:documentation xml:lang="en">
This file contains the XML Schema description of the GPS customization files.
It is used by GPS to validate the customization files it is given as input.
      </xsd:documentation>
   </xsd:annotation>

   <xsd:complexType name="gps_all_nodes">
     <xsd:choice minOccurs="0" maxOccurs="unbounded">
       <xsd:element ref="action" />
       <xsd:element ref="alias" />
       <xsd:element ref="button" />
       <xsd:element ref="case_exceptions" />
       <xsd:element ref="contextual" />
       <xsd:element ref="docgen_backend" />
       <xsd:element ref="documentation_file" />
       <xsd:element ref="entry" />
       <xsd:element ref="filter" />
       <xsd:element ref="key" />
       <xsd:element ref="Language" />
       <xsd:element ref="menu" />
       <xsd:element ref="pref" />
       <xsd:element ref="preference" />
       <xsd:element ref="project_attribute" />
       <xsd:element ref="stock" />
       <xsd:element ref="submenu" />
       <xsd:element ref="theme" />
       <xsd:element ref="tool" />
       <xsd:element ref="vcs" />
       <xsd:element ref="vsearch-pattern" />
     </xsd:choice>
   </xsd:complexType>

   <xsd:element name="GPS" type="gps_all_nodes">
      <xsd:annotation>
         <xsd:documentation xml:lang="en">
This is the root element of all GPS customization files, if they contain
several kind of customization. If you are just configuring one specific part
(a single menu, a single action,...), you can use the corresponding node as
the root node in the customization file. As usual, there can be only one such
root node.
         </xsd:documentation>
      </xsd:annotation>
   </xsd:element>

   <xsd:simpleType name="emptyNode" >
     <xsd:restriction base="xsd:string">
       <xsd:length value="0" />
     </xsd:restriction>
   </xsd:simpleType>

   <xsd:simpleType name="character">
     <xsd:restriction base="xsd:string">
       <xsd:length value="1" />
     </xsd:restriction>
   </xsd:simpleType>

   <!--  Almost the same as xsd:boolean, but we allow for case insensitive
         values -->
   <xsd:simpleType name="boolean">
     <xsd:restriction base="xsd:string">
       <xsd:enumeration value="true" />
       <xsd:enumeration value="false" />
       <xsd:enumeration value="TRUE" />
       <xsd:enumeration value="FALSE" />
       <xsd:enumeration value="True" />
       <xsd:enumeration value="False" />
       <xsd:enumeration value="1" />
       <xsd:enumeration value="0" />
     </xsd:restriction>
   </xsd:simpleType>

   <!--********************************************************************
     **             Theme                                                **
     ********************************************************************-->

   <xsd:element name="theme">
     <xsd:complexType>
       <xsd:complexContent>
         <xsd:extension base="gps_all_nodes">
           <xsd:attribute name="name"        use="required" type="xsd:string" />
           <xsd:attribute name="description" use="optional" type="xsd:string" />
           <xsd:attribute name="category"    use="optional" type="xsd:string" default="General" />
         </xsd:extension>
       </xsd:complexContent>
     </xsd:complexType>
   </xsd:element>

   <!--********************************************************************
     **             Actions                                              **
     ********************************************************************-->

   <xsd:group name="gps_command">
     <xsd:annotation>
       <xsd:documentation xml:lang="en">The possible elements that can be used
to describe an action that needs to be performed by GPS, either externally or
internally</xsd:documentation>
     </xsd:annotation>
     <xsd:choice>
       <xsd:element ref="external" />
       <xsd:element ref="shell" />
     </xsd:choice>
   </xsd:group>

   <xsd:group name="gps_command_with_on_failure">
     <xsd:annotation>
       <xsd:documentation xml:lang="en">Same as the commands group, except that
the commands can also be followed by an on-failure node which indicates a set
of commands to perform if the command fails</xsd:documentation>
     </xsd:annotation>
     <xsd:sequence>
       <xsd:group   ref="gps_command" minOccurs="1" maxOccurs="1" />
       <xsd:element name="on-failure" minOccurs="0" maxOccurs="1">
         <xsd:complexType>
           <xsd:sequence minOccurs="1" maxOccurs="unbounded">
             <xsd:group ref="gps_command" />
           </xsd:sequence>
         </xsd:complexType>
       </xsd:element>
     </xsd:sequence>
   </xsd:group>

   <xsd:element name="action">
     <xsd:complexType>
       <xsd:choice minOccurs="1" maxOccurs="unbounded">
         <xsd:group ref="gps_command_with_on_failure" minOccurs="1" maxOccurs="unbounded" />
         <xsd:group ref="gps_filter" minOccurs="0" maxOccurs="1" />
         <xsd:element name="description" type="xsd:string" minOccurs="0" maxOccurs="1" />
       </xsd:choice>
       <xsd:attribute name="name"         use="required" type="xsd:string" />
       <xsd:attribute name="category"     use="optional" type="xsd:string"   default="General"/>
       <xsd:attribute name="output"       use="optional" type="xsd:string"   default=""/>
       <xsd:attribute name="show-command" use="optional" type="boolean"      default="true"/>
       <xsd:attribute name="show-task-manager" use="optional" type="boolean"      default="false"/>
     </xsd:complexType>
   </xsd:element>

   <xsd:element name="external">
     <xsd:complexType>
       <xsd:simpleContent>
         <xsd:extension base="xsd:string">
           <xsd:attribute name="show-command"     use="optional" type="boolean"     default="true" />
           <xsd:attribute name="show-task-manager" use="optional" type="boolean"      default="false"/>
           <xsd:attribute name="output"           use="optional" type="xsd:string"  default="" />
           <xsd:attribute name="progress-regexp"  use="optional" type="xsd:string"  default="" />
           <xsd:attribute name="progress-current" use="optional" type="xsd:byte"    default="1" />
           <xsd:attribute name="progress-final"   use="optional" type="xsd:byte"    default="2" />
           <xsd:attribute name="progress-hide"    use="optional" type="boolean"     default="true" />
         </xsd:extension>
       </xsd:simpleContent>
     </xsd:complexType>
   </xsd:element>

   <xsd:simpleType name="shell_language">
     <xsd:annotation>
       <xsd:documentation xml:lang="en">List of all valid languages that can be used
         for shell commands</xsd:documentation>
     </xsd:annotation>
     <xsd:restriction base="xsd:string">
       <xsd:enumeration value="shell" />
       <xsd:enumeration value="python" />
     </xsd:restriction>
   </xsd:simpleType>

   <xsd:element name="shell">
     <xsd:complexType>
       <xsd:simpleContent>
         <xsd:extension base="xsd:string">
           <xsd:attribute name="lang"         use="optional" type="shell_language" default="shell" />
           <xsd:attribute name="show-command" use="optional" type="boolean"        default="true" />
           <xsd:attribute name="output"       use="optional" type="xsd:string"     default="" />
         </xsd:extension>
       </xsd:simpleContent>
     </xsd:complexType>
   </xsd:element>

   <!--********************************************************************
     **             Filters                                              **
     ** This schema cannot represent that if a filter has the "id"       **
     ** attribute, no other attribute is valid                           **
     ********************************************************************-->

   <xsd:group name="gps_filter">
     <xsd:annotation>
       <xsd:documentation xml:lang="en">The various ways a filter can be specified,
to limit the scope of an action for instance</xsd:documentation>
     </xsd:annotation>
     <xsd:choice>
       <xsd:element ref="filter" />
       <xsd:element ref="filter_and" />
       <xsd:element ref="filter_or" />
     </xsd:choice>
   </xsd:group>

   <xsd:attributeGroup name="gps_filter_attributes">
     <xsd:attribute name="name"  use="optional" type="xsd:string" default="" />
     <xsd:attribute name="error" use="optional" type="xsd:string" default="" />
   </xsd:attributeGroup>

   <xsd:element name="filter">
     <xsd:complexType>
       <xsd:attributeGroup ref="gps_filter_attributes" />
       <xsd:attribute name="id"         use="optional" type="xsd:string"     default="" />
       <xsd:attribute name="language"   use="optional" type="xsd:string"     default="" />
       <xsd:attribute name="shell_cmd"  use="optional" type="xsd:string"     default="" />
       <xsd:attribute name="shell_lang" use="optional" type="shell_language" default="shell" />
       <xsd:attribute name="module"     use="optional" type="xsd:string"     default="" />
     </xsd:complexType>
   </xsd:element>

   <xsd:complexType name="gps_filter_type">
     <xsd:group ref="gps_filter" minOccurs="2" maxOccurs="2" />
     <xsd:attributeGroup ref="gps_filter_attributes" />
   </xsd:complexType>
   <xsd:element name="filter_and" type="gps_filter_type" />
   <xsd:element name="filter_or"  type="gps_filter_type" />

   <!--********************************************************************
     **             Menus                                                **
     ********************************************************************-->

   <xsd:element name="submenu">
     <xsd:complexType>
       <xsd:choice minOccurs="0" maxOccurs="unbounded">
         <xsd:element name="title"  maxOccurs="1" type="xsd:string" />
         <xsd:element ref="submenu" maxOccurs="unbounded" />
         <xsd:element ref="menu"    maxOccurs="unbounded" />
       </xsd:choice>
       <xsd:attribute name="before" use="optional" type="xsd:string" default="" />
       <xsd:attribute name="after"  use="optional" type="xsd:string" default="" />
     </xsd:complexType>
   </xsd:element>

   <xsd:element name="menu">
     <xsd:complexType>
       <xsd:choice>
         <xsd:element name="title" minOccurs="1" maxOccurs="1" type="xsd:string" />
       </xsd:choice>
       <xsd:attribute name="action" use="required" type="xsd:string" />
       <xsd:attribute name="before" use="optional" type="xsd:string" default="" />
       <xsd:attribute name="after"  use="optional" type="xsd:string" default="" />
     </xsd:complexType>
   </xsd:element>

   <!--********************************************************************
     **             Contextual                                           **
     ********************************************************************-->

   <xsd:element name="contextual">
     <xsd:complexType>
       <xsd:choice>
         <xsd:element name="title" type="xsd:string" minOccurs="0" maxOccurs="1" />
       </xsd:choice>
       <xsd:attribute name="action" use="required" type="xsd:string" />
       <xsd:attribute name="before" use="optional" type="xsd:string" default="" />
       <xsd:attribute name="after"  use="optional" type="xsd:string" default="" />
     </xsd:complexType>
   </xsd:element>

   <!--********************************************************************
     **             Keys                                                 **
     ********************************************************************-->

   <xsd:element name="key">
     <xsd:complexType>
       <xsd:simpleContent>
         <xsd:extension base="xsd:string">
            <xsd:attribute name="action" use="required" type="xsd:string" />
         </xsd:extension>
       </xsd:simpleContent>
     </xsd:complexType>
   </xsd:element>

   <!--********************************************************************
     **             Tools and switches                                   **
     ********************************************************************-->

   <xsd:attributeGroup name="gps_switches_attribute">
     <xsd:attribute name="line"      use="optional" type="xsd:byte"   default="1" />
     <xsd:attribute name="column"    use="optional" type="xsd:byte"   default="1" />
     <xsd:attribute name="label"     use="required" type="xsd:string" />
     <xsd:attribute name="switch"    use="required" type="xsd:string" />
     <xsd:attribute name="tip"       use="optional" type="xsd:string" default="" />
   </xsd:attributeGroup>

   <xsd:complexType name="gps_switches_spin">
     <xsd:attributeGroup ref="gps_switches_attribute" />
     <xsd:attribute name="min"     use="optional" type="xsd:integer" default="1" />
     <xsd:attribute name="max"     use="optional" type="xsd:integer" default="1" />
     <xsd:attribute name="default" use="optional" type="xsd:integer" default="1" />
     <xsd:attribute name="separator" use="optional" type="xsd:string" />
   </xsd:complexType>

   <xsd:complexType name="gps_switches_combo_entry">
     <xsd:attribute name="label" use="required" type="xsd:string" />
     <xsd:attribute name="value" use="required" type="xsd:string" />
   </xsd:complexType>

   <xsd:complexType name="gps_switches_combo">
     <xsd:sequence maxOccurs="unbounded">
       <xsd:element name="combo-entry" type="gps_switches_combo_entry" maxOccurs="unbounded" />
     </xsd:sequence>
     <xsd:attributeGroup ref="gps_switches_attribute" />
     <xsd:attribute name="noswitch" use="optional" type="xsd:string" default="" />
     <xsd:attribute name="nodigit"  use="optional" type="xsd:string" default="" />
     <xsd:attribute name="separator" use="optional" type="xsd:string" />
   </xsd:complexType>

   <xsd:complexType name="gps_switches_title">
     <xsd:simpleContent>
       <xsd:extension base="xsd:string">
         <xsd:attribute name="line"        use="optional" type="xsd:byte"   default="1" />
         <xsd:attribute name="column"      use="optional" type="xsd:byte"   default="1" />
         <xsd:attribute name="line-span"   use="optional" type="xsd:byte"   default="1" />
         <xsd:attribute name="column-span" use="optional" type="xsd:byte"   default="1" />
       </xsd:extension>
     </xsd:simpleContent>
   </xsd:complexType>

   <xsd:complexType name="gps_switches_check">
     <xsd:attributeGroup ref="gps_switches_attribute" />
   </xsd:complexType>

   <xsd:simpleType name="gps_switches_dependency_status">
     <xsd:restriction base="xsd:string">
       <xsd:enumeration value="on" />
       <xsd:enumeration value="off" />
     </xsd:restriction>
   </xsd:simpleType>

   <xsd:complexType name="gps_switches_dependency">
     <xsd:attribute name="master-page"   use="required" type="xsd:string" />
     <xsd:attribute name="master-switch" use="required" type="xsd:string" />
     <xsd:attribute name="slave-page"    use="required" type="xsd:string" />
     <xsd:attribute name="slave-switch"  use="required" type="xsd:string" />
     <xsd:attribute name="master-status" use="required" type="gps_switches_dependency_status" />
     <xsd:attribute name="slave-status"  use="required" type="gps_switches_dependency_status" />
   </xsd:complexType>

   <xsd:complexType name="gps_switches_radio">
     <xsd:choice minOccurs="1" maxOccurs="1" >
       <xsd:element name="radio-entry">
         <xsd:complexType>
           <xsd:simpleContent>
             <xsd:extension base="xsd:string">
               <xsd:attribute name="label"  use="required" type="xsd:string" />
               <xsd:attribute name="switch" use="required" type="xsd:string" />
               <xsd:attribute name="tip"    use="optional" type="xsd:string" default="" />
             </xsd:extension>
           </xsd:simpleContent>
         </xsd:complexType>
       </xsd:element>
     </xsd:choice>
     <xsd:attribute name="line"        use="optional" type="xsd:byte"   default="1" />
     <xsd:attribute name="column"      use="optional" type="xsd:byte"   default="1" />
   </xsd:complexType>

   <xsd:complexType name="gps_switches_field">
     <xsd:attributeGroup ref="gps_switches_attribute" />
     <xsd:attribute name="separator"    use="optional" type="xsd:string" />
     <xsd:attribute name="as-directory" use="optional" type="boolean" default="false" />
     <xsd:attribute name="as-file"      use="optional" type="boolean" default="false" />
   </xsd:complexType>

   <xsd:complexType name="gps_switches_expansion">
     <xsd:sequence minOccurs="0" maxOccurs="unbounded" >
       <xsd:element name="entry">
         <xsd:complexType>
           <xsd:attribute name="switch" use="required" type="xsd:string" />
         </xsd:complexType>
       </xsd:element>
     </xsd:sequence>
     <xsd:attribute name="switch" use="required" type="xsd:string" />
     <xsd:attribute name="alias"  use="optional" type="xsd:string" />
   </xsd:complexType>

   <xsd:complexType name="gps_switches_popup">
     <xsd:choice maxOccurs="unbounded" >
       <xsd:group ref="gps_switches"/>
     </xsd:choice>
     <xsd:attribute name="line"    use="optional" type="xsd:byte"   default="1" />
     <xsd:attribute name="column"  use="optional" type="xsd:byte"   default="1" />
     <xsd:attribute name="label"   use="required" type="xsd:string" />
     <xsd:attribute name="lines"   use="optional" type="xsd:byte"   default="1" />
     <xsd:attribute name="columns" use="optional" type="xsd:byte"   default="1" />
   </xsd:complexType>

   <xsd:group name="gps_switches">
     <xsd:choice>
       <xsd:element name="title"      type="gps_switches_title"      maxOccurs="unbounded" />
       <xsd:element name="check"      type="gps_switches_check"      maxOccurs="unbounded" />
       <xsd:element name="spin"       type="gps_switches_spin"       maxOccurs="unbounded" />
       <xsd:element name="radio"      type="gps_switches_radio"      maxOccurs="unbounded" />
       <xsd:element name="field"      type="gps_switches_field"      maxOccurs="unbounded" />
       <xsd:element name="combo"      type="gps_switches_combo"      maxOccurs="unbounded" />
       <xsd:element name="dependency" type="gps_switches_dependency" maxOccurs="unbounded" />
       <xsd:element name="expansion"  type="gps_switches_expansion"  maxOccurs="unbounded" />
     </xsd:choice>
   </xsd:group>

   <xsd:complexType name="gps_switches">
       <xsd:choice minOccurs="1" maxOccurs="unbounded">
         <xsd:group ref="gps_switches" minOccurs="0" maxOccurs="unbounded"/>
         <xsd:element name="popup"      type="gps_switches_popup"      maxOccurs="unbounded" />
       </xsd:choice>
       <xsd:attribute name="lines"     use="optional" type="xsd:byte"   default="1" />
       <xsd:attribute name="columns"   use="optional" type="xsd:byte"   default="1" />
       <xsd:attribute name="separator" use="optional" type="xsd:string" default="" />
   </xsd:complexType>

   <xsd:element name="tool">
     <xsd:complexType>
       <xsd:choice maxOccurs="unbounded">
         <xsd:element name="switches"         type="gps_switches" maxOccurs="1" />
         <xsd:element name="language"         type="xsd:string"   minOccurs="0" maxOccurs="unbounded" />
         <xsd:element name="initial-cmd-line" type="xsd:string"   maxOccurs="1" />
       </xsd:choice>
       <xsd:attribute name="name"      use="required" type="xsd:string" />
       <xsd:attribute name="package"   use="optional" type="xsd:string" default="ide" />
       <xsd:attribute name="attribute" use="optional" type="xsd:string" default="default_switches" />
       <xsd:attribute name="index"     use="optional" type="xsd:string" />
     </xsd:complexType>
   </xsd:element>

   <!--******************************************************************
     **             Vsearch pattern                                    **
     ********************************************************************-->

   <xsd:element name="vsearch-pattern">
     <xsd:complexType>
       <xsd:choice maxOccurs="unbounded">
         <xsd:element name="name"   type="xsd:string" maxOccurs="1" />
         <xsd:element name="regexp" type="xsd:string" maxOccurs="1" />
         <xsd:element name="string" type="xsd:string" maxOccurs="1" />
       </xsd:choice>
     </xsd:complexType>
   </xsd:element>

   <!--******************************************************************
     **             Alias                                              **
     ********************************************************************-->

   <xsd:element name="alias">
     <xsd:complexType>
       <xsd:choice maxOccurs="unbounded">
         <xsd:element name="param" maxOccurs="unbounded">
           <xsd:complexType>
             <xsd:simpleContent>
               <xsd:extension base="xsd:string">
                  <xsd:attribute name="name"        use="required" type="xsd:string" />
                  <xsd:attribute name="environment" use="optional" type="boolean" default="false" />
               </xsd:extension>
             </xsd:simpleContent>
           </xsd:complexType>
         </xsd:element>
         <xsd:element name="text" type="xsd:string" maxOccurs="1" />
       </xsd:choice>
       <xsd:attribute name="name"   use="required" type="xsd:string" />
       <xsd:attribute name="indent" use="optional" type="boolean" default="true" />
     </xsd:complexType>
   </xsd:element>

   <!--******************************************************************
     **             Language                                           **
     ********************************************************************-->

   <xsd:complexType name="gps_language_context">
     <xsd:choice maxOccurs="unbounded">
       <xsd:element name="Comment_Start"          type="xsd:string"  maxOccurs="1" />
       <xsd:element name="Comment_End"            type="xsd:string"  maxOccurs="1" />
       <xsd:element name="New_Line_Comment_Start" type="xsd:string"  maxOccurs="1" />
       <xsd:element name="String_Delimiter"       type="xsd:string"  maxOccurs="1" />
       <xsd:element name="Quote_Character"        type="character"   maxOccurs="1" />
       <xsd:element name="Constant_Character"     type="character"   maxOccurs="1" />
       <xsd:element name="Can_Indent"             type="boolean" maxOccurs="1" />
       <xsd:element name="Syntax_Highlighting"    type="boolean" maxOccurs="1" />
       <xsd:element name="Case_Sensitive"         type="boolean" maxOccurs="1" />
     </xsd:choice>
   </xsd:complexType>

   <xsd:simpleType name="gps_language_category_list">
     <xsd:restriction base="xsd:string">
       <xsd:enumeration value="package" />
       <xsd:enumeration value="namespace" />
       <xsd:enumeration value="procedure" />
       <xsd:enumeration value="function" />
       <xsd:enumeration value="task" />
       <xsd:enumeration value="method" />
       <xsd:enumeration value="constructor" />
       <xsd:enumeration value="destructor" />
       <xsd:enumeration value="protected" />
       <xsd:enumeration value="entry" />
       <xsd:enumeration value="class" />
       <xsd:enumeration value="structure" />
       <xsd:enumeration value="union" />
       <xsd:enumeration value="type" />
       <xsd:enumeration value="subtype" />
       <xsd:enumeration value="variable" />
       <xsd:enumeration value="local_variable" />
       <xsd:enumeration value="representation_clause" />
       <xsd:enumeration value="with" />
       <xsd:enumeration value="use" />
       <xsd:enumeration value="include" />
       <xsd:enumeration value="loop_statement" />
       <xsd:enumeration value="case_statement" />
       <xsd:enumeration value="if_statement" />
       <xsd:enumeration value="select_statement" />
       <xsd:enumeration value="accept_statement" />
       <xsd:enumeration value="declare_block" />
       <xsd:enumeration value="simple_block" />
       <xsd:enumeration value="exception_handler" />
     </xsd:restriction>
   </xsd:simpleType>

   <xsd:complexType name="gps_language_category">
     <xsd:choice maxOccurs="unbounded">
       <xsd:element name="Name"      type="gps_language_category_list" minOccurs="1" maxOccurs="1" />
       <xsd:element name="Pattern"   type="xsd:string"                 minOccurs="1" maxOccurs="1" />
       <xsd:element name="Index"     type="xsd:byte"                   minOccurs="1" maxOccurs="1" />
       <xsd:element name="End_Index" type="xsd:byte"                   minOccurs="0" maxOccurs="1" />
       <xsd:element name="Icon"      type="xsd:string"                 minOccurs="1" maxOccurs="1" />
     </xsd:choice>
   </xsd:complexType>

   <xsd:complexType name="gps_language_categories">
     <xsd:choice maxOccurs="unbounded">
       <xsd:element name="Category" type="gps_language_category" />
     </xsd:choice>
   </xsd:complexType>

   <xsd:element name="Language">
     <xsd:complexType>
       <xsd:choice maxOccurs="unbounded">
         <xsd:element name="Name"        type="xsd:string" minOccurs="1" maxOccurs="1" />
         <xsd:element name="Parent"      type="xsd:string" minOccurs="0" maxOccurs="1" />
         <xsd:element name="Spec_Suffix" type="xsd:string" minOccurs="0" maxOccurs="1" />
         <xsd:element name="Body_Suffix" type="xsd:string" minOccurs="0" maxOccurs="1" />
         <xsd:element name="Extension" minOccurs="0" maxOccurs="unbounded" >
           <xsd:simpleType>
             <xsd:restriction base="xsd:string">
               <xsd:pattern value="\..*" />
             </xsd:restriction>
           </xsd:simpleType>
         </xsd:element>
         <xsd:element name="Keywords"         type="xsd:string"              minOccurs="0" maxOccurs="unbounded" />
         <xsd:element name="Engine"           type="xsd:string"              maxOccurs="1" />
         <xsd:element name="Comment_Line"     type="xsd:string"              maxOccurs="1" />
         <xsd:element name="Parse_Constructs" type="xsd:string"              maxOccurs="1" />
         <xsd:element name="Format_Buffer"    type="xsd:string"              maxOccurs="1" />
         <xsd:element name="Parse_Entities"   type="xsd:string"              maxOccurs="1" />
         <xsd:element name="Context"          type="gps_language_context"    maxOccurs="1" />
         <xsd:element name="Categories"       type="gps_language_categories" maxOccurs="1" />

         <!--  This element is currently not documented in gps.texi, but it
               isn't used either in the Ada core. Since it is present in some
               XML files, we have to support it at the schema level, though -->
         <xsd:element name="Project_Field">
           <xsd:complexType>
             <xsd:simpleContent>
               <xsd:restriction base="xsd:string">
                 <xsd:attribute name="name"  type="xsd:string" use="required" />
                 <xsd:attribute name="index" type="xsd:string" use="required" />
               </xsd:restriction>
             </xsd:simpleContent>
            </xsd:complexType>
         </xsd:element>
       </xsd:choice>
     </xsd:complexType>
   </xsd:element>

   <!--******************************************************************
     **             VCS                                                **
     ********************************************************************-->

   <xsd:complexType name="gps_vcs_operation">
     <xsd:attribute name="action" use="required" type="xsd:string" />
     <xsd:attribute name="label"  use="required" type="xsd:string" />
   </xsd:complexType>

   <xsd:complexType name="gps_vcs_status">
     <xsd:attribute name="label" use="required" type="xsd:string" />
     <xsd:attribute name="stock" use="required" type="xsd:string" />
   </xsd:complexType>

   <xsd:complexType name="gps_vcs_status_parser">
     <xsd:choice maxOccurs="unbounded">
       <xsd:element name="regexp"                    type="xsd:string" minOccurs="1" maxOccurs="1" />
       <xsd:element name="file_index"                type="xsd:byte"   maxOccurs="1" />
       <xsd:element name="status_index"              type="xsd:byte"   maxOccurs="1" />
       <xsd:element name="local_revision_index"      type="xsd:byte"   maxOccurs="1" />
       <xsd:element name="repository_revision_index" type="xsd:byte"   maxOccurs="1" />
       <xsd:element name="status_matcher"            type="xsd:byte"   maxOccurs="unbounded" >
         <xsd:complexType>
           <xsd:simpleContent>
             <xsd:restriction base="xsd:string">
               <xsd:attribute name="label" use="required" type="xsd:string" />
             </xsd:restriction>
           </xsd:simpleContent>
         </xsd:complexType>
       </xsd:element>
     </xsd:choice>
     <xsd:attribute name="label" use="required" type="xsd:string" />
     <xsd:attribute name="stock" use="required" type="xsd:string" />
   </xsd:complexType>

   <xsd:complexType name="gps_vcs_annotations_parser">
     <xsd:choice maxOccurs="unbounded">
       <xsd:element name="regexp"                    type="xsd:string" minOccurs="1" maxOccurs="1" />
       <xsd:element name="repository_revision_index" type="xsd:byte"   maxOccurs="1" />
       <xsd:element name="file_index"                type="xsd:byte"   maxOccurs="1" />
     </xsd:choice>
   </xsd:complexType>

   <xsd:element name="vcs">
     <xsd:complexType>
       <xsd:choice maxOccurs="unbounded">
          <xsd:element name="status_files"        type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="status_dir"          type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="local_status_files"  type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="open"                type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="update"              type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="update_dir"          type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="resolved"            type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="commit"              type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="commit_dir"          type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="history"             type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="history_revision"    type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="annotate"            type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="add"                 type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="add_no_commit"       type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="remove"              type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="revert"              type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="diff_head"           type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="diff_base_head"      type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="diff_working"        type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="diff"                type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="diff2"               type="gps_vcs_operation"          maxOccurs="1"/>
          <xsd:element name="status"              type="gps_vcs_status"             maxOccurs="unbounded" />
          <xsd:element name="status_parser"       type="gps_vcs_status_parser"      maxOccurs="unbounded" />
          <xsd:element name="local_status_parser" type="gps_vcs_status_parser"      maxOccurs="unbounded" />
          <xsd:element name="annotations_parser"  type="gps_vcs_annotations_parser" maxOccurs="unbounded" />
       </xsd:choice>
       <xsd:attribute name="name"            use="required" type="xsd:string" />
       <xsd:attribute name="absolute_names"  use="required" type="boolean" />
       <xsd:attribute name="atomic_commands" use="optional" type="boolean" default="false"/>
     </xsd:complexType>
   </xsd:element>

   <!--******************************************************************
     **             Docgen                                             **
     ********************************************************************-->

   <xsd:element name="docgen_backend">
     <xsd:complexType>
       <xsd:choice maxOccurs="unbounded">
         <xsd:element name="block_template"                    type="xsd:string" maxOccurs="1" />
         <xsd:element name="calls_references_template"         type="xsd:string" maxOccurs="1" />
         <xsd:element name="caller_references_template"        type="xsd:string" maxOccurs="1" />
         <xsd:element name="char_template"                     type="xsd:string" maxOccurs="1" />
         <xsd:element name="comment_template"                  type="xsd:string" maxOccurs="1" />
         <xsd:element name="description"                       type="xsd:string" minOccurs="1" maxOccurs="1" />
         <xsd:element name="description_template"              type="xsd:string" maxOccurs="1" />
         <xsd:element name="entity_template"                   type="xsd:string" maxOccurs="1" />
         <xsd:element name="exception_template"                type="xsd:string" maxOccurs="1" />
         <xsd:element name="extension"                         type="xsd:string" minOccurs="1" maxOccurs="1" />
         <xsd:element name="file_footer_template"              type="xsd:string" maxOccurs="1" />
         <xsd:element name="file_header_template"              type="xsd:string" maxOccurs="1" />
         <xsd:element name="footer_template"                   type="xsd:string" maxOccurs="1" />
         <xsd:element name="header_template"                   type="xsd:string" maxOccurs="1" />
         <xsd:element name="index_footer_template"             type="xsd:string" maxOccurs="1" />
         <xsd:element name="item_index_template"               type="xsd:string" maxOccurs="1" />
         <xsd:element name="keyword_template"                  type="xsd:string" maxOccurs="1" />
         <xsd:element name="link_template"                     type="xsd:string" maxOccurs="1" />
         <xsd:element name="main_frame_template"               type="xsd:string" maxOccurs="1" />
         <xsd:element name="package_desc_template"             type="xsd:string" maxOccurs="1" />
         <xsd:element name="package_template"                  type="xsd:string" maxOccurs="1" />
         <xsd:element name="private_header_template"           type="xsd:string" maxOccurs="1" />
         <xsd:element name="private_index_header_template"     type="xsd:string" maxOccurs="1" />
         <xsd:element name="public_index_header_template"      type="xsd:string" maxOccurs="1" />
         <xsd:element name="string_template"                   type="xsd:string" maxOccurs="1" />
         <xsd:element name="subprogram_index_header_template"  type="xsd:string" maxOccurs="1" />
         <xsd:element name="subprogram_template"               type="xsd:string" maxOccurs="1" />
         <xsd:element name="subtitle_template"                 type="xsd:string" maxOccurs="1" />
         <xsd:element name="tagged_type_index_header_template" type="xsd:string" maxOccurs="1" />
         <xsd:element name="tagged_type_index_template"        type="xsd:string" maxOccurs="1" />
         <xsd:element name="tagged_type_template"              type="xsd:string" maxOccurs="1" />
         <xsd:element name="type_index_header_template"        type="xsd:string" maxOccurs="1" />
         <xsd:element name="type_template"                     type="xsd:string" maxOccurs="1" />
         <xsd:element name="unit_index_header_template"        type="xsd:string" maxOccurs="1" />
         <xsd:element name="variable_template"                 type="xsd:string" maxOccurs="1" />
         <xsd:element name="with_template"                     type="xsd:string" maxOccurs="1" />
       </xsd:choice>
       <xsd:attribute name="name"   use="required" type="xsd:string" />
       <xsd:attribute name="format" use="optional" type="xsd:string" fixed="text" />
     </xsd:complexType>
   </xsd:element>

   <!--******************************************************************
     **             Icons                                              **
     ********************************************************************-->

   <xsd:element name="stock">
     <xsd:complexType>
       <xsd:sequence maxOccurs="unbounded">
         <xsd:element name="icon">
           <xsd:complexType>
             <xsd:attribute name="id"   use="required" type="xsd:string" />
             <xsd:attribute name="file" use="required" type="xsd:string" />
           </xsd:complexType>
         </xsd:element>
       </xsd:sequence>
     </xsd:complexType>
   </xsd:element>

   <!--******************************************************************
     **             Preferences                                        **
     ********************************************************************-->

   <xsd:simpleType name="gps_preference_type">
     <xsd:restriction base="xsd:string">
       <xsd:enumeration value="boolean" />
       <xsd:enumeration value="integer" />
       <xsd:enumeration value="string"  />
       <xsd:enumeration value="color"   />
       <xsd:enumeration value="font"    />
       <xsd:enumeration value="choices" />
     </xsd:restriction>
   </xsd:simpleType>

   <xsd:element name="preference">
     <xsd:complexType>
       <xsd:attribute name="name"    use="required" type="xsd:string" />
       <xsd:attribute name="page"    use="optional" type="xsd:string" default="General" />
       <xsd:attribute name="default" use="optional" type="xsd:string" />
       <xsd:attribute name="tip"     use="optional" type="xsd:string" default="" />
       <xsd:attribute name="label"   use="required" type="xsd:string" />
       <xsd:attribute name="type"    use="required" type="gps_preference_type" />
     </xsd:complexType>
   </xsd:element>

   <xsd:element name="pref">
     <xsd:complexType>
       <xsd:simpleContent>
         <xsd:restriction base="xsd:string">
           <xsd:attribute name="name" use="required" type="xsd:string" />
         </xsd:restriction>
       </xsd:simpleContent>
     </xsd:complexType>
   </xsd:element>

   <!--******************************************************************
     **             Project attributes                                 **
     ********************************************************************-->

   <xsd:complexType name="gps_project_attribute_string">
     <xsd:attribute name="default" use="optional" type="xsd:string" />
     <xsd:attribute name="type"    use="optional" default="">
       <xsd:simpleType>
         <xsd:restriction base="xsd:string">
           <xsd:enumeration value="" />
           <xsd:enumeration value="file" />
           <xsd:enumeration value="directory" />
         </xsd:restriction>
       </xsd:simpleType>
     </xsd:attribute>
   </xsd:complexType>

   <xsd:group name="gps_project_attribute_choice">
     <xsd:sequence>
       <xsd:element name="choice" type="xsd:string" maxOccurs="unbounded">
         <xsd:complexType>
           <xsd:simpleContent>
             <xsd:extension base="xsd:string">
               <xsd:attribute name="default" use="optional" type="boolean" default="false" />
             </xsd:extension>
           </xsd:simpleContent>
         </xsd:complexType>
       </xsd:element>
       <xsd:element name="string" type="emptyNode"  maxOccurs="1" />
     </xsd:sequence>
   </xsd:group>

   <xsd:complexType name="gps_project_attribute_shell">
     <xsd:simpleContent>
       <xsd:extension base="xsd:string">
         <xsd:attribute name="lang"    use="optional" type="shell_language" default="shell" />
         <xsd:attribute name="default" use="optional" type="xsd:string"     default="" />
       </xsd:extension>
     </xsd:simpleContent>
   </xsd:complexType>

   <xsd:group name="gps_project_attribute_types">
     <xsd:choice>
       <xsd:group   ref="gps_project_attribute_choice" />
       <xsd:element name="string"            type="gps_project_attribute_string"/>
       <xsd:element name="shell"             type="gps_project_attribute_shell" />
     </xsd:choice>
   </xsd:group>

   <xsd:complexType name="gps_project_attribute_index">
     <xsd:choice>
       <xsd:group ref="gps_project_attribute_types" minOccurs="1" maxOccurs="1" />
     </xsd:choice>
     <xsd:attribute name="attribute" use="required" type="xsd:string" />
     <xsd:attribute name="package"   use="optional" type="xsd:string" default="" />
   </xsd:complexType>

   <xsd:complexType name="gps_project_attribute_specialized_index">
     <xsd:choice>
       <xsd:group ref="gps_project_attribute_types" minOccurs="1" maxOccurs="1" />
     </xsd:choice>
     <xsd:attribute name="value" use="required" type="xsd:string" />
   </xsd:complexType>

   <xsd:element name="project_attribute">
     <xsd:complexType>
       <xsd:choice>
         <xsd:group   ref="gps_project_attribute_types" />
         <xsd:sequence>
           <xsd:element name="index"             type="gps_project_attribute_index" minOccurs="1" maxOccurs="1" />
           <xsd:element name="specialized_index" type="gps_project_attribute_specialized_index" maxOccurs="unbounded" />
         </xsd:sequence>
       </xsd:choice>
       <xsd:attribute name="package"              use="optional" type="xsd:string" default="" />
       <xsd:attribute name="name"                 use="required" type="xsd:string" />
       <xsd:attribute name="editor_page"          use="optional" type="xsd:string" default="General" />
       <xsd:attribute name="editor_section"       use="optional" type="xsd:string" default="" />
       <xsd:attribute name="label"                use="optional" type="xsd:string" />
       <xsd:attribute name="description"          use="optional" type="xsd:string" default="" />
       <xsd:attribute name="list"                 use="optional" type="boolean"    default="false" />
       <xsd:attribute name="ordered"              use="optional" type="boolean"    default="false" />
       <xsd:attribute name="omit_if_default"      use="optional" type="boolean"    default="true" />
       <xsd:attribute name="base_name_only"       use="optional" type="boolean"    default="false" />
       <xsd:attribute name="case_sensitive_index" use="optional" type="boolean"    default="false" />
       <xsd:attribute name="hide_in"              use="optional"                   default="" >
          <xsd:simpleType>
             <xsd:list itemType="xsd:string" />
          </xsd:simpleType>
       </xsd:attribute>
       <xsd:attribute name="disable_if_not_set"   use="optional" type="boolean"    default="false" />
       <xsd:attribute name="disable"              use="optional"                   default="">
          <xsd:simpleType>
             <xsd:list itemType="xsd:string" />
          </xsd:simpleType>
       </xsd:attribute>
     </xsd:complexType>
   </xsd:element>

   <!--******************************************************************
     **             Case exceptions                                    **
     ********************************************************************-->

   <xsd:element name="case_exceptions" >
     <xsd:complexType>
       <xsd:choice maxOccurs="unbounded">
         <xsd:element name="word"      type="xsd:string" />
         <xsd:element name="substring" type="xsd:string" />
       </xsd:choice>
     </xsd:complexType>
   </xsd:element>

   <!--******************************************************************
     **             Documentation                                      **
     ********************************************************************-->

   <xsd:element name="documentation_file">
     <xsd:complexType>
       <xsd:choice maxOccurs="unbounded">
         <xsd:element name="name"  type="xsd:string" minOccurs="0" maxOccurs="1" />
         <xsd:element name="shell" minOccurs="0" maxOccurs="1">
           <xsd:complexType>
             <xsd:simpleContent>
               <xsd:extension base="xsd:string">
                 <xsd:attribute name="lang" type="shell_language" use="optional" default="shell" />
               </xsd:extension>
             </xsd:simpleContent>
           </xsd:complexType>
         </xsd:element>
         <xsd:element name="descr"    type="xsd:string" minOccurs="0" maxOccurs="1" />
         <xsd:element name="category" type="xsd:string" minOccurs="0" maxOccurs="1" />
         <xsd:element name="menu"     type="xsd:string" minOccurs="0" maxOccurs="1" />
       </xsd:choice>
       <xsd:attribute name="before" use="optional" type="xsd:string" default="" />
       <xsd:attribute name="after"  use="optional" type="xsd:string" default="" />
     </xsd:complexType>
   </xsd:element>

   <!--******************************************************************
     **             Toolbar                                            **
     ********************************************************************-->

   <xsd:element name="button">
     <xsd:complexType>
       <xsd:choice minOccurs="0" maxOccurs="2">
         <xsd:element name="title"  type="xsd:string" maxOccurs="1"/>
         <xsd:element name="pixmap" type="xsd:string" maxOccurs="1"/>
       </xsd:choice>
       <xsd:attribute name="action" use="required" type="xsd:string" />
     </xsd:complexType>
   </xsd:element>

   <xsd:element name="entry">
     <xsd:complexType>
       <xsd:choice minOccurs="1" maxOccurs="unbounded">
         <xsd:element name="choice">
           <xsd:complexType>
             <xsd:simpleContent>
               <xsd:extension base="xsd:string">
                 <xsd:attribute name="on-selected" use="optional" type="xsd:string" />
               </xsd:extension>
             </xsd:simpleContent>
           </xsd:complexType>
         </xsd:element>
       </xsd:choice>
       <xsd:attribute name="id"         use="required" type="xsd:string" />
       <xsd:attribute name="label"      use="optional" type="xsd:string" default=""/>
       <xsd:attribute name="on-changed" use="optional" type="xsd:string" default=""/>
     </xsd:complexType>
   </xsd:element>

</xsd:schema>