@digabi/exam-engine-mastering 16.1.2 → 16.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/schema/exam.xsd CHANGED
@@ -18,8 +18,8 @@
18
18
  </xs:sequence>
19
19
  <xs:attribute name="exam-schema-version" type="e:exam-schema-version" />
20
20
  <xs:attribute name="date" type="xs:date" />
21
- <xs:attribute name="exam-code" type="xs:string" />
22
- <xs:attribute name="day-code" type="xs:string" />
21
+ <xs:attribute name="exam-code" type="e:exam-code" />
22
+ <xs:attribute name="day-code" type="e:day-code" />
23
23
  <xs:attribute name="exam-stylesheet" type="xs:string" />
24
24
  <xs:attribute name="max-answers" type="xs:positiveInteger" />
25
25
  <xs:attribute name="lang" type="xs:language" />
@@ -49,7 +49,7 @@
49
49
  <xs:documentation>The exam language.</xs:documentation>
50
50
  </xs:annotation>
51
51
  </xs:attribute>
52
- <xs:attribute name="exam-type" type="e:exam-type">
52
+ <xs:attribute name="exam-type" type="e:exam-type-list">
53
53
  <xs:annotation>
54
54
  <xs:documentation>
55
55
  You may want to create separate versions of the exam for students with disabilities. If not
@@ -77,6 +77,61 @@
77
77
  </xs:restriction>
78
78
  </xs:simpleType>
79
79
 
80
+ <xs:simpleType name="exam-code">
81
+ <xs:restriction base="xs:string">
82
+ <xs:enumeration value="A5" />
83
+ <xs:enumeration value="A" />
84
+ <xs:enumeration value="BA" />
85
+ <xs:enumeration value="BB" />
86
+ <xs:enumeration value="BI" />
87
+ <xs:enumeration value="DC" />
88
+ <xs:enumeration value="EA" />
89
+ <xs:enumeration value="EC" />
90
+ <xs:enumeration value="ET" />
91
+ <xs:enumeration value="FA" />
92
+ <xs:enumeration value="FC" />
93
+ <xs:enumeration value="FF" />
94
+ <xs:enumeration value="FY" />
95
+ <xs:enumeration value="GC" />
96
+ <xs:enumeration value="GE" />
97
+ <xs:enumeration value="HI" />
98
+ <xs:enumeration value="I" />
99
+ <xs:enumeration value="IC" />
100
+ <xs:enumeration value="KE" />
101
+ <xs:enumeration value="L1" />
102
+ <xs:enumeration value="L7" />
103
+ <xs:enumeration value="M" />
104
+ <xs:enumeration value="N" />
105
+ <xs:enumeration value="PA" />
106
+ <xs:enumeration value="PC" />
107
+ <xs:enumeration value="PS" />
108
+ <xs:enumeration value="QC" />
109
+ <xs:enumeration value="SA" />
110
+ <xs:enumeration value="SC" />
111
+ <xs:enumeration value="TC" />
112
+ <xs:enumeration value="TE" />
113
+ <xs:enumeration value="UE" />
114
+ <xs:enumeration value="UO" />
115
+ <xs:enumeration value="VA" />
116
+ <xs:enumeration value="VC" />
117
+ <xs:enumeration value="W" />
118
+ <xs:enumeration value="YH" />
119
+ <xs:enumeration value="Z" />
120
+ <!-- only Swedish codes -->
121
+ <xs:enumeration value="CA" />
122
+ <xs:enumeration value="CB" />
123
+ <xs:enumeration value="O5" />
124
+ <xs:enumeration value="O" />
125
+ </xs:restriction>
126
+ </xs:simpleType>
127
+
128
+ <xs:simpleType name="day-code">
129
+ <xs:restriction base="xs:string">
130
+ <xs:enumeration value="E" />
131
+ <xs:enumeration value="X" />
132
+ </xs:restriction>
133
+ </xs:simpleType>
134
+
80
135
  <xs:complexType name="Flow" mixed="true">
81
136
  <xs:choice minOccurs="0" maxOccurs="unbounded">
82
137
  <xs:group ref="xhtml:xhtml.Flow.mix" />
@@ -126,6 +181,15 @@
126
181
  </xs:restriction>
127
182
  </xs:simpleType>
128
183
 
184
+ <xs:simpleType name="exam-type-list">
185
+ <xs:restriction>
186
+ <xs:simpleType>
187
+ <xs:list itemType="e:exam-type" />
188
+ </xs:simpleType>
189
+ <xs:minLength value="1"/>
190
+ </xs:restriction>
191
+ </xs:simpleType>
192
+
129
193
  <xs:element name="exam-versions">
130
194
  <xs:complexType>
131
195
  <xs:sequence>
@@ -395,11 +459,17 @@
395
459
  <xs:element name="text-answer">
396
460
  <xs:complexType>
397
461
  <xs:sequence>
398
- <xs:element name="hint" minOccurs="0" type="e:Flow" />
462
+ <xs:element name="hint" minOccurs="0" type="e:LocalizableFlow" />
399
463
  <xs:element name="answer-grading-instruction" minOccurs="0" type="e:Flow" />
400
464
  </xs:sequence>
401
465
  <xs:attribute name="type" type="e:text-answer-type" default="single-line" />
402
466
  <xs:attribute name="max-score" type="xs:positiveInteger" use="required" />
467
+ <xs:attribute name="max-length" type="xs:positiveInteger" />
468
+ <xs:attribute name="use-language-of-instruction" type="xs:boolean" default="false">
469
+ <xs:annotation>
470
+ <xs:documentation>Whether the student should answer the question in the language of instruction (typically the mother tongue) instead of the subject language. This attribute controls the HTML lang attribute of the input element, so a screen reader will read the answer using the correct language. Used only in secondary language exams. </xs:documentation>
471
+ </xs:annotation>
472
+ </xs:attribute>
403
473
  <xs:attributeGroup ref="e:stylable" />
404
474
  </xs:complexType>
405
475
  </xs:element>
@@ -438,13 +508,14 @@
438
508
  <xs:element name="scored-text-answer">
439
509
  <xs:complexType>
440
510
  <xs:sequence>
441
- <xs:element name="hint" minOccurs="0" type="e:Flow" />
511
+ <xs:element name="hint" minOccurs="0" type="e:LocalizableFlow" />
442
512
  <xs:element name="answer-grading-instruction" minOccurs="0" type="e:Flow" />
443
513
  <xs:element ref="e:accepted-answer" minOccurs="0" maxOccurs="unbounded" />
444
514
  </xs:sequence>
445
515
  <xs:attribute name="type" type="e:text-answer-type" default="single-line" />
446
516
  <xs:attribute name="max-score" type="xs:positiveInteger" />
447
517
  <xs:attributeGroup ref="e:stylable" />
518
+ <xs:attributeGroup ref="e:localizable" />
448
519
  </xs:complexType>
449
520
  </xs:element>
450
521