-
Notifications
You must be signed in to change notification settings - Fork 5
/
BITS-question-answer2.ent
executable file
·531 lines (443 loc) · 26.1 KB
/
BITS-question-answer2.ent
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
<!-- ============================================================= -->
<!-- MODULE: BITS Question and Answer Module -->
<!-- DATE: June 2015 -->
<!-- -->
<!-- ============================================================= -->
<!-- ============================================================= -->
<!-- PUBLIC DOCUMENT TYPE DEFINITION -->
<!-- TYPICAL INVOCATION -->
<!--
"-//NLM//DTD BITS Question and Answer Module v2.0 20151225//EN"
Delivered as file "BITS-question-answer2.ent" -->
<!-- ============================================================= -->
<!-- ============================================================= -->
<!-- SYSTEM: Book Interchange Tag Suite -->
<!-- -->
<!-- PURPOSE: Defines a model for questions, sets of questions, -->
<!-- and answers. This is a very basic model, expected -->
<!-- to be extended. NOTE: This is NOT a model for a -->
<!-- quiz, test, or exam; such a containing model -->
<!-- could be built using sections and the questions -->
<!-- answers defined in this module. -->
<!-- -->
<!-- TAG SET SPONSOR -->
<!-- National Center for Biotechnology -->
<!-- Information (NCBI) -->
<!-- National Library of Medicine (NLM) -->
<!-- -->
<!-- CREATED FOR: -->
<!-- This DTD was created as a superset customization -->
<!-- of the ANSI/NISO JATS Z39.96-2012 Version 1.0 -->
<!-- Journal Article Tag Set. -->
<!-- -->
<!-- Digital archives and publishers may use the -->
<!-- DTD as is for markup of books or book-like -->
<!-- material for archiving and transferring -->
<!-- such material between archives or they may create -->
<!-- a custom XML DTD from the BITS Suite for -->
<!-- these purposes. -->
<!-- -->
<!-- This DTD is in the public domain. An organization -->
<!-- that wishes to create its own DTD from the suite -->
<!-- may do so without permission from NLM. -->
<!-- -->
<!-- The suite has been set up to be extended using a -->
<!-- new DTD file and new DTD-specific customization -->
<!-- modules to redefine the many Parameter Entities. -->
<!-- Do not modify the suite directly or redistribute -->
<!-- modified versions of the suite. -->
<!-- -->
<!-- In the interest of maintaining consistency and -->
<!-- clarity for potential users, NLM requests: -->
<!-- -->
<!-- 1. If you create a DTD from the BITS DTD Suite -->
<!-- and intend to stay compatible with the suite, -->
<!-- then please include the following statement -->
<!-- as a comment in all of your DTD modules: -->
<!-- "Created from, and fully compatible with, -->
<!-- the Book Interchange Tag Suite (BITS). -->
<!-- -->
<!-- 2. If you alter one or more modules of the suite, -->
<!-- then please rename your version and all its -->
<!-- modules to avoid any confusion with the -->
<!-- original suite. Also, please include the -->
<!-- following statement as a comment in all your -->
<!-- DTD modules: -->
<!-- "Based in part on, but not fully compatible -->
<!-- with, the Book Interchange Tag Suite -->
<!-- (BITS)." -->
<!-- -->
<!-- ORIGINAL CREATION DATE: -->
<!-- May 2013 -->
<!-- -->
<!-- CREATED BY: Mulberry Technologies, Inc. for the National -->
<!-- National Center for Biotechnology Information -->
<!-- (NCBI), a center of the US National Library of -->
<!-- Medicine (NLM). -->
<!-- -->
<!-- The BITS Book Interchange DTD is built from the -->
<!-- Journal Archiving and Interchange DTD of the -->
<!-- ANSI/NISO Journal Article Tag Suite (JATS) -->
<!-- Version 1.1d1 (Z39.96-2015). -->
<!-- -->
<!-- Suggestions for refinements and enhancements to -->
<!-- this DTD should be sent in email to: -->
<!-- bits@ncbi.nlm.nih.gov -->
<!-- ============================================================= -->
<!-- ============================================================= -->
<!-- DTD VERSION/CHANGE HISTORY -->
<!-- ============================================================= -->
<!--
Version Reason/Occasion (who) vx.x (yyyy-mm-dd)
=============================================================
BITS Version 2.0 (DAL/BTU) v2.0 (2015-12-25)
JATS Version 1.1 (DAL/BTU) v1.1 (2015-12-15)
JATS is a continuing maintenance NISO Standard, which
requires voting by the ANSI and NISO memberships to be changed.
JATS 1.1 was approved in late 2015, and BITS modified to use
the most recent version. No other changes to BITS were made.
12. BITS remained version "2.0" but becomes "v2.0 20151225"
JATS became version "1.1" and "v1.1 20151215"
=============================================================
BITS Version 2.0 (DAL/BTU) v2.0 (2015-03-15)
JATS Version 1.1 (DAL/BTU) v1.1 (2015-03-01)
BITS was modified, based on user feedback collected in 2014
and January/February 2015, according to the decisions
made by the BITS Working Group. This DTD represents current
BITS and an interim version of the non-normative JATS DTD
Suite (version 1.1), as an indication to JATS users of
the decisions that have been made by the JATS Standing
Committee.
NISO JATS is a continuing maintenance NISO Standard, which
requires voting by the NISO membership to be changed. This
Committee Draft 1.1 will be sent to the NISO voting
membership, to become (if approved) NISO JATS 1.1.
11. TITLE/SUBTITLE/ALT-TIT/E ETC. - Some of the question/answer
components could take subtitles and alt-titles as well as titles,
but all could not. Regularized them to include all title
types if a title was possible.
10. EXPLANATION - was given a new section-level model similar
to that for <answer>.
9. ANSWER-SPECIFIC PARAGRAPH-LEVEL OBJECTS
Created a new PE (answer-para-level) to prohibit
<explanation> at the paragraph level inside
<answer>, because that created DTD determinism problems.
Rewrote <answer> model to use this PE.
8. QUESTION MODEL - changed the model for <question> to:
- call all the components of sec-opt-title-model
rather than calling the grouping PE
- Add new element <option>, which is used for multiple
choice questions (instead of <answer>)
7. ANSWER/QUESTION ATTRIBUTES
- Removed @correct (yes | no) from <answer> and from
<answer-set>, because, by definition, an <answer>
is correct. The <option> element may now be marked
with a @correct attribute ('yes' or 'no').
-Removed @answer-type from <answer>, since this is
really about the question, not the answer.
- Added new attribute @question-response-type to
<question>, which takes the old values for @answer-type
(multiple choice, short answer, essay, etc.)
6. XML:LANG ATTRIBUTE - Added @xml:lang to the attributes lists
of <question-wrap> and <question-wrap-group>.
5. EXPLANATION - Added @rid to <explanation> since these can
now float in the text as answers can.
4. QUESTION-PREAMBLE - Added new element to hold setup/
preamble information, when the setup is shared by several
questions, for example, a diagram is shown and the questions
are similar to "What is angle a?". This preamble is part of
a <question-wrap-group> that contains the preamble/setup
(<question-preamble>) and several questions
(<question-wrap>).
3. QUESTION-WRAP-GROUP - Added new element <question-wrap-group>
to hold a question setup/preamble (<question-preamble>)
and two or more <question-wrap>s based on that preamble.
2. BITS became version "2.0" and "v2.0 20150630"
JATS became version "1.1" and "v1.1 20150301"
=============================================================
BITS Version 1.1 (DAL/BTU) v1.1 (2014-09-30)
JATS Version 1.1d2 (DAL/BTU) v1.1d2 (2014-09-30)
NISO JATS is a continuing maintenance NISO Standard, which
requires voting by the NISO membership to be changed. This
Committee Draft 1.1d2 will be sent to the NISO voting
membership, to become (if approved) NISO JATS 1.1.
This catalog represents an interim version of the
non-normative JATS DTD Suite, as an indication to JATS users
the decisions that have been made by the JATS Standing
Committee.
1. BITS became version "1.1" and "v1.1 20140930//EN"
JATS became version "1.1d2" and "v1.1d2 20140930//EN"
=============================================================
-->
<!-- ============================================================= -->
<!-- PARAMETER ENTITIES FOR ATTRIBUTE VALUES -->
<!-- ============================================================= -->
<!-- TYPES OF ANSWERS -->
<!-- Used to name the type of question or
question set. -->
<!ENTITY % answer-types "essay | fill-in-the-blank | multi-select |
multiple-choice | short-answer |
true-false" >
<!-- ============================================================= -->
<!-- PARAMETER ENTITIES FOR ATTRIBUTE LISTS -->
<!-- ============================================================= -->
<!-- QUESTION ATTRIBUTES -->
<!-- Attributes for the <question> element -->
<!ENTITY % question-atts
"%jats-common-atts;
question-response-type
(%answer-types;) #IMPLIED
content-type
CDATA #IMPLIED
specific-use
CDATA #IMPLIED
xml:lang NMTOKEN #IMPLIED" >
<!-- QUESTION PREAMBLE ATTRIBUTES -->
<!-- Attributes for the <question-preamble>
element -->
<!ENTITY % question-preamble-atts
"%jats-common-atts;
content-type
CDATA #IMPLIED
specific-use
CDATA #IMPLIED
xml:lang NMTOKEN #IMPLIED" >
<!-- QUESTION WRAP ATTRIBUTES -->
<!-- Attributes for the <question-wrap> element -->
<!ENTITY % question-wrap-atts
"%jats-common-atts;
audience CDATA #IMPLIED
content-type
CDATA #IMPLIED
specific-use
CDATA #IMPLIED
xml:lang NMTOKEN #IMPLIED" >
<!-- QUESTION WRAP GROUP ATTRIBUTES -->
<!-- Attributes for the <question-wrap-group>
element -->
<!ENTITY % question-wrap-group-atts
"%jats-common-atts;
audience CDATA #IMPLIED
content-type
CDATA #IMPLIED
specific-use
CDATA #IMPLIED
xml:lang NMTOKEN #IMPLIED" >
<!-- ANSWER ATTRIBUTES -->
<!-- Attributes for the <answer> element -->
<!ENTITY % answer-atts
"%jats-common-atts;
pointer-to-question
IDREFS #REQUIRED
content-type
CDATA #IMPLIED
specific-use
CDATA #IMPLIED
xml:lang NMTOKEN #IMPLIED" >
<!-- ANSWER SET ATTRIBUTES -->
<!-- Attributes for the <answer-set> element -->
<!ENTITY % answer-set-atts
"%jats-common-atts;
content-type
CDATA #IMPLIED
specific-use
CDATA #IMPLIED
xml:lang NMTOKEN #IMPLIED" >
<!-- EXPLANATION ATTRIBUTES -->
<!-- Attributes for the <explanation> element -->
<!ENTITY % explanation-atts
"%jats-common-atts;
pointer-to-explained
IDREFS #REQUIRED
content-type
CDATA #IMPLIED
specific-use
CDATA #IMPLIED
xml:lang NMTOKEN #IMPLIED" >
<!-- OPTION ATTRIBUTES -->
<!-- Attributes for the <option> element -->
<!ENTITY % option-atts
"%jats-common-atts;
correct (yes | no) #IMPLIED
content-type
CDATA #IMPLIED
specific-use
CDATA #IMPLIED
xml:lang NMTOKEN #IMPLIED" >
<!-- ============================================================= -->
<!-- QUESTION ELEMENTS -->
<!-- ============================================================= -->
<!-- QUESTION MODEL -->
<!-- Content model for the <question> element. -->
<!ENTITY % question-model
"((%id.class;)*, sec-meta?,
label?, title?, subtitle*, alt-title*,
( (%sec-level;)+ |
( (%para-level;)+, (%sec-level;)* ) ),
(%option.class;)*,
(%sec-back-matter-mix;)* )" >
<!-- QUESTION -->
<!-- A question (request for an answer) used in
the text or as part of a quiz, exam, etc.
Details at:
http://jats.nlm.nih.gov/extensions/bits/2.0/index.html?elem=question
-->
<!ELEMENT question %question-model; >
<!ATTLIST question
%question-atts; >
<!-- QUESTION WRAP MODEL -->
<!-- Content model for the <question-wrap>
element. -->
<!ENTITY % question-wrap-model
"((%id.class;)*, question,
(answer | answer-set)?, explanation*)" >
<!-- QUESTION WRAP -->
<!-- Used to model a Question/Answer scheme. These
questions may be used, for example, for the
Continuing Medical Education articles in a
book of articles. The model allows for
simple questions followed by their
corresponding answers or for a multiple
choice setup, where questions are followed
by multiple alternative answers (<option>s),
along with the correct answer and an
explanation.
Note: This is not the model for a full
quiz, test, exam, etc., but such a model
could be built using these components for
the question/answers.
Details at:
http://jats.nlm.nih.gov/extensions/bits/2.0/index.html?elem=question-wrap
-->
<!ELEMENT question-wrap
%question-wrap-model; >
<!ATTLIST question-wrap
%question-wrap-atts; >
<!-- QUESTION WRAP GROUP MODEL -->
<!-- Content model for the <question-wrap-group>
element. -->
<!ENTITY % question-wrap-group-model
"((%id.class;)*,
label?, title?, subtitle*, alt-title*,
question-preamble?,
(%question-wrap.class;)+ )" >
<!-- QUESTION WRAP GROUP -->
<!-- A container element used to hold a group of
<question-wrap> elements, for example, when
all the questions share a common preamble
(setup).
Note: This is not the model for a full
quiz, test, exam, etc., but such a model
could be built using these components for
the question/answers.
Details at:
http://jats.nlm.nih.gov/extensions/bits/2.0/index.html?elem=question-wrap-group
-->
<!ELEMENT question-wrap-group
%question-wrap-group-model; >
<!ATTLIST question-wrap-group
%question-wrap-group-atts; >
<!-- QUESTION PREAMBLE MODEL -->
<!-- Content model for the <question-preamble>
element. -->
<!ENTITY % question-preamble-model
"((%id.class;)*,
label?, title?, subtitle*, alt-title*,
(%para-level;)*, (%sec.class;)* )" >
<!-- QUESTION PREAMBLE -->
<!-- A container element used setup/
preamble information when the setup is shared
by several questions, for example, a diagram
is shown and the questions are similar to
"What is angle a?".
Remarks: The preamble information is part of
a <question-wrap-group> that contains the
preamble/setup (<question-preamble>) and
several questions (tagged as <question-wrap>s).
Details at:
http://jats.nlm.nih.gov/extensions/bits/2.0/index.html?elem=question-preamble
-->
<!ELEMENT question-preamble
%question-preamble-model; >
<!ATTLIST question-preamble
%question-preamble-atts; >
<!-- ============================================================= -->
<!-- ANSWER/EXPLANATION ELEMENTS -->
<!-- ============================================================= -->
<!-- ANSWER MODEL -->
<!-- Content model for the <answer> element. -->
<!ENTITY % answer-model
"((%id.class;)*,
label?, title?, subtitle*, alt-title*,
( (%sec-level;)+ |
( (%answer-para-level;)+,
(%sec-level;)* ) ),
(%sec-back-matter-mix;)*,
explanation*)" >
<!-- ANSWER ELEMENTS -->
<!-- An answer to a question
Details at:
http://jats.nlm.nih.gov/extensions/bits/2.0/index.html?elem=answer
-->
<!ELEMENT answer %answer-model; >
<!ATTLIST answer
%answer-atts; >
<!-- ANSWER SET MODEL -->
<!-- Content model for the <answer-set> element.-->
<!ENTITY % answer-set-model
"((%id.class;)*,
label?, title?, subtitle*, alt-title*,
(answer | %just-para.class; |
explanation)+)" >
<!-- ANSWER SET -->
<!-- A series of answers, typically in response
to a question.
Details at:
http://jats.nlm.nih.gov/extensions/bits/2.0/index.html?elem=answer-set
-->
<!ELEMENT answer-set %answer-set-model; >
<!ATTLIST answer-set
%answer-set-atts; >
<!-- EXPLANATION MODEL -->
<!-- Content model for the <answer-set> element.-->
<!ENTITY % explanation-model
"((%id.class;)*,
label?, title?, subtitle*, alt-title*,
( (%sec-level;)+ |
( (%answer-para-level;)+,
(%sec-level;)* ) ),
(%sec-back-matter-mix;)*)" >
<!-- EXPLANATION -->
<!-- A description of a question/answer or of just
an answer or answer set. The explanation
may describe, for example, why this
particular answer is incorrect, or where in
the text the material for this question
can be found, et al.
Details at:
http://jats.nlm.nih.gov/extensions/bits/2.0/index.html?elem=explanation
-->
<!ELEMENT explanation %explanation-model; >
<!ATTLIST explanation
%explanation-atts; >
<!-- OPTION MODEL -->
<!-- Content model for the <option> element. -->
<!ENTITY % option-model
"((%id.class;)*,
label?, title?, subtitle*, alt-title*,
( (%sec-level;)+ |
( (%answer-para-level;)+,
(%sec-level;)* ) ),
(%sec-back-matter-mix;)*,
explanation*)" >
<!-- OPTION ELEMENTS -->
<!-- One of the possible answer-choices for a
multiple-choice question. An attribute can be
used to identify options which are correct.
Details at:
http://jats.nlm.nih.gov/extensions/bits/2.0/index.html?elem=option
-->
<!ELEMENT option %option-model; >
<!ATTLIST option
%option-atts; >
<!-- ================== End BITS Question and Answer Module ====== -->