-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathproforma.xsd
More file actions
1084 lines (1012 loc) · 46.4 KB
/
proforma.xsd
File metadata and controls
1084 lines (1012 loc) · 46.4 KB
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
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:proforma:v2.1" xmlns:tns="urn:proforma:v2.1" elementFormDefault="qualified">
<xs:element name="task" type="tns:task-type">
<xs:key name="task-fileids">
<xs:selector xpath=".//tns:file"/>
<xs:field xpath="@id"/>
</xs:key>
<xs:key name="testids">
<xs:selector xpath=".//tns:test"/>
<xs:field xpath="@id"/>
</xs:key>
<xs:key name="model-solutionids">
<xs:selector xpath=".//tns:model-solution"/>
<xs:field xpath="@id"/>
</xs:key>
<xs:key name="external-resourceids">
<xs:selector xpath=".//tns:external-resource"/>
<xs:field xpath="@id"/>
</xs:key>
<xs:keyref name="task-filerefs" refer="tns:task-fileids">
<xs:selector xpath=".//tns:fileref"/>
<xs:field xpath="@refid"/>
</xs:keyref>
<xs:keyref name="tests-extresrefs-extresref" refer="tns:external-resourceids">
<xs:selector xpath=".//tns:externalresourceref"/>
<xs:field xpath="@refid"/>
</xs:keyref>
</xs:element>
<xs:element name="submission" type="tns:submission-type">
<xs:unique name="subm-fileids">
<xs:selector xpath="./tns:files/tns:file"/>
<xs:field xpath="@id"/>
</xs:unique>
<xs:key name="submtask-fileids">
<xs:selector xpath="./tns:task/tns:files/tns:file"/>
<xs:field xpath="@id"/>
</xs:key>
<xs:key name="submtask-testids">
<xs:selector xpath=".//tns:test"/>
<xs:field xpath="@id"/>
</xs:key>
<xs:key name="submtask-model-solutionids">
<xs:selector xpath=".//tns:model-solution"/>
<xs:field xpath="@id"/>
</xs:key>
<xs:key name="submtask-external-resourceids">
<xs:selector xpath=".//tns:external-resource"/>
<xs:field xpath="@id"/>
</xs:key>
<xs:keyref name="submtask-filerefs" refer="tns:submtask-fileids">
<xs:selector xpath=".//tns:fileref"/>
<xs:field xpath="@refid"/>
</xs:keyref>
<xs:keyref name="submtask-tests-extresrefs-extresref" refer="tns:submtask-external-resourceids">
<xs:selector xpath=".//tns:externalresourceref"/>
<xs:field xpath="@refid"/>
</xs:keyref>
</xs:element>
<xs:element name="response" type="tns:response-type">
<xs:key name="resp-fileids">
<xs:selector xpath=".//tns:file"/>
<xs:field xpath="@id"/>
</xs:key>
<xs:key name="resp-testrespids">
<xs:selector xpath=".//tns:test-response"/>
<xs:field xpath="@id"/>
</xs:key>
<xs:keyref name="resp-filerefs" refer="tns:resp-fileids">
<xs:selector xpath=".//tns:fileref"/>
<xs:field xpath="@refid"/>
</xs:keyref>
</xs:element>
<xs:complexType name="embedded-txt-file-type">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="filename" type="xs:string" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="embedded-bin-file-type">
<xs:simpleContent>
<xs:extension base="xs:base64Binary">
<xs:attribute name="filename" type="xs:string" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="attached-bin-file-type">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:complexType name="attached-txt-file-type">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="encoding" type="xs:string"/>
<xs:attribute name="natural-lang" type="xs:language"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:group name="file-choice-group">
<xs:choice>
<xs:element name="embedded-bin-file" type="tns:embedded-bin-file-type"/>
<xs:element name="embedded-txt-file" type="tns:embedded-txt-file-type"/>
<xs:element name="attached-bin-file" type="tns:attached-bin-file-type"/>
<xs:element name="attached-txt-file" type="tns:attached-txt-file-type"/>
</xs:choice>
</xs:group>
<xs:attributeGroup name="resource-properties">
<xs:attribute name="used-by-grader" type="xs:boolean" use="required"/>
<xs:attribute name="visible" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="yes"/>
<xs:enumeration value="no"/>
<xs:enumeration value="delayed"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="usage-by-lms" default="download">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="edit"/>
<xs:enumeration value="display"/>
<xs:enumeration value="download"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:attributeGroup>
<xs:complexType name="filerefs-type">
<xs:sequence maxOccurs="unbounded">
<xs:element name="fileref" type="tns:fileref-type"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="fileref-type">
<xs:sequence>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xs:sequence>
<xs:attribute name="refid" type="xs:string" use="required"/>
</xs:complexType>
<xs:simpleType name="description-type">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:complexType name="grading-hints-type">
<xs:annotation>
<xs:documentation xml:lang="en">Root element type of a ProFormA grading-hints element. This includes the complete
hierarchical grading scheme with all tests references, weights, accumulating functions and nullify conditions.
Hierarchy nodes and conditions can get a title and descriptions. All information below this element except the
root node is optional. Grader-specific hints from other XML namespaces can be included in xs:any elements.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="root" type="tns:grades-node-type">
<xs:annotation>
<xs:documentation xml:lang="en">Root node of the grading scheme hierarchy. If no children are specified, the
total grading score will be obtained by including all test results scores. The "function" attribute
specifies the accumulator function.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="combine" type="tns:grades-node-type" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation xml:lang="en">Inner node of the grading scheme hierarchy. This can be a child of the root
node or any descendant node. A "combine" node specifies how to condense several sub results. Sub results can
be test results or again "combined" results.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax">
<xs:annotation>
<xs:documentation xml:lang="en">Any non-standard information that can be used by a grader or humans to
calculate a total result from tests results.
</xs:documentation>
</xs:annotation>
</xs:any>
</xs:sequence>
</xs:complexType>
<xs:complexType name="grades-node-type">
<xs:annotation>
<xs:documentation xml:lang="en">Inner node of the grading scheme hierarchy. There are only two types of inner
nodes: the "root" node and "combine" nodes.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="title" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="en">A not too long title to be shown above the grading result represented by this
node.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="description" type="tns:description-type" minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="en">A more or less comprehensive description of the problem aspect represented by
this node.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="internal-description" type="tns:description-type" minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="en">A more or less comprehensive internal description of the problem aspect
represented by this node. Internal descriptions are meant for teachers and maybe grading assistants.
Internal descriptions are not shown to students. The internal description could include didactic background
information and possibly technical or organizational details about this grading aspect.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="test-ref" type="tns:grades-test-ref-child-type"/>
<xs:element name="combine-ref" type="tns:grades-combine-ref-child-type"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="id" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en">Node identifier. It is optional for the "root" node and required for "combine"
nodes.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="function" default="min">
<xs:annotation>
<xs:documentation xml:lang="en">Accumulator function that is used to condense several sub results to a single
result.
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="min">
<xs:annotation>
<xs:documentation xml:lang="en">Specifies the minimum of several sub scores. This can be used in an "all
or nothing" situation, where a parent score should reflect the worst of the child results. Weights can
be attached to children to express the valency of a child's result. The child node representing the
easiest aspect among its siblings could get the weight 1. Child nodes for grading aspects connected with
a higher effort represent scores that are more difficult to achieve. These child nodes could get weights
larger than 1. This would guarantee, that when all child nodes results are in [0,1] also the parent node
result is in [0,1].
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="max">
<xs:annotation>
<xs:documentation xml:lang="en">Specifies the maximum of several sub scores. This is used in an "one
success is enough" situation, where a parent score should reflect the best of the child results. An
example is a task or a graded problem aspect that could be solved in different ways and for each way
there is a separate test element in the task. A solution that succeeds any one of these tests is
regarded successful. If one of the different ways of solving the task is more sophisticated than the
others, the respective child test could get the highest weight 1. Easier, less valent solution paths get
lower weights between 0 and 1. This would guarantee, that when all child nodes results are in [0,1] also
the parent node result is in [0,1].
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="sum">
<xs:annotation>
<xs:documentation xml:lang="en">Specifies the sum of several sub scores. This is used in a situation,
where every child represents a problem aspect that could be solved more or less independently of the
other aspects. Weights can be attached to child nodes. Those child nodes representing easy problem
aspects could get lower weights than other aspects. If all weights of all direct children of a node add
up to 1, this would guarantee, that the parent node result is in [0,1] when all child nodes results are
in [0,1].
</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:complexType name="grades-base-ref-child-type">
<xs:annotation>
<xs:documentation xml:lang="en">Inner nodes of the grading scheme hierarchy carry pointers to children. This
element represents such a pointer. There are two kinds of pointers: "test-ref" pointers and "combine-ref"
pointers.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice minOccurs="0">
<xs:element name="nullify-conditions" type="tns:grades-nullify-conditions-type">
<xs:annotation>
<xs:documentation xml:lang="en">Specifies a composite condition when the sub result of the pointed-at node
should get nullified. The pointed-at node is a test or a combine node. If the composite condition
evaluates to False, it has no effect. Otherwise, the score of the pointed-at node is not accumulated into
the condensed result of the pointing-from-node. State differently, the score that flows into the
accumulator function of the pointing-from-node, is assumed to be emitted as 0 from the pointed-at node.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="nullify-condition" type="tns:grades-nullify-condition-type">
<xs:annotation>
<xs:documentation xml:lang="en">Specifies a _comparison_ condition when the sub result of the pointed-at
node should get nullified. The only difference to <nullify-conditions> is the trailing "s" and the
fact, that <nullify-conditions> represents a composite condition while <nullify-condition>
represents a simple comparison condition.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
<xs:attribute name="weight" type="xs:double">
<xs:annotation>
<xs:documentation xml:lang="en">Specifies a weight that is multiplied to the sub result of the pointed-at node
when flowing into the accumulator function. The pointed-at node is a test or a combine node. When calculating
the condensed result for the pointing-from node, the score of the pointed-at node is multiplied by the weight,
if present. Otherwise nothing is multiplied.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="grades-test-ref-child-type">
<xs:annotation>
<xs:documentation xml:lang="en">A "test-ref" node points to a test in a ProFormA task. As such the result of the
pointed at test is obtained and included in a bottom-up fashion in the calculation of the total result.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:grades-base-ref-child-type">
<xs:sequence>
<xs:element name="title" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="en">A not too long title to be shown above the pointed-at test's result.
Overrides the title of the pointed-at test element. This can be used especially when pointing to sub
test results.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="description" type="tns:description-type" minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="en">A more or less comprehensive description of the problem aspect represented
by the pointed-at test. This can be used especially when pointing to sub test results.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="internal-description" type="tns:description-type" minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="en">A more or less comprehensive internal description of the problem aspect
represented by the pointed-at test. This can be used especially when pointing to sub test results.
Internal descriptions are meant for teachers and maybe grading assistants. Internal descriptions are not
shown to students. The internal description could include didactic background information and possibly
technical or organizational details about this grading aspect.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="ref" type="xs:string" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">The id of the pointed-at test.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="sub-ref" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en">If the pointed at test exhibits sub test results, this points to one of the
sub results. Examples are individual test cases in a unit test specification, individual violation rules
in a static code analyzer, individual error classes in a compilation step, etc. Since the sub-ref format
or content is test-tool-specific, it is not normed in the ProFormA format.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="grades-combine-ref-child-type">
<xs:annotation>
<xs:documentation xml:lang="en">A "combine-ref" node points to a "combine" node in the grading scheme hierarchy.
As such the result of the pointed at node is obtained and included in a bottom-up fashion in the calculation of
the total result.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:grades-base-ref-child-type">
<xs:attribute name="ref" type="xs:string" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">The id of the pointed-at combine node.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="grades-nullify-base-type">
<xs:annotation>
<xs:documentation xml:lang="en">Specifies an operand of a composite nullify condition.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="title" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="en">A title to be displayed when explaining a score nullification to students or
teachers. Front ends might decide to explain nullification conditions in a grading scheme even if for a
certain submission no nullification took place.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="description" type="tns:description-type" minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="en">A detailed description to be displayed when explaining a score nullification.
Front ends might decide to extend this description by an automatically generated, human readable version of
the involved boolean or comparison expression.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="internal-description" type="tns:description-type" minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="en">A detailed description to be displayed to teachers and grading assistants
only.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="grades-nullify-conditions-type">
<xs:annotation>
<xs:documentation xml:lang="en">Specifies a composite condition when the sub result of a pointed-at node should
get nullified. The composite condition is attributed with one of the boolean operators { and, or }. Further it
contains operands that usually are of the nullify-condition type, which represents a simple comparison.
Nevertheless a composite condition can have nested composite conditions as operands as well.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:grades-nullify-base-type">
<xs:sequence>
<xs:choice minOccurs="2" maxOccurs="unbounded">
<xs:element name="nullify-conditions" type="tns:grades-nullify-conditions-type">
<xs:annotation>
<xs:documentation xml:lang="en">An operand of the boolean expression, itself being a composite
condition.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="nullify-condition" type="tns:grades-nullify-condition-type">
<xs:annotation>
<xs:documentation xml:lang="en">A simple comparison condition as an operand of the boolean expression.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
<xs:attribute name="compose-op" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">The boolean operator of the boolean expression.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="and"/>
<xs:enumeration value="or"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="grades-nullify-condition-type">
<xs:annotation>
<xs:documentation xml:lang="en">Specifies a simple comparison condition when the sub result of a pointed-at node
should get nullified. This simple comparison condition is attributed with one of the six common comparison
operators. Further it contains operands that refer to tests or combine nodes or that specify a numerical
constant, which a result should be compared to.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:grades-nullify-base-type">
<xs:sequence>
<xs:choice minOccurs="2" maxOccurs="2">
<xs:element name="nullify-combine-ref" type="tns:grades-nullify-combine-ref-type">
<xs:annotation>
<xs:documentation xml:lang="en">An operand of the comparison expression pointing to a "combine" node.
When evaluating the condition, the numerical score calculated for the referenced combine node will be
used as an operand in comparison.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="nullify-test-ref" type="tns:grades-nullify-test-ref-type">
<xs:annotation>
<xs:documentation xml:lang="en">An operand of the comparison expression pointing to a "test". When
evaluating the condition, the numerical score delivered by the referenced test will be used as an
operand in comparison.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="nullify-literal" type="tns:grades-nullify-literal-type">
<xs:annotation>
<xs:documentation xml:lang="en">A numerical constant serving as an operand of the comparison expression.
The constant is specified as a "value" attribute in the nullify-literal element.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
<xs:attribute name="compare-op" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">The comparison operator of the comparison expression.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="eq">
<xs:annotation>
<xs:documentation xml:lang="en">equals</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="ne">
<xs:annotation>
<xs:documentation xml:lang="en">not equals</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="gt">
<xs:annotation>
<xs:documentation xml:lang="en">greater than</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="ge">
<xs:annotation>
<xs:documentation xml:lang="en">greater than or equals</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="lt">
<xs:annotation>
<xs:documentation xml:lang="en">less than</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="le">
<xs:annotation>
<xs:documentation xml:lang="en">less than or equals</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="grades-nullify-comparison-operand-type">
<xs:annotation>
<xs:documentation xml:lang="en">Specifies an operand of a comparison nullify condition.</xs:documentation>
</xs:annotation>
</xs:complexType>
<xs:complexType name="grades-nullify-combine-ref-type">
<xs:annotation>
<xs:documentation xml:lang="en">An operand of a comparison expression pointing to a "combine" node.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:grades-nullify-comparison-operand-type">
<xs:attribute name="ref" type="xs:string" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">The id of the pointed-at combine node.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="grades-nullify-test-ref-type">
<xs:annotation>
<xs:documentation xml:lang="en">An operand of a comparison expression pointing to a "test".</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:grades-nullify-comparison-operand-type">
<xs:attribute name="ref" type="xs:string" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">The id of the pointed-at test.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="sub-ref" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en">If the pointed at test exhibits sub test results, this points to one of the
sub results. Examples are individual test cases in a unit test specification, individual violation rules
in a static code analyzer, individual error classes in a compilation step, etc. Since the sub-ref format
or content is test-tool-specific, it is not normed in the ProFormA format.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="grades-nullify-literal-type">
<xs:annotation>
<xs:documentation xml:lang="en">A numerical constant serving as an operand of the comparison expression.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:grades-nullify-comparison-operand-type">
<xs:attribute name="value" type="xs:decimal" use="required">
<xs:annotation>
<xs:documentation xml:lang="en">A numerical constant value to be compared with.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="task-type">
<xs:sequence>
<xs:element name="title" type="tns:title-type"/>
<xs:element name="description" type="tns:description-type"/>
<xs:element name="internal-description" type="tns:description-type" minOccurs="0"/>
<xs:element name="proglang" type="tns:proglang-type"/>
<xs:element name="submission-restrictions" type="tns:submission-restrictions-type" minOccurs="0"/>
<xs:element name="files" type="tns:task-files-type"/>
<xs:element name="external-resources" type="tns:external-resources-type" minOccurs="0"/>
<xs:element name="model-solutions" type="tns:model-solutions-type" minOccurs="0"/>
<xs:element name="tests" type="tns:tests-type"/>
<xs:element name="grading-hints" type="tns:grading-hints-type" minOccurs="0">
<xs:key name="task-gh-combineids">
<xs:selector xpath=".//tns:combine"/>
<xs:field xpath="@id"/>
</xs:key>
<xs:keyref name="task-gh-combinerefs" refer="tns:task-gh-combineids">
<xs:selector xpath=".//tns:combine-ref|.//tns:nullify-combine-ref"/>
<xs:field xpath="@ref"/>
</xs:keyref>
</xs:element>
<xs:element name="meta-data" type="tns:task-meta-data-type"/>
</xs:sequence>
<xs:attribute name="uuid" type="xs:string" use="required"/>
<xs:attribute name="parent-uuid" type="xs:string"/>
<xs:attribute name="lang" type="xs:language"/>
</xs:complexType>
<xs:complexType name="submission-restrictions-type">
<xs:sequence>
<xs:element name="file-restriction" type="tns:file-restr-type" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="description" type="tns:description-type" minOccurs="0"/>
<xs:element name="internal-description" type="tns:description-type" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="max-size" type="xs:positiveInteger"/>
</xs:complexType>
<xs:complexType name="file-restr-type">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="use" default="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="required"/>
<xs:enumeration value="optional"/>
<xs:enumeration value="prohibited"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="pattern-format" default="none">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="none"/>
<xs:enumeration value="posix-ere"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="model-solutions-type">
<xs:sequence maxOccurs="unbounded">
<xs:element name="model-solution" type="tns:model-solution-type"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="model-solution-type">
<xs:sequence>
<xs:element name="filerefs" type="tns:filerefs-type"/>
<xs:element name="description" type="tns:description-type" minOccurs="0"/>
<xs:element name="internal-description" type="tns:description-type" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="task-meta-data-type">
<xs:sequence>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="proglang-type">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en">
A list of existing programming languages is
available in the white paper appendix.
</xs:documentation>
</xs:annotation>
<xs:attribute name="version" type="xs:string" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="task-file-type">
<xs:sequence>
<xs:group ref="tns:file-choice-group"/>
<xs:element name="internal-description" type="tns:description-type" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
<xs:attribute name="mimetype" type="xs:string"/>
<xs:attributeGroup ref="tns:resource-properties"/>
</xs:complexType>
<xs:complexType name="task-files-type">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="file" type="tns:task-file-type"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="external-resources-type">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="external-resource" type="tns:external-resource-type"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="external-resource-type">
<xs:sequence>
<xs:element name="internal-description" type="tns:description-type" minOccurs="0"/>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
<xs:attribute name="reference" type="xs:string"/>
<xs:attributeGroup ref="tns:resource-properties"/>
</xs:complexType>
<xs:simpleType name="title-type">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:complexType name="tests-type">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="test" type="tns:test-type"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="test-type-type">
<xs:restriction base="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en">
A list of existing test types and recommendations for future ones is
available in the white paper appendix.
</xs:documentation>
</xs:annotation>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="test-configuration-type">
<xs:sequence>
<xs:element name="filerefs" type="tns:filerefs-type" minOccurs="0"/>
<xs:element name="timeout" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger"/>
</xs:simpleType>
</xs:element>
<xs:element name="externalresourcerefs" type="tns:externalresourcerefs-type" minOccurs="0"/>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
<xs:element name="test-meta-data" type="tns:test-meta-data-type" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="test-type">
<xs:sequence>
<xs:element name="title" type="tns:title-type"/>
<xs:element name="description" type="tns:description-type" minOccurs="0"/>
<xs:element name="internal-description" type="tns:description-type" minOccurs="0"/>
<xs:element name="test-type" type="tns:test-type-type"/>
<xs:element name="test-configuration" type="tns:test-configuration-type"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
<xs:attribute name="validity" default="1.00">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:totalDigits value="3"/>
<xs:fractionDigits value="2"/>
<xs:minInclusive value="0"/>
<xs:maxInclusive value="1.00"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:complexType name="externalresourcerefs-type">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="externalresourceref" type="tns:externalresourceref-type"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="externalresourceref-type">
<xs:sequence>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xs:sequence>
<xs:attribute name="refid" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="test-meta-data-type">
<xs:sequence>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="submission-type">
<xs:sequence>
<xs:choice>
<xs:element name="external-task" type="tns:external-task-type"/>
<xs:element name="included-task-file" type="tns:included-task-file-type"/>
<xs:element name="task" type="tns:task-type"/>
</xs:choice>
<xs:element name="grading-hints" type="tns:grading-hints-type" minOccurs="0">
<xs:key name="subm-gh-combineids">
<xs:selector xpath=".//tns:combine"/>
<xs:field xpath="@id"/>
</xs:key>
<xs:keyref name="subm-gh-combinerefs" refer="tns:subm-gh-combineids">
<xs:selector xpath=".//tns:combine-ref|.//tns:nullify-combine-ref"/>
<xs:field xpath="@ref"/>
</xs:keyref>
</xs:element>
<xs:choice>
<xs:element name="external-submission" type="tns:external-submission-type"/>
<xs:element name="files" type="tns:submission-files-type"/>
</xs:choice>
<xs:element name="lms" type="tns:lms-type" minOccurs="0"/>
<xs:element name="result-spec" type="tns:result-spec-type"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string"/>
</xs:complexType>
<xs:complexType name="submission-file-type">
<xs:group ref="tns:file-choice-group"/>
<xs:attribute name="id" type="xs:string"/>
<xs:attribute name="mimetype" type="xs:string"/>
</xs:complexType>
<xs:complexType name="submission-files-type">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="file" type="tns:submission-file-type"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="external-task-type">
<xs:sequence>
<xs:element name="uri" type="xs:string" minOccurs="0"/>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xs:sequence>
<xs:attribute name="uuid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="external-submission-type">
<xs:sequence>
<xs:element name="uri" type="xs:string" minOccurs="0"/>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="included-task-file-type">
<xs:choice>
<xs:element name="embedded-zip-file" type="tns:embedded-bin-file-type"/>
<xs:element name="embedded-xml-file" type="tns:embedded-bin-file-type"/>
<xs:element name="attached-zip-file" type="tns:attached-bin-file-type"/>
<xs:element name="attached-xml-file" type="tns:attached-txt-file-type"/>
</xs:choice>
<xs:attribute name="uuid" type="xs:string"/>
</xs:complexType>
<xs:complexType name="lms-type">
<xs:sequence>
<xs:element name="submission-datetime" type="xs:dateTime"/>
<xs:element name="user-id" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="course-id" type="xs:string" minOccurs="0"/>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"
processContents="lax"/>
</xs:sequence>
<xs:attribute name="url" type="xs:string"/>
</xs:complexType>
<xs:complexType name="result-spec-type">
<xs:sequence>
<xs:element name="student-feedback-level" type="tns:feedback-level-type" minOccurs="0"/>
<xs:element name="teacher-feedback-level" type="tns:feedback-level-type" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="format" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="xml"/>
<xs:enumeration value="zip"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="structure" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="merged-test-feedback"/>
<xs:enumeration value="separate-test-feedback"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="lang" type="xs:language"/>
</xs:complexType>
<xs:simpleType name="feedback-level-type">
<xs:restriction base="xs:string">
<xs:enumeration value="debug"/>
<xs:enumeration value="info"/>
<xs:enumeration value="warn"/>
<xs:enumeration value="error"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="response-type">
<xs:sequence>
<xs:choice>
<xs:element name="merged-test-feedback" type="tns:merged-test-feedback-type"/>
<xs:element name="separate-test-feedback" type="tns:separate-test-feedback-type"/>
</xs:choice>
<xs:element name="files" type="tns:response-files-type"/>
<xs:element name="response-meta-data" type="tns:response-meta-data-type"/>
</xs:sequence>
<xs:attribute name="lang" type="xs:language"/>
<xs:attribute name="submission-id" type="xs:string"/>
</xs:complexType>
<xs:complexType name="response-meta-data-type">
<xs:sequence>
<xs:element name="response-datetime" minOccurs="0" type="xs:dateTime"/>
<xs:element name="grader-engine" type="tns:grader-engine-type"/>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="grader-engine-type">
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="version" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="result-type">
<xs:sequence>
<xs:element name="score" type="tns:score-type"/>
<xs:element name="validity" minOccurs="0" type="tns:validity-type"/>
</xs:sequence>
<xs:attribute name="is-internal-error" type="xs:boolean" default="false"/>
</xs:complexType>
<xs:simpleType name="score-type">
<xs:restriction base="xs:decimal">
<xs:minInclusive value="0.0"/>
<xs:maxInclusive value="1.0"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="overall-result-type">
<xs:sequence>
<xs:element name="score" type="tns:overall-score-type"/>
<xs:element name="validity" minOccurs="0" type="tns:validity-type"/>
</xs:sequence>
<xs:attribute name="is-internal-error" type="xs:boolean" default="false"/>
</xs:complexType>
<xs:simpleType name="overall-score-type">
<xs:restriction base="xs:decimal">
<xs:minInclusive value="0.0"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="validity-type">
<xs:restriction base="xs:decimal">
<xs:minInclusive value="0.0"/>
<xs:maxInclusive value="1.0"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="merged-feedback-type">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:complexType name="merged-test-feedback-type">
<xs:sequence>
<xs:element name="overall-result" type="tns:overall-result-type"/>
<xs:element name="student-feedback" type="tns:merged-feedback-type" minOccurs="0"/>
<xs:element name="teacher-feedback" type="tns:merged-feedback-type" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="separate-test-feedback-type">
<xs:sequence>
<xs:element name="submission-feedback-list" type="tns:feedback-list-type"/>
<xs:element name="tests-response" type="tns:tests-response-type"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="tests-response-type">
<xs:sequence>