-
Notifications
You must be signed in to change notification settings - Fork 7.2k
/
Format.xsd
758 lines (758 loc) · 36.6 KB
/
Format.xsd
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
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xsi:schemaLocation="http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">
<xs:element name="Configuration">
<xs:annotation>
<xs:documentation>Represents the top-level element of a formatting file.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:all>
<xs:element minOccurs="0" name="DefaultSettings" maxOccurs="1" type="DefaultSettings">
<xs:annotation>
<xs:documentation>Optional element. Defines common settings that apply to all the views of the formatting file.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="SelectionSets" maxOccurs="1" type="SelectionSets">
<xs:annotation>
<xs:documentation>Optional element. Defines the common sets of .NET objects that can be used by all views of the formatting file.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Controls" maxOccurs="1" type="Controls">
<xs:annotation>
<xs:documentation>Optional element. Defines the common controls that can be used by all views of the formatting file.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="ViewDefinitions" maxOccurs="1" type="ViewDefinitions">
<xs:annotation>
<xs:documentation>Optional element. Defines the views used to display objects.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
<xs:complexType name="DefaultSettings">
<xs:annotation>
<xs:documentation>Defines common settings that apply to all the views of the formatting file. Common settings include displaying errors, wrapping text in tables, defining how collections are expanded, and more.</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element default="false" minOccurs="0" name="ShowError" maxOccurs="1" type="Boolean">
<xs:annotation>
<xs:documentation>Optional element. Specifies that the full error record is displayed when an error occurs while displaying a piece of data.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element default="false" minOccurs="0" name="DisplayError" maxOccurs="1" type="Boolean">
<xs:annotation>
<xs:documentation>Optional element. Specifies that the string #ERR is displayed when an error occurs while displaying a piece of data.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element default="4" minOccurs="0" name="PropertyCountForTable" maxOccurs="1" type="xs:nonNegativeInteger">
<xs:annotation>
<xs:documentation>Optional element. Specifies the minimum number of properties that an object must have to display the object in a table view.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element default="false" minOccurs="0" name="WrapTables" maxOccurs="1" type="Boolean">
<xs:annotation>
<xs:documentation>Optional element. Specifies that data in a table is moved to the next line if it does not fit into the width of the column.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="EnumerableExpansions" maxOccurs="1" type="EnumerableExpansions">
<xs:annotation>
<xs:documentation>Optional element. Defines the different ways that .NET objects are expanded when they are displayed in a view.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="EnumerableExpansions">
<xs:annotation>
<xs:documentation>Defines how .NET collection objects are expanded when they are displayed in a view.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element minOccurs="0" name="EnumerableExpansion" maxOccurs="unbounded" type="EnumerableExpansion">
<xs:annotation>
<xs:documentation>Optional element. Defines the specific .NET collection objects that are expanded when they are displayed in a view.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="EnumerableExpansion">
<xs:annotation>
<xs:documentation>Defines how specific .NET collection objects are expanded when they are displayed in a view.</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element minOccurs="0" name="EntrySelectedBy" maxOccurs="1" type="EntrySelectedBy">
<xs:annotation>
<xs:documentation>Optional element. Defines which .NET collection objects are expanded by this definition.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Expand" maxOccurs="1" type="Expand">
<xs:annotation>
<xs:documentation>Specifies how the collection object is expanded for this definition.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:simpleType name="Expand">
<xs:annotation>
<xs:documentation>Specifies how the collection object is expanded for this definition.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="CoreOnly" />
<xs:enumeration value="EnumOnly" />
<xs:enumeration value="Both" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ViewDefinitions">
<xs:annotation>
<xs:documentation>Defines the views used to display .NET objects. These views can display the properties and script values of an object in a table format, list format, wide format, and custom control format.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="View" maxOccurs="unbounded" type="View">
<xs:annotation>
<xs:documentation>Defines a view that is used to display one or more .NET objects.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="View">
<xs:annotation>
<xs:documentation>Defines a view that displays one or more .NET objects. There is no limit to the number of views that can be defined in a formatting file.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="ViewCommon">
<xs:sequence>
<xs:choice>
<xs:element name="TableControl" type="TableControl">
<xs:annotation>
<xs:documentation>Optional element. Defines a table format for the view.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ListControl" type="ListControl">
<xs:annotation>
<xs:documentation>Optional element. Defines a list format for the view.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="WideControl" type="WideControl">
<xs:annotation>
<xs:documentation>Optional element. Defines a wide (single value) list format for the view.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CustomControl" type="CustomControl">
<xs:annotation>
<xs:documentation>Optional element. Defines a custom control format for the view.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="ViewCommon">
<xs:sequence>
<xs:element name="Name" type="xs:string" />
<xs:element minOccurs="0" name="OutOfBand" type="Boolean" />
<xs:element name="ViewSelectedBy" type="ViewSelectedBy" />
<xs:element minOccurs="0" name="Controls" type="Controls" />
<xs:element minOccurs="0" name="GroupBy" type="GroupBy" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="ViewSelectedBy">
<xs:annotation>
<xs:documentation>Defines the .NET objects that are displayed by the view. Each view must specify at least one .NET object.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element minOccurs="0" name="SelectionSetName" type="xs:string">
<xs:annotation>
<xs:documentation>Optional element. Specifies a set of .NET objects that are displayed by the view.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="TypeName" type="xs:string">
<xs:annotation>
<xs:documentation>Optional element. Specifies a .NET object that is displayed by the view.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TableControl">
<xs:annotation>
<xs:documentation>Defines a table format for a view.</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element minOccurs="0" name="AutoSize" type="Boolean">
<xs:annotation>
<xs:documentation>Optional element. Specifies whether the column size and the number of columns are adjusted based on the size of the data.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="HideTableHeaders" type="Boolean">
<xs:annotation>
<xs:documentation>Optional element. Indicates whether the header of the table is not displayed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="TableHeaders" type="TableHeaders">
<xs:annotation>
<xs:documentation>Required element. Defines the labels, the widths, and the alignment of the data for the columns of the table view.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TableRowEntries" type="TableRowEntries">
<xs:annotation>
<xs:documentation>Optional element. Provides the definitions of the table view.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="TableHeaders">
<xs:annotation>
<xs:documentation>Defines the headers for the columns of a table.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element minOccurs="0" name="TableColumnHeader" maxOccurs="unbounded" type="TableColumnHeader">
<xs:annotation>
<xs:documentation>Optional element. Defines the label, the width, and the alignment of the data for a column of a table view.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TableColumnHeader">
<xs:annotation>
<xs:documentation>Defines the label, the width of the column, and the alignment of the label for a column of the table.</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element minOccurs="0" name="Label" type="Text">
<xs:annotation>
<xs:documentation>Optional element. Defines the label that is displayed at the top of the column. If no label is specified, the name of the property whose value is displayed in the rows is used.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Width" type="xs:positiveInteger">
<xs:annotation>
<xs:documentation>Required element. Specifies the width (in characters) of the column.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Alignment" type="Alignment">
<xs:annotation>
<xs:documentation>Optional element. Specifies how the label of the column is displayed. If no alignment is specified, the label is aligned on the left.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="TableColumnItems">
<xs:annotation>
<xs:documentation>Defines the properties or scripts whose values are displayed in a row.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element minOccurs="1" name="TableColumnItem" maxOccurs="unbounded" type="TableColumnItem">
<xs:annotation>
<xs:documentation>Required element. Defines the property or script whose value is displayed in a column of the row.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TableColumnItem">
<xs:annotation>
<xs:documentation>Defines the property or script whose value is displayed in the column of the row.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:sequence minOccurs="0">
<xs:group ref="Expression" maxOccurs="1" />
<xs:element minOccurs="0" name="FormatString" type="xs:string">
<xs:annotation>
<xs:documentation>Specifies a format pattern that is used to format the data in the column of the row.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:element minOccurs="0" name="Alignment" type="Alignment">
<xs:annotation>
<xs:documentation>Optional element. Defines how the data in a column of the row is displayed.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:group name="Expression">
<xs:choice>
<xs:element name="PropertyName" type="xs:string" />
<xs:element name="ScriptBlock" type="xs:string" />
</xs:choice>
</xs:group>
<xs:simpleType name="Alignment">
<xs:annotation>
<xs:documentation>Defines how the data in a column header is displayed.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Left" />
<xs:enumeration value="Right" />
<xs:enumeration value="Center" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="TableRowEntries">
<xs:annotation>
<xs:documentation>Defines the rows of the table.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="TableRowEntry" maxOccurs="unbounded" type="TableRowEntry">
<xs:annotation>
<xs:documentation>Required element. Defines the data that is displayed in a row of the table.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TableRowEntry">
<xs:annotation>
<xs:documentation>Defines the data that is displayed in a row of the table.</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element minOccurs="0" name="EntrySelectedBy" maxOccurs="1" type="EntrySelectedBy">
<xs:annotation>
<xs:documentation>Required element. Defines the objects whose property values are displayed in the row.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="TableColumnItems" maxOccurs="1" type="TableColumnItems">
<xs:annotation>
<xs:documentation>Required element. Defines the properties or scripts whose values are displayed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element default="false" minOccurs="0" name="Wrap" maxOccurs="1" type="Boolean">
<xs:annotation>
<xs:documentation>Optional element. Specifies that text that exceeds the column width is displayed on the next line.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="ListControl">
<xs:annotation>
<xs:documentation>Defines a list format for the view.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="ListEntries" type="ListEntries">
<xs:annotation>
<xs:documentation>Required element. Provides the definitions of the list view.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ListEntries">
<xs:annotation>
<xs:documentation>Provides the definitions of the list view. The list view must specify one or more definitions.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="ListEntry" maxOccurs="unbounded" type="ListEntry">
<xs:annotation>
<xs:documentation>Provides a definition of the list view.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ListEntry">
<xs:annotation>
<xs:documentation>Provides a definition of the list view.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element minOccurs="0" name="EntrySelectedBy" type="EntrySelectedBy">
<xs:annotation>
<xs:documentation>Optional element. Defines the .NET objects that use this list view definition or the condition that must exist for this definition to be used.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="1" name="ListItems" type="ListItems">
<xs:annotation>
<xs:documentation>Required element. Defines the properties and scripts whose values are displayed by the list view.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ListItems">
<xs:annotation>
<xs:documentation>Defines the properties and scripts whose values are displayed in the rows of the list view.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element minOccurs="1" name="ListItem" maxOccurs="unbounded" type="ListItem">
<xs:annotation>
<xs:documentation>Required element. Defines the property or script whose value is displayed by the list view.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ListItem">
<xs:annotation>
<xs:documentation>Defines the property or script whose value is displayed in a row of the list view.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element minOccurs="0" name="Label" type="Text">
<xs:annotation>
<xs:documentation>Optional element Specifies the label that is displayed to the left of the property or script value in the row.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="ItemSelectionCondition" type="ItemSelectionCondition">
<xs:annotation>
<xs:documentation>Optional element. Defines the condition that must exist for this list item to be used.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:group ref="Expression" maxOccurs="1" />
<xs:element minOccurs="0" name="FormatString" type="xs:string">
<xs:annotation>
<xs:documentation>Optional element. Specifies a format string that defines how the property or script value is displayed.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="WideControl">
<xs:annotation>
<xs:documentation>Defines a wide (single value) list format for the view. This view displays a single property value or script value for each object.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice minOccurs="0">
<xs:element name="AutoSize" type="Boolean">
<xs:annotation>
<xs:documentation>Optional element. Specifies whether the column size and the number of columns are adjusted based on the size of the data.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ColumnNumber" type="xs:positiveInteger">
<xs:annotation>
<xs:documentation>Optional element. Specifies the number of columns displayed in the wide view.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:element name="WideEntries" type="WideEntries">
<xs:annotation>
<xs:documentation>Required element. Provides the definitions of the wide view.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="WideEntries">
<xs:annotation>
<xs:documentation>Provides the definitions of the wide view. The wide view must specify one or more definitions.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="WideEntry" maxOccurs="unbounded" type="WideEntry">
<xs:annotation>
<xs:documentation>Provides a definition of the wide view.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="WideEntry">
<xs:annotation>
<xs:documentation>Provides a definition of the wide view.</xs:documentation>
</xs:annotation>
<xs:sequence>
<!-- "EntrySelectedBy" is optional, but it can be omitted in at most one WideEntry -->
<xs:element minOccurs="0" name="EntrySelectedBy" type="EntrySelectedBy">
<xs:annotation>
<xs:documentation>Optional element. Defines the .NET types that use this wide entry definition or the condition that must exist for this definition to be used.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="WideItem" type="WideItem">
<xs:annotation>
<xs:documentation>Required element. Defines the property or script whose value is displayed.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="WideItem">
<xs:annotation>
<xs:documentation>Defines the property or script whose value is displayed.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="0">
<xs:group ref="Expression" maxOccurs="1" />
<xs:element minOccurs="0" name="FormatString" type="xs:string">
<xs:annotation>
<xs:documentation>Optional element. Specifies a format pattern that defines how the property or script value is displayed in the view.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Controls">
<xs:annotation>
<xs:documentation>Defines the common controls that can be used by all views of the formatting file.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Control" maxOccurs="unbounded" type="Control">
<xs:annotation>
<xs:documentation>Required element. Defines a common control that can be used by all views of the formatting file.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Control">
<xs:annotation>
<xs:documentation>Defines a common control that can be used by all the views of the formatting file and the name that is used to reference the control.</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element minOccurs="1" name="Name" type="xs:string">
<xs:annotation>
<xs:documentation>Required element. Specifies the name used to reference the control.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="1" name="CustomControl" type="CustomControl">
<xs:annotation>
<xs:documentation>Required element. Defines the control.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="CustomControl">
<xs:annotation>
<xs:documentation>Defines the custom control that displays the new group.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element minOccurs="1" name="CustomEntries" type="CustomEntries">
<xs:annotation>
<xs:documentation>Required element. Provides the definitions for the control.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="CustomEntries">
<xs:annotation>
<xs:documentation>Provides the definitions of a common control. This element is used when defining a common control that can be used by all the views in the formatting file.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element minOccurs="1" name="CustomEntry" maxOccurs="unbounded" type="CustomEntry">
<xs:annotation>
<xs:documentation>Provides a definition of the common control.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="CustomEntry">
<xs:annotation>
<xs:documentation>Provides a definition of the common control. This element is used when defining a common control that can be used by all the views in the formatting file.</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element minOccurs="0" name="EntrySelectedBy" maxOccurs="1" type="EntrySelectedBy">
<xs:annotation>
<xs:documentation>Optional element. Defines the .NET types that use the definition of the common control or the condition that must exist for this control to be used.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="1" name="CustomItem" type="CustomItem">
<xs:annotation>
<xs:documentation>Required element. Defines what data is displayed by the control and how it is displayed.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>
<xs:complexType name="CustomItem">
<xs:annotation>
<xs:documentation>Defines what data is displayed by the custom control view and how it is displayed. This element is used when defining how a new group of objects is displayed.</xs:documentation>
</xs:annotation>
<xs:sequence maxOccurs="unbounded">
<xs:element minOccurs="0" name="ExpressionBinding" maxOccurs="unbounded" type="ExpressionBinding">
<xs:annotation>
<xs:documentation>Optional element. Defines the data that is displayed by the control.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="NewLine" type="NewLine">
<xs:annotation>
<xs:documentation>Optional element. Adds a blank line to the display of the control.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Text" type="Text">
<xs:annotation>
<xs:documentation>Optional element. Specifies additional text to the data displayed by the control.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Frame" type="Frame">
<xs:annotation>
<xs:documentation>Optional element. Defines what data is displayed by the custom control view and how it is displayed.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ExpressionBinding">
<xs:annotation>
<xs:documentation>Defines the data that is displayed by the control. This element is used when defining a common control that can be used by all the views in the formatting file.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="Expression" minOccurs="0" maxOccurs="1" />
<xs:element minOccurs="0" name="EnumerateCollection" type="Boolean">
<xs:annotation>
<xs:documentation>Optional element. Specified that the elements of collections are displayed by the control.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="ItemSelectionCondition" type="ItemSelectionCondition">
<xs:annotation>
<xs:documentation>Optional element. Defines the condition that must exist for this common control to be used.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="CustomControl" type="CustomControl">
<xs:annotation>
<xs:documentation>Optional element. Defines a control that is used by this control.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="CustomControlName" type="xs:string">
<xs:annotation>
<xs:documentation>Optional element. Specifies the name of a common control or a view control.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Types">
<xs:annotation>
<xs:documentation>Defines the .NET objects that are in the selection set.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="TypeName" maxOccurs="unbounded" type="xs:string">
<xs:annotation>
<xs:documentation>Required element. Specifies the .NET object that belongs to the selection set.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="EntrySelectedBy">
<xs:annotation>
<xs:documentation>Defines the .NET types that use this custom entry or the condition that must exist for this entry to be used.</xs:documentation>
</xs:annotation>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element minOccurs="0" name="SelectionSetName" type="xs:string">
<xs:annotation>
<xs:documentation>Optional element. Specifies a set of .NET types that use this definition of the control view.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="TypeName" type="xs:string">
<xs:annotation>
<xs:documentation>Optional element. Specifies a .NET type that uses this definition of the control view.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="SelectionCondition" type="SelectionCondition">
<xs:annotation>
<xs:documentation>Optional element. Defines the condition that must exist for this definition to be used.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="SelectionCondition">
<xs:annotation>
<xs:documentation>Defines the condition that must exist for this definition to be used. There is no limit to the number of selection conditions that can be specified for a wide entry definition.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice>
<xs:element name="SelectionSetName" type="xs:string">
<xs:annotation>
<xs:documentation>Optional element. Specifies the set of .NET types that triggers the condition.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TypeName" type="xs:string">
<xs:annotation>
<xs:documentation>Optional element. Specifies a .NET type that triggers the condition.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:group ref="Expression" maxOccurs="1" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="SelectionSets">
<xs:annotation>
<xs:documentation>Defines the common sets of .NET objects that can be used by all views of the formatting file. The views and controls of the formatting file can reference the complete set of objects by using only the name of the selection set.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element minOccurs="0" name="SelectionSet" maxOccurs="unbounded" type="SelectionSet">
<xs:annotation>
<xs:documentation>Required element. Defines a single set of .NET objects that can be referenced by the name of the set.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="SelectionSet">
<xs:annotation>
<xs:documentation>Defines a set of .NET objects that can be referenced by the name of the set.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element minOccurs="1" name="Name" type="xs:string">
<xs:annotation>
<xs:documentation>Required element. Specifies the name used to reference the selection set.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="Types" type="Types">
<xs:annotation>
<xs:documentation>Required element. Defines the .NET objects that are in the selection set.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="GroupBy">
<xs:annotation>
<xs:documentation>Defines how a new group of objects is displayed. This element is used when defining a table, list, wide, or custom control view.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="Expression" maxOccurs="1" />
<xs:element minOccurs="0" name="Label" type="Text">
<xs:annotation>
<xs:documentation>Optional element. Specifies a label that is displayed when a new group is encountered.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice minOccurs="0">
<xs:element name="CustomControl" type="CustomControl">
<xs:annotation>
<xs:documentation>Optional element. Defines the custom control that display new groups.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CustomControlName" type="xs:string">
<xs:annotation>
<xs:documentation>Optional element. Specifies the name of a control that is used to display the new group.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Frame">
<xs:annotation>
<xs:documentation>Defines how the data is displayed, such as shifting the data to the left or right. This element is used when defining a custom control view.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element minOccurs="0" name="LeftIndent" type="xs:nonNegativeInteger">
<xs:annotation>
<xs:documentation>Optional element. Specifies how many characters the data is shifted away from the left margin.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" name="RightIndent" type="xs:nonNegativeInteger">
<xs:annotation>
<xs:documentation>Optional element. Specifies how many characters the data is shifted away from the right margin.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice minOccurs="0">
<xs:element name="FirstLineHanging" type="xs:nonNegativeInteger">
<xs:annotation>
<xs:documentation>Optional element. Specifies how many characters the first line of data is shifted to the left.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="FirstLineIndent" type="xs:nonNegativeInteger">
<xs:annotation>
<xs:documentation>Optional element. Specifies how many characters the first line of data is shifted to the right.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:element minOccurs="1" name="CustomItem" type="CustomItem">
<xs:annotation>
<xs:documentation>Required Element</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ItemSelectionCondition">
<xs:annotation>
<xs:documentation>Defines the condition that must exist for this control to be used. This element is used when defining a common control that can be used by all the views in the formatting file.</xs:documentation>
</xs:annotation>
<xs:group ref="Expression" maxOccurs="1" />
</xs:complexType>
<xs:complexType name="Text">
<xs:annotation>
<xs:documentation>Specifies text that is added to the data that is displayed by the control, such as a label, brackets to enclose the data, and spaces to indent the data. This element is used when defining a common control that can be used by all the views in the formatting file.</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="ResourceId" type="xs:string" />
<xs:attribute name="BaseName" type="xs:string" />
<xs:attribute name="AssemblyName" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="Boolean">
<xs:restriction base="xs:string">
<xs:enumeration value="false" />
<xs:enumeration value="true" />
<!--empty indicates "true"-->
<xs:enumeration value="" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="NewLine">
<xs:annotation>
<xs:documentation>Adds a blank line to the display of the control. This element is used when defining how a new group of objects is displayed.</xs:documentation>
</xs:annotation>
</xs:complexType>
</xs:schema>