-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxquiz-1.1.0.dtd
62 lines (56 loc) · 1.46 KB
/
xquiz-1.1.0.dtd
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
<!-- This is the reference data for a quiz as used by xquiz. The official DTD is currently stored at https://www.astronaos.com/xquiz-1.1.0.dtd -->
<!-- DTD version 1.1 -->
<!-- version history -->
<!-- 1.0: first version-->
<!-- 1.1: added "conjunction" attribute to choicesome-->
<!-- 1.1.0-1: update URL of location to astronaos.com-->
<!ELEMENT quiz (title, date, instructions, bank?, bankref?, questions?)>
<!ELEMENT date (#PCDATA)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT instructions (#PCDATA)>
<!ELEMENT questions (qref)+ >
<!ELEMENT qref EMPTY >
<!ELEMENT bank (question)+ >
<!ELEMENT bankref EMPTY >
<!ELEMENT question (prompt, choices*, note?)>
<!ELEMENT prompt (#PCDATA)>
<!ELEMENT choices (choice+ , choiceall? , choicesome*, choicenone?)>
<!ELEMENT choice (#PCDATA)>
<!ELEMENT choicenone EMPTY>
<!ELEMENT choiceall EMPTY>
<!ELEMENT choicesome EMPTY>
<!ELEMENT note (#PCDATA)>
<!ENTITY % boolean "(true | false)">
<!ATTLIST qref
id CDATA #REQUIRED
>
<!ATTLIST bankref
file CDATA #REQUIRED
>
<!ATTLIST question
id ID #REQUIRED
format (mc | fb) "mc"
keys CDATA #IMPLIED
>
<!ATTLIST choices
scramble %boolean; "false"
>
<!ATTLIST choice
id ID #REQUIRED
scramble %boolean; "true"
correct %boolean; "false"
>
<!ATTLIST choicenone
id ID #REQUIRED
correct %boolean; "false"
>
<!ATTLIST choiceall
id ID #REQUIRED
correct %boolean; "false"
>
<!ATTLIST choicesome
id ID #REQUIRED
correct %boolean; "false"
refs CDATA #REQUIRED
conjunction (and | or | andor) "and"
>