blob: 93d758b936cef2e3344f9bf391bab2d4d683b59b [file] [log] [blame]
banspc3cdcb92022-03-09 03:25:32 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!-- IDSXCES-Header -->
3<!---->
4<!-- $Id: ids.xheader.elt 41 2007-09-14 09:55:13Z kupietz $ -->
5<!-- based on: -->
6<!---->
7<!-- THE CES HEADER -->
8<!---->
9<!-- This is the entity ces.header used in the -->
10<!-- Corpus Encoding Standard DTDs. -->
11<!---->
12<!-- It is referred to in those DTDs as -->
13<!-- PUBLIC "-//CES//ENTITIES Header//EN" -->
14<!---->
15<!---->
16<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="http://ids-mannheim.de/ns/KorAP">
17 <start>
18 <ref name="header"/>
19 </start>
20 <define name="a.global">
21 <optional>
22 <attribute name="id">
23 <data type="ID"/>
24 </attribute>
25 </optional>
26 <optional>
27 <attribute name="n"/>
28 </optional>
29 <optional>
30 <attribute name="xml:lang"/>
31 </optional>
32 <optional>
33 <attribute name="lang">
34 <data type="IDREF"/>
35 </attribute>
36 </optional>
37 </define>
38 <define name="a.header">
39 <ref name="a.global"/>
40 </define>
41 <define name="a.declarable">
42 <optional>
43 <attribute name="default" a:defaultValue="n">
44 <choice>
45 <value>y</value>
46 <value>n</value>
47 </choice>
48 </attribute>
49 </optional>
50 </define>
51 <define name="header">
52 <element name="header">
53 <ref name="attlist.header"/>
54 <ref name="idsHeader"/>
55 </element>
56 </define>
57 <define name="attlist.header" combine="interleave">
58 <optional>
59 <attribute name="docid">
60 <data type="NCName"/>
61 </attribute>
62 </optional>
63 </define>
64 <define name="idsHeader">
65 <element name="idsHeader">
66 <ref name="attlist.idsHeader"/>
67 <ref name="fileDesc"/>
68 <optional>
69 <ref name="encodingDesc"/>
70 </optional>
71 <optional>
72 <ref name="profileDesc"/>
73 </optional>
74 <optional>
75 <ref name="revisionDesc"/>
76 </optional>
77 </element>
78 </define>
79 <define name="attlist.idsHeader" combine="interleave">
80 <ref name="a.header"/>
81 <optional>
82 <attribute name="type" a:defaultValue="text"/>
83 </optional>
84 <optional>
85 <attribute name="pattern" a:defaultValue="text"/>
86 </optional>
87 <optional>
88 <attribute name="creator"/>
89 </optional>
90 <optional>
91 <attribute name="status" a:defaultValue="new">
92 <choice>
93 <value>new</value>
94 <value>update</value>
95 </choice>
96 </attribute>
97 </optional>
98 <optional>
99 <attribute name="date.created"/>
100 </optional>
101 <optional>
102 <attribute name="date.updated"/>
103 </optional>
104 <attribute name="version"/>
105 <optional>
106 <attribute name="TEIform" a:defaultValue="teiHeader"/>
107 </optional>
108 </define>
109 <!-- File Description -->
110 <define name="fileDesc">
111 <element name="fileDesc">
112 <ref name="attlist.fileDesc"/>
113 <ref name="titleStmt"/>
114 <optional>
115 <ref name="editionStmt"/>
116 </optional>
117 <optional>
118 <ref name="extent"/>
119 </optional>
120 <ref name="publicationStmt"/>
121 <oneOrMore>
122 <ref name="sourceDesc"/>
123 </oneOrMore>
124 </element>
125 </define>
126 <define name="attlist.fileDesc" combine="interleave">
127 <ref name="a.header"/>
128 </define>
129 <!-- Title statement -->
130 <define name="h.title">
131 <element name="h.title">
132 <ref name="attlist.h.title"/>
133 <text/>
134 </element>
135 </define>
136 <define name="attlist.h.title" combine="interleave">
137 <ref name="a.header"/>
138 <optional>
139 <attribute name="type" a:defaultValue="main">
140 <choice>
141 <value>main</value>
142 <value>sub</value>
143 <value>abbr</value>
144 </choice>
145 </attribute>
146 </optional>
147 <optional>
148 <attribute name="level">
149 <choice>
150 <value>m</value>
151 <value>a</value>
152 </choice>
153 </attribute>
154 </optional>
155 </define>
156 <!--
157 Motivation : Innerhalb von biblFull wird eine Titelangabe
158 durch titleStmt benoetigt. Diese entspricht aber
159 keiner der bisherigen drei Kategorien.
160 Daher Hinzunahme von x.title analog der
161 CES-Vorgabe h.title.
162 -->
163 <define name="titleStmt">
164 <element name="titleStmt">
165 <ref name="attlist.titleStmt"/>
166 <choice>
167 <group>
168 <ref name="korpusSigle"/>
169 <ref name="c.title"/>
170 <zeroOrMore>
171 <ref name="respStmt"/>
172 </zeroOrMore>
173 </group>
174 <group>
175 <ref name="dokumentSigle"/>
176 <ref name="d.title"/>
177 <zeroOrMore>
178 <ref name="respStmt"/>
179 </zeroOrMore>
180 </group>
181 <group>
182 <ref name="textSigle"/>
183 <ref name="t.title"/>
184 <zeroOrMore>
185 <ref name="respStmt"/>
186 </zeroOrMore>
187 </group>
188 <group>
189 <ref name="x.title"/>
190 <zeroOrMore>
191 <ref name="respStmt"/>
192 </zeroOrMore>
193 </group>
194 </choice>
195 </element>
196 </define>
197 <define name="attlist.titleStmt" combine="interleave">
198 <ref name="a.header"/>
199 </define>
200 <define name="korpusSigle">
201 <element name="korpusSigle">
202 <ref name="attlist.korpusSigle"/>
203 <text/>
204 </element>
205 </define>
206 <define name="attlist.korpusSigle" combine="interleave">
207 <ref name="a.header"/>
208 </define>
209 <define name="c.title">
210 <element name="c.title">
211 <ref name="attlist.c.title"/>
212 <text/>
213 </element>
214 </define>
215 <define name="attlist.c.title" combine="interleave">
216 <ref name="a.header"/>
217 </define>
218 <define name="dokumentSigle">
219 <element name="dokumentSigle">
220 <ref name="attlist.dokumentSigle"/>
221 <text/>
222 </element>
223 </define>
224 <define name="attlist.dokumentSigle" combine="interleave">
225 <ref name="a.header"/>
226 </define>
227 <define name="d.title">
228 <element name="d.title">
229 <ref name="attlist.d.title"/>
230 <text/>
231 </element>
232 </define>
233 <define name="attlist.d.title" combine="interleave">
234 <ref name="a.header"/>
235 </define>
236 <define name="textSigle">
237 <element name="textSigle">
238 <ref name="attlist.textSigle"/>
239 <text/>
240 </element>
241 </define>
242 <define name="attlist.textSigle" combine="interleave">
243 <ref name="a.header"/>
244 </define>
245 <!--
246 Motivation: Einrichtung des Attributs assemblage nach Modifikation
247 der Quellennachweise von al-Wadi (06.05.03)
248 -->
249 <define name="t.title">
250 <element name="t.title">
251 <ref name="attlist.t.title"/>
252 <text/>
253 </element>
254 </define>
255 <define name="attlist.t.title" combine="interleave">
256 <ref name="a.header"/>
257 <optional>
258 <attribute name="assemblage">
259 <choice>
260 <value>external</value>
261 <value>regular</value>
262 <value>non-automatic</value>
263 </choice>
264 </attribute>
265 </optional>
266 </define>
267 <!-- Motivation : x.title analog der CES-Vorgabe h.title. -->
268 <define name="x.title">
269 <element name="x.title">
270 <ref name="attlist.x.title"/>
271 <text/>
272 </element>
273 </define>
274 <define name="attlist.x.title" combine="interleave">
275 <ref name="a.header"/>
276 </define>
277 <define name="respStmt">
278 <element name="respStmt">
279 <ref name="attlist.respStmt"/>
280 <group>
281 <ref name="respType"/>
282 <ref name="respName"/>
283 </group>
284 <zeroOrMore>
285 <choice>
286 <ref name="respType"/>
287 <ref name="respName"/>
288 </choice>
289 </zeroOrMore>
290 </element>
291 </define>
292 <define name="attlist.respStmt" combine="interleave">
293 <ref name="a.header"/>
294 </define>
295 <define name="respType">
296 <element name="respType">
297 <ref name="attlist.respType"/>
298 <text/>
299 </element>
300 </define>
301 <define name="attlist.respType" combine="interleave">
302 <ref name="a.header"/>
303 </define>
304 <define name="respName">
305 <element name="respName">
306 <ref name="attlist.respName"/>
307 <text/>
308 </element>
309 </define>
310 <define name="attlist.respName" combine="interleave">
311 <ref name="a.header"/>
312 </define>
313 <!-- Edition Statement -->
314 <define name="editionStmt">
315 <element name="editionStmt">
316 <ref name="attlist.editionStmt"/>
317 <text/>
318 </element>
319 </define>
320 <define name="attlist.editionStmt" combine="interleave">
321 <ref name="a.header"/>
322 <optional>
323 <attribute name="version"/>
324 </optional>
325 </define>
326 <!-- Extent statement -->
327 <define name="extent">
328 <element name="extent">
329 <ref name="attlist.extent"/>
330 <ref name="wordCount"/>
331 <ref name="byteCount"/>
332 <zeroOrMore>
333 <ref name="extNote"/>
334 </zeroOrMore>
335 </element>
336 </define>
337 <define name="attlist.extent" combine="interleave">
338 <ref name="a.header"/>
339 </define>
340 <define name="wordCount">
341 <element name="wordCount">
342 <ref name="attlist.wordCount"/>
343 <text/>
344 </element>
345 </define>
346 <define name="attlist.wordCount" combine="interleave">
347 <ref name="a.header"/>
348 </define>
349 <define name="byteCount">
350 <element name="byteCount">
351 <ref name="attlist.byteCount"/>
352 <text/>
353 </element>
354 </define>
355 <define name="attlist.byteCount" combine="interleave">
356 <ref name="a.header"/>
357 <optional>
358 <attribute name="units" a:defaultValue="kb">
359 <choice>
360 <value>bytes</value>
361 <value>kb</value>
362 <value>mb</value>
363 <value>gb</value>
364 </choice>
365 </attribute>
366 </optional>
367 </define>
368 <define name="extNote">
369 <element name="extNote">
370 <ref name="attlist.extNote"/>
371 <text/>
372 </element>
373 </define>
374 <define name="attlist.extNote" combine="interleave">
375 <ref name="a.header"/>
376 </define>
377 <!-- Publication statement -->
378 <define name="publicationStmt">
379 <element name="publicationStmt">
380 <ref name="attlist.publicationStmt"/>
381 <ref name="distributor"/>
382 <ref name="pubAddress"/>
383 <zeroOrMore>
384 <ref name="telephone"/>
385 </zeroOrMore>
386 <zeroOrMore>
387 <ref name="fax"/>
388 </zeroOrMore>
389 <zeroOrMore>
390 <ref name="eAddress"/>
391 </zeroOrMore>
392 <zeroOrMore>
393 <ref name="idno"/>
394 </zeroOrMore>
395 <ref name="availability"/>
396 <ref name="pubDate"/>
397 </element>
398 </define>
399 <define name="attlist.publicationStmt" combine="interleave">
400 <ref name="a.header"/>
401 </define>
402 <define name="distributor">
403 <element name="distributor">
404 <ref name="attlist.distributor"/>
405 <text/>
406 </element>
407 </define>
408 <define name="attlist.distributor" combine="interleave">
409 <ref name="a.header"/>
410 </define>
411 <define name="pubAddress">
412 <element name="pubAddress">
413 <ref name="attlist.pubAddress"/>
414 <text/>
415 </element>
416 </define>
417 <define name="attlist.pubAddress" combine="interleave">
418 <ref name="a.header"/>
419 </define>
420 <define name="telephone">
421 <element name="telephone">
422 <ref name="attlist.telephone"/>
423 <text/>
424 </element>
425 </define>
426 <define name="attlist.telephone" combine="interleave">
427 <ref name="a.header"/>
428 </define>
429 <define name="fax">
430 <element name="fax">
431 <ref name="attlist.fax"/>
432 <text/>
433 </element>
434 </define>
435 <define name="attlist.fax" combine="interleave">
436 <ref name="a.header"/>
437 </define>
438 <define name="eAddress">
439 <element name="eAddress">
440 <ref name="attlist.eAddress"/>
441 <text/>
442 </element>
443 </define>
444 <define name="attlist.eAddress" combine="interleave">
445 <ref name="a.header"/>
446 <optional>
447 <attribute name="type" a:defaultValue="email"/>
448 </optional>
449 </define>
450 <define name="idno">
451 <element name="idno">
452 <ref name="attlist.idno"/>
453 <text/>
454 </element>
455 </define>
456 <define name="attlist.idno" combine="interleave">
457 <ref name="a.header"/>
458 <optional>
459 <attribute name="type" a:defaultValue="ISBN"/>
460 </optional>
461 </define>
462 <define name="availability">
463 <element name="availability">
464 <ref name="attlist.availability"/>
465 <text/>
466 </element>
467 </define>
468 <define name="attlist.availability" combine="interleave">
469 <ref name="a.header"/>
470 <optional>
471 <attribute name="region" a:defaultValue="world"/>
472 </optional>
473 <optional>
474 <attribute name="status" a:defaultValue="unknown">
475 <choice>
476 <value>free</value>
477 <value>unknown</value>
478 <value>restricted</value>
479 </choice>
480 </attribute>
481 </optional>
482 </define>
483 <define name="pubDate">
484 <element name="pubDate">
485 <ref name="attlist.pubDate"/>
486 <text/>
487 </element>
488 </define>
489 <define name="attlist.pubDate" combine="interleave">
490 <ref name="a.header"/>
491 <optional>
492 <attribute name="type">
493 <choice>
494 <value>year</value>
495 <value>month</value>
496 <value>day</value>
497 </choice>
498 </attribute>
499 </optional>
500 </define>
501 <!-- Source description -->
502 <define name="sourceDesc">
503 <element name="sourceDesc">
504 <ref name="attlist.sourceDesc"/>
505 <oneOrMore>
506 <choice>
507 <ref name="biblFull"/>
508 <ref name="biblStruct"/>
509 </choice>
510 </oneOrMore>
511 <zeroOrMore>
512 <ref name="reference"/>
513 </zeroOrMore>
514 </element>
515 </define>
516 <define name="attlist.sourceDesc" combine="interleave">
517 <ref name="a.header"/>
518 <ref name="a.declarable"/>
519 </define>
520 <!--
521 Motivation: Anpassung des Attributs 'assemblage' an Modifikation
522 der Quellennachweise von al-Wadi (06.05.03),
523 Analoge Einrichtung des Attributs 'existence' und
524 Uebernahme des Attributs 'origin'
525 -->
526 <define name="reference">
527 <element name="reference">
528 <ref name="attlist.reference"/>
529 <text/>
530 </element>
531 </define>
532 <define name="attlist.reference" combine="interleave">
533 <ref name="a.header"/>
534 <optional>
535 <attribute name="type">
536 <choice>
537 <value>complete</value>
538 <value>super</value>
539 <value>short</value>
540 <value>former</value>
541 </choice>
542 </attribute>
543 </optional>
544 <optional>
545 <attribute name="assemblage">
546 <choice>
547 <value>external</value>
548 <value>regular</value>
549 <value>non-automatic</value>
550 </choice>
551 </attribute>
552 </optional>
553 <optional>
554 <attribute name="existence">
555 <choice>
556 <value>no</value>
557 <value>yes</value>
558 </choice>
559 </attribute>
560 </optional>
561 <optional>
562 <attribute name="origin">
563 <choice>
564 <value>BOTfile</value>
565 <value>notBOTfile</value>
566 </choice>
567 </attribute>
568 </optional>
569 </define>
570 <!-- Bibliographic citation for non-electronic source -->
571 <define name="h.bibl">
572 <element name="h.bibl">
573 <ref name="attlist.h.bibl"/>
574 <text/>
575 </element>
576 </define>
577 <define name="attlist.h.bibl" combine="interleave">
578 <ref name="a.header"/>
579 </define>
580 <define name="biblStruct">
581 <element name="biblStruct">
582 <ref name="attlist.biblStruct"/>
583 <optional>
584 <ref name="analytic"/>
585 </optional>
586 <oneOrMore>
587 <ref name="monogr"/>
588 </oneOrMore>
589 </element>
590 </define>
591 <define name="attlist.biblStruct" combine="interleave">
592 <ref name="a.header"/>
593 <ref name="a.declarable"/>
594 </define>
595 <define name="analytic">
596 <element name="analytic">
597 <ref name="attlist.analytic"/>
598 <oneOrMore>
599 <ref name="h.title"/>
600 </oneOrMore>
601 <zeroOrMore>
602 <choice>
603 <ref name="h.author"/>
604 <ref name="editor"/>
605 </choice>
606 </zeroOrMore>
607 <zeroOrMore>
608 <choice>
609 <ref name="biblScope"/>
610 <ref name="biblNote"/>
611 </choice>
612 </zeroOrMore>
613 <zeroOrMore>
614 <ref name="edition"/>
615 <optional>
616 <ref name="respStmt"/>
617 </optional>
618 </zeroOrMore>
619 <oneOrMore>
620 <ref name="imprint"/>
621 </oneOrMore>
622 <zeroOrMore>
623 <ref name="idno"/>
624 </zeroOrMore>
625 <zeroOrMore>
626 <choice>
627 <ref name="biblNote"/>
628 <ref name="biblScope"/>
629 </choice>
630 </zeroOrMore>
631 </element>
632 </define>
633 <define name="attlist.analytic" combine="interleave">
634 <ref name="a.header"/>
635 </define>
636 <!-- editor: hinzu 26.07 -->
637 <define name="monogr">
638 <element name="monogr">
639 <ref name="attlist.monogr"/>
640 <oneOrMore>
641 <ref name="h.title"/>
642 </oneOrMore>
643 <zeroOrMore>
644 <choice>
645 <ref name="h.author"/>
646 <ref name="editor"/>
647 </choice>
648 </zeroOrMore>
649 <zeroOrMore>
650 <choice>
651 <ref name="biblScope"/>
652 <ref name="biblNote"/>
653 </choice>
654 </zeroOrMore>
655 <zeroOrMore>
656 <ref name="edition"/>
657 <optional>
658 <ref name="respStmt"/>
659 </optional>
660 </zeroOrMore>
661 <oneOrMore>
662 <ref name="imprint"/>
663 </oneOrMore>
664 <zeroOrMore>
665 <ref name="idno"/>
666 </zeroOrMore>
667 <zeroOrMore>
668 <choice>
669 <ref name="biblNote"/>
670 <ref name="biblScope"/>
671 </choice>
672 </zeroOrMore>
673 </element>
674 </define>
675 <define name="attlist.monogr" combine="interleave">
676 <ref name="a.header"/>
677 </define>
678 <define name="h.author">
679 <element name="h.author">
680 <ref name="attlist.h.author"/>
681 <text/>
682 </element>
683 </define>
684 <define name="attlist.h.author" combine="interleave">
685 <ref name="a.header"/>
686 </define>
687 <define name="editor">
688 <element name="editor">
689 <ref name="attlist.editor"/>
690 <text/>
691 </element>
692 </define>
693 <define name="attlist.editor" combine="interleave">
694 <ref name="a.header"/>
695 </define>
696 <define name="edition">
697 <element name="edition">
698 <ref name="attlist.edition"/>
699 <ref name="further"/>
700 <ref name="kind"/>
701 <ref name="appearance"/>
702 </element>
703 </define>
704 <define name="attlist.edition" combine="interleave">
705 <ref name="a.header"/>
706 </define>
707 <define name="further">
708 <element name="further">
709 <ref name="attlist.further"/>
710 <text/>
711 </element>
712 </define>
713 <define name="attlist.further" combine="interleave">
714 <ref name="a.header"/>
715 </define>
716 <define name="kind">
717 <element name="kind">
718 <ref name="attlist.kind"/>
719 <text/>
720 </element>
721 </define>
722 <define name="attlist.kind" combine="interleave">
723 <ref name="a.header"/>
724 </define>
725 <define name="appearance">
726 <element name="appearance">
727 <ref name="attlist.appearance"/>
728 <text/>
729 </element>
730 </define>
731 <define name="attlist.appearance" combine="interleave">
732 <ref name="a.header"/>
733 </define>
734 <define name="imprint">
735 <element name="imprint">
736 <ref name="attlist.imprint"/>
737 <zeroOrMore>
738 <choice>
739 <ref name="pubPlace"/>
740 <ref name="publisher"/>
741 <ref name="pubDate"/>
742 </choice>
743 </zeroOrMore>
744 </element>
745 </define>
746 <define name="attlist.imprint" combine="interleave">
747 <ref name="a.header"/>
748 </define>
749 <define name="pubPlace">
750 <element name="pubPlace">
751 <ref name="attlist.pubPlace"/>
752 <text/>
753 </element>
754 </define>
755 <define name="attlist.pubPlace" combine="interleave">
756 <ref name="a.header"/>
757 </define>
758 <define name="publisher">
759 <element name="publisher">
760 <ref name="attlist.publisher"/>
761 <text/>
762 </element>
763 </define>
764 <define name="attlist.publisher" combine="interleave">
765 <ref name="a.header"/>
766 <optional>
767 <attribute name="type">
768 <choice>
769 <value>place</value>
770 <value>org</value>
771 <value>person</value>
772 </choice>
773 </attribute>
774 </optional>
775 </define>
776 <define name="biblScope">
777 <element name="biblScope">
778 <ref name="attlist.biblScope"/>
779 <text/>
780 </element>
781 </define>
782 <define name="attlist.biblScope" combine="interleave">
783 <ref name="a.header"/>
784 <optional>
785 <attribute name="type">
786 <choice>
787 <value>subsume</value>
788 <value>pp</value>
789 <value>vol</value>
790 <value>issue</value>
791 <value>issueplace</value>
792 <value>suppl</value>
793 <value>suppltitle</value>
794 <value>volume-title</value>
795 </choice>
796 </attribute>
797 </optional>
798 </define>
799 <define name="biblNote">
800 <element name="biblNote">
801 <ref name="attlist.biblNote"/>
802 <text/>
803 </element>
804 </define>
805 <define name="attlist.biblNote" combine="interleave">
806 <ref name="a.header"/>
807 </define>
808 <!-- Bibliographical info for source in electronic form -->
809 <define name="biblFull">
810 <element name="biblFull">
811 <ref name="attlist.biblFull"/>
812 <ref name="titleStmt"/>
813 <optional>
814 <ref name="editionStmt"/>
815 </optional>
816 <optional>
817 <ref name="extent"/>
818 </optional>
819 <ref name="publicationStmt"/>
820 <zeroOrMore>
821 <ref name="sourceDesc"/>
822 </zeroOrMore>
823 </element>
824 </define>
825 <define name="attlist.biblFull" combine="interleave">
826 <ref name="a.header"/>
827 </define>
828 <!-- Encoding description -->
829 <define name="encodingDesc">
830 <element name="encodingDesc">
831 <ref name="attlist.encodingDesc"/>
832 <optional>
833 <ref name="projectDesc"/>
834 </optional>
835 <zeroOrMore>
836 <ref name="samplingDecl"/>
837 </zeroOrMore>
838 <zeroOrMore>
839 <ref name="editorialDecl"/>
840 </zeroOrMore>
841 <optional>
842 <ref name="tagsDecl"/>
843 </optional>
844 <zeroOrMore>
845 <ref name="refsDecl"/>
846 </zeroOrMore>
847 <optional>
848 <ref name="classDecl"/>
849 </optional>
850 </element>
851 </define>
852 <define name="attlist.encodingDesc" combine="interleave">
853 <ref name="a.header"/>
854 </define>
855 <define name="projectDesc">
856 <element name="projectDesc">
857 <ref name="attlist.projectDesc"/>
858 <text/>
859 </element>
860 </define>
861 <define name="attlist.projectDesc" combine="interleave">
862 <ref name="a.header"/>
863 <ref name="a.declarable"/>
864 </define>
865 <define name="samplingDecl">
866 <element name="samplingDecl">
867 <ref name="attlist.samplingDecl"/>
868 <text/>
869 </element>
870 </define>
871 <define name="attlist.samplingDecl" combine="interleave">
872 <ref name="a.header"/>
873 <ref name="a.declarable"/>
874 </define>
875 <!-- Editorial declaration -->
876 <define name="editorialDecl">
877 <element name="editorialDecl">
878 <ref name="attlist.editorialDecl"/>
879 <oneOrMore>
880 <choice>
881 <ref name="pagination"/>
882 <ref name="correction"/>
883 <ref name="quotation"/>
884 <ref name="hyphenation"/>
885 <ref name="segmentation"/>
886 <ref name="transduction"/>
887 <ref name="normalization"/>
888 <ref name="conformance"/>
889 </choice>
890 </oneOrMore>
891 </element>
892 </define>
893 <define name="attlist.editorialDecl" combine="interleave">
894 <ref name="a.header"/>
895 <ref name="a.declarable"/>
896 </define>
897 <define name="pagination">
898 <element name="pagination">
899 <ref name="attlist.pagination"/>
900 <text/>
901 </element>
902 </define>
903 <define name="attlist.pagination" combine="interleave">
904 <ref name="a.header"/>
905 <optional>
906 <attribute name="type">
907 <choice>
908 <value>yes</value>
909 <value>no</value>
910 </choice>
911 </attribute>
912 </optional>
913 </define>
914 <define name="correction">
915 <element name="correction">
916 <ref name="attlist.correction"/>
917 <text/>
918 </element>
919 </define>
920 <define name="attlist.correction" combine="interleave">
921 <ref name="a.header"/>
922 <ref name="a.declarable"/>
923 <optional>
924 <attribute name="status" a:defaultValue="unknown">
925 <choice>
926 <value>high</value>
927 <value>medium</value>
928 <value>low</value>
929 <value>unknown</value>
930 </choice>
931 </attribute>
932 </optional>
933 <optional>
934 <attribute name="method" a:defaultValue="silent">
935 <choice>
936 <value>silent</value>
937 <value>tags</value>
938 </choice>
939 </attribute>
940 </optional>
941 </define>
942 <define name="quotation">
943 <element name="quotation">
944 <ref name="attlist.quotation"/>
945 <text/>
946 </element>
947 </define>
948 <define name="attlist.quotation" combine="interleave">
949 <ref name="a.header"/>
950 <ref name="a.declarable"/>
951 <optional>
952 <attribute name="marks" a:defaultValue="all">
953 <choice>
954 <value>none</value>
955 <value>some</value>
956 <value>all</value>
957 </choice>
958 </attribute>
959 </optional>
960 <optional>
961 <attribute name="form" a:defaultValue="unknown">
962 <choice>
963 <value>data</value>
964 <value>rend</value>
965 <value>std</value>
966 <value>nonstd</value>
967 <value>unknown</value>
968 </choice>
969 </attribute>
970 </optional>
971 </define>
972 <define name="hyphenation">
973 <element name="hyphenation">
974 <ref name="attlist.hyphenation"/>
975 <oneOrMore>
976 <ref name="p"/>
977 </oneOrMore>
978 </element>
979 </define>
980 <define name="attlist.hyphenation" combine="interleave">
981 <ref name="a.global"/>
982 <ref name="a.declarable"/>
983 <optional>
984 <attribute name="eol" a:defaultValue="some">
985 <choice>
986 <value>all</value>
987 <value>some</value>
988 <value>none</value>
989 </choice>
990 </attribute>
991 </optional>
992 </define>
993 <define name="segmentation">
994 <element name="segmentation">
995 <ref name="attlist.segmentation"/>
996 <text/>
997 </element>
998 </define>
999 <define name="attlist.segmentation" combine="interleave">
1000 <ref name="a.header"/>
1001 <ref name="a.declarable"/>
1002 </define>
1003 <define name="transduction">
1004 <element name="transduction">
1005 <ref name="attlist.transduction"/>
1006 <text/>
1007 </element>
1008 </define>
1009 <define name="attlist.transduction" combine="interleave">
1010 <ref name="a.header"/>
1011 <ref name="a.declarable"/>
1012 </define>
1013 <define name="normalization">
1014 <element name="normalization">
1015 <ref name="attlist.normalization"/>
1016 <text/>
1017 </element>
1018 </define>
1019 <define name="attlist.normalization" combine="interleave">
1020 <ref name="a.header"/>
1021 <ref name="a.declarable"/>
1022 <optional>
1023 <attribute name="source"/>
1024 </optional>
1025 <optional>
1026 <attribute name="method" a:defaultValue="silent">
1027 <choice>
1028 <value>silent</value>
1029 <value>tags</value>
1030 </choice>
1031 </attribute>
1032 </optional>
1033 </define>
1034 <define name="conformance">
1035 <element name="conformance">
1036 <ref name="attlist.conformance"/>
1037 <text/>
1038 </element>
1039 </define>
1040 <define name="attlist.conformance" combine="interleave">
1041 <ref name="a.header"/>
1042 <optional>
1043 <attribute name="level" a:defaultValue="1">
1044 <choice>
1045 <value>0</value>
1046 <value>1</value>
1047 <value>2</value>
1048 <value>3</value>
1049 </choice>
1050 </attribute>
1051 </optional>
1052 </define>
1053 <!-- Tag declaration -->
1054 <define name="tagsDecl">
1055 <element name="tagsDecl">
1056 <ref name="attlist.tagsDecl"/>
1057 <oneOrMore>
1058 <ref name="tagUsage"/>
1059 </oneOrMore>
1060 </element>
1061 </define>
1062 <define name="attlist.tagsDecl" combine="interleave">
1063 <ref name="a.header"/>
1064 </define>
1065 <define name="tagUsage">
1066 <element name="tagUsage">
1067 <ref name="attlist.tagUsage"/>
1068 <text/>
1069 </element>
1070 </define>
1071 <define name="attlist.tagUsage" combine="interleave">
1072 <ref name="a.header"/>
1073 <attribute name="gi">
1074 <data type="NMTOKEN"/>
1075 </attribute>
1076 <optional>
1077 <attribute name="occurs">
1078 <data type="NMTOKEN"/>
1079 </attribute>
1080 </optional>
1081 <optional>
1082 <attribute name="wsd"/>
1083 </optional>
1084 </define>
1085 <!-- References declaration -->
1086 <define name="ids.state">
1087 <ref name="state"/>
1088 </define>
1089 <define name="ids.textDesc">
1090 <ref name="textDesc"/>
1091 </define>
1092 <define name="refsDecl">
1093 <element name="refsDecl">
1094 <ref name="attlist.refsDecl"/>
1095 <ref name="ids.state"/>
1096 </element>
1097 </define>
1098 <define name="attlist.refsDecl" combine="interleave">
1099 <ref name="a.header"/>
1100 <optional>
1101 <attribute name="doctype">
1102 <data type="NMTOKEN"/>
1103 </attribute>
1104 </optional>
1105 </define>
1106 <!-- Classify texts declaration -->
1107 <define name="classDecl">
1108 <element name="classDecl">
1109 <ref name="attlist.classDecl"/>
1110 <oneOrMore>
1111 <ref name="taxonomy"/>
1112 </oneOrMore>
1113 </element>
1114 </define>
1115 <define name="attlist.classDecl" combine="interleave">
1116 <ref name="a.header"/>
1117 </define>
1118 <define name="taxonomy">
1119 <element name="taxonomy">
1120 <ref name="attlist.taxonomy"/>
1121 <choice>
1122 <oneOrMore>
1123 <ref name="category"/>
1124 </oneOrMore>
1125 <group>
1126 <choice>
1127 <ref name="h.bibl"/>
1128 <ref name="biblStruct"/>
1129 </choice>
1130 <zeroOrMore>
1131 <ref name="category"/>
1132 </zeroOrMore>
1133 </group>
1134 </choice>
1135 </element>
1136 </define>
1137 <define name="attlist.taxonomy" combine="interleave">
1138 <ref name="a.header"/>
1139 </define>
1140 <define name="category">
1141 <element name="category">
1142 <ref name="attlist.category"/>
1143 <ref name="catDesc"/>
1144 <zeroOrMore>
1145 <ref name="category"/>
1146 </zeroOrMore>
1147 </element>
1148 </define>
1149 <define name="attlist.category" combine="interleave">
1150 <attribute name="id">
1151 <data type="ID"/>
1152 </attribute>
1153 <optional>
1154 <attribute name="n"/>
1155 </optional>
1156 <optional>
1157 <attribute name="lang">
1158 <data type="IDREF"/>
1159 </attribute>
1160 </optional>
1161 </define>
1162 <define name="catDesc">
1163 <element name="catDesc">
1164 <ref name="attlist.catDesc"/>
1165 <text/>
1166 </element>
1167 </define>
1168 <define name="attlist.catDesc" combine="interleave">
1169 <ref name="a.header"/>
1170 </define>
1171 <!-- Profile description -->
1172 <define name="profileDesc">
1173 <element name="profileDesc">
1174 <ref name="attlist.profileDesc"/>
1175 <optional>
1176 <ref name="creation"/>
1177 </optional>
1178 <optional>
1179 <ref name="langUsage"/>
1180 </optional>
1181 <optional>
1182 <ref name="wsdUsage"/>
1183 </optional>
1184 <optional>
1185 <ref name="textClass"/>
1186 </optional>
1187 <optional>
1188 <ref name="translations"/>
1189 </optional>
1190 <optional>
1191 <ref name="annotations"/>
1192 </optional>
1193 <ref name="ids.textDesc"/>
1194 </element>
1195 </define>
1196 <define name="attlist.profileDesc" combine="interleave">
1197 <ref name="a.header"/>
1198 </define>
1199 <!-- Creation element -->
1200 <define name="creation">
1201 <element name="creation">
1202 <ref name="attlist.creation"/>
1203 <ref name="creatDate"/>
1204 <optional>
1205 <ref name="creatRef"/>
1206 </optional>
1207 <optional>
1208 <ref name="creatRefShort"/>
1209 </optional>
1210 </element>
1211 </define>
1212 <define name="attlist.creation" combine="interleave">
1213 <ref name="a.header"/>
1214 </define>
1215 <define name="creatDate">
1216 <element name="creatDate">
1217 <ref name="attlist.creatDate"/>
1218 <text/>
1219 </element>
1220 </define>
1221 <define name="attlist.creatDate" combine="interleave">
1222 <ref name="a.header"/>
1223 </define>
1224 <define name="creatRef">
1225 <element name="creatRef">
1226 <ref name="attlist.creatRef"/>
1227 <text/>
1228 </element>
1229 </define>
1230 <define name="attlist.creatRef" combine="interleave">
1231 <ref name="a.header"/>
1232 </define>
1233 <define name="creatRefShort">
1234 <element name="creatRefShort">
1235 <ref name="attlist.creatRefShort"/>
1236 <text/>
1237 </element>
1238 </define>
1239 <define name="attlist.creatRefShort" combine="interleave">
1240 <ref name="a.header"/>
1241 </define>
1242 <define name="langUsage">
1243 <element name="langUsage">
1244 <ref name="attlist.langUsage"/>
1245 <oneOrMore>
1246 <ref name="language"/>
1247 </oneOrMore>
1248 </element>
1249 </define>
1250 <define name="attlist.langUsage" combine="interleave">
1251 <ref name="a.header"/>
1252 </define>
1253 <define name="language">
1254 <element name="language">
1255 <ref name="attlist.language"/>
1256 <text/>
1257 </element>
1258 </define>
1259 <define name="attlist.language" combine="interleave">
1260 <optional>
1261 <attribute name="id">
1262 <data type="ID"/>
1263 </attribute>
1264 </optional>
1265 <optional>
1266 <attribute name="usage"/>
1267 </optional>
1268 </define>
1269 <define name="wsdUsage">
1270 <element name="wsdUsage">
1271 <ref name="attlist.wsdUsage"/>
1272 <oneOrMore>
1273 <ref name="writingSystem"/>
1274 </oneOrMore>
1275 </element>
1276 </define>
1277 <define name="attlist.wsdUsage" combine="interleave">
1278 <ref name="a.header"/>
1279 </define>
1280 <define name="writingSystem">
1281 <element name="writingSystem">
1282 <ref name="attlist.writingSystem"/>
1283 <text/>
1284 </element>
1285 </define>
1286 <define name="attlist.writingSystem" combine="interleave">
1287 <optional>
1288 <attribute name="id">
1289 <data type="ID"/>
1290 </attribute>
1291 </optional>
1292 <optional>
1293 <attribute name="lang"/>
1294 </optional>
1295 <optional>
1296 <attribute name="wsd">
1297 <data type="ENTITY"/>
1298 </attribute>
1299 </optional>
1300 <optional>
1301 <attribute name="n"/>
1302 </optional>
1303 </define>
1304 <!-- Text Class -->
1305 <define name="textClass">
1306 <element name="textClass">
1307 <ref name="attlist.textClass"/>
1308 <zeroOrMore>
1309 <choice>
1310 <ref name="catRef"/>
1311 <ref name="h.keywords"/>
1312 </choice>
1313 </zeroOrMore>
1314 </element>
1315 </define>
1316 <define name="attlist.textClass" combine="interleave">
1317 <ref name="a.header"/>
1318 <ref name="a.declarable"/>
1319 </define>
1320 <define name="catRef">
1321 <element name="catRef">
1322 <ref name="attlist.catRef"/>
1323 <empty/>
1324 </element>
1325 </define>
1326 <define name="attlist.catRef" combine="interleave">
1327 <ref name="a.header"/>
1328 <attribute name="target">
1329 <data type="IDREFS"/>
1330 </attribute>
1331 <optional>
1332 <attribute name="scheme"/>
1333 </optional>
1334 </define>
1335 <define name="h.keywords">
1336 <element name="h.keywords">
1337 <ref name="attlist.h.keywords"/>
1338 <oneOrMore>
1339 <ref name="keyTerm"/>
1340 </oneOrMore>
1341 </element>
1342 </define>
1343 <define name="attlist.h.keywords" combine="interleave">
1344 <ref name="a.header"/>
1345 </define>
1346 <define name="keyTerm">
1347 <element name="keyTerm">
1348 <ref name="attlist.keyTerm"/>
1349 <text/>
1350 </element>
1351 </define>
1352 <define name="attlist.keyTerm" combine="interleave">
1353 <ref name="a.header"/>
1354 </define>
1355 <!-- Translations -->
1356 <define name="translations">
1357 <element name="translations">
1358 <ref name="attlist.translations"/>
1359 <oneOrMore>
1360 <ref name="translation"/>
1361 <optional>
1362 <ref name="translator"/>
1363 </optional>
1364 </oneOrMore>
1365 </element>
1366 </define>
1367 <define name="attlist.translations" combine="interleave">
1368 <ref name="a.header"/>
1369 </define>
1370 <define name="translation">
1371 <element name="translation">
1372 <ref name="attlist.translation"/>
1373 <text/>
1374 </element>
1375 </define>
1376 <define name="attlist.translation" combine="interleave">
1377 <optional>
1378 <attribute name="id">
1379 <data type="ID"/>
1380 </attribute>
1381 </optional>
1382 <attribute name="lang"/>
1383 <attribute name="wsd"/>
1384 <optional>
1385 <attribute name="n"/>
1386 </optional>
1387 <optional>
1388 <attribute name="trans.loc"/>
1389 </optional>
1390 </define>
1391 <define name="translator">
1392 <element name="translator">
1393 <ref name="attlist.translator"/>
1394 <text/>
1395 </element>
1396 </define>
1397 <define name="attlist.translator" combine="interleave">
1398 <ref name="a.header"/>
1399 </define>
1400 <!-- Annotations -->
1401 <define name="annotations">
1402 <element name="annotations">
1403 <ref name="attlist.annotations"/>
1404 <oneOrMore>
1405 <ref name="annotation"/>
1406 </oneOrMore>
1407 </element>
1408 </define>
1409 <define name="attlist.annotations" combine="interleave">
1410 <ref name="a.header"/>
1411 </define>
1412 <define name="annotation">
1413 <element name="annotation">
1414 <ref name="attlist.annotation"/>
1415 <text/>
1416 </element>
1417 </define>
1418 <define name="attlist.annotation" combine="interleave">
1419 <ref name="a.header"/>
1420 <optional>
1421 <attribute name="type"/>
1422 </optional>
1423 <optional>
1424 <attribute name="ann.loc"/>
1425 </optional>
1426 <optional>
1427 <attribute name="trans.loc"/>
1428 </optional>
1429 </define>
1430 <!-- TextDesc -->
1431 <define name="textDesc">
1432 <element name="textDesc">
1433 <ref name="attlist.textDesc"/>
1434 <group>
1435 <optional>
1436 <ref name="textType"/>
1437 </optional>
1438 <optional>
1439 <ref name="textTypeRef"/>
1440 </optional>
1441 </group>
1442 <group>
1443 <optional>
1444 <ref name="textTypeArt"/>
1445 </optional>
1446 <optional>
1447 <ref name="textDomain"/>
1448 </optional>
1449 <optional>
1450 <ref name="column"/>
1451 </optional>
1452 </group>
1453 </element>
1454 </define>
1455 <define name="attlist.textDesc" combine="interleave">
1456 <ref name="a.header"/>
1457 </define>
1458 <define name="textType">
1459 <element name="textType">
1460 <ref name="attlist.textType"/>
1461 <text/>
1462 </element>
1463 </define>
1464 <define name="attlist.textType" combine="interleave">
1465 <ref name="a.header"/>
1466 </define>
1467 <define name="textTypeRef">
1468 <element name="textTypeRef">
1469 <ref name="attlist.textTypeRef"/>
1470 <text/>
1471 </element>
1472 </define>
1473 <define name="attlist.textTypeRef" combine="interleave">
1474 <ref name="a.header"/>
1475 </define>
1476 <define name="textTypeArt">
1477 <element name="textTypeArt">
1478 <ref name="attlist.textTypeArt"/>
1479 <text/>
1480 </element>
1481 </define>
1482 <define name="attlist.textTypeArt" combine="interleave">
1483 <ref name="a.header"/>
1484 </define>
1485 <define name="textDomain">
1486 <element name="textDomain">
1487 <ref name="attlist.textDomain"/>
1488 <text/>
1489 </element>
1490 </define>
1491 <define name="attlist.textDomain" combine="interleave">
1492 <ref name="a.header"/>
1493 </define>
1494 <define name="column">
1495 <element name="column">
1496 <ref name="attlist.column"/>
1497 <text/>
1498 </element>
1499 </define>
1500 <define name="attlist.column" combine="interleave">
1501 <ref name="a.header"/>
1502 </define>
1503 <!-- Revision description -->
1504 <define name="revisionDesc">
1505 <element name="revisionDesc">
1506 <ref name="attlist.revisionDesc"/>
1507 <oneOrMore>
1508 <ref name="change"/>
1509 </oneOrMore>
1510 </element>
1511 </define>
1512 <define name="attlist.revisionDesc" combine="interleave">
1513 <ref name="a.header"/>
1514 </define>
1515 <define name="change">
1516 <element name="change">
1517 <ref name="attlist.change"/>
1518 <ref name="changeDate"/>
1519 <ref name="respName"/>
1520 <oneOrMore>
1521 <ref name="h.item"/>
1522 </oneOrMore>
1523 </element>
1524 </define>
1525 <define name="attlist.change" combine="interleave">
1526 <ref name="a.header"/>
1527 </define>
1528 <define name="changeDate">
1529 <element name="changeDate">
1530 <ref name="attlist.changeDate"/>
1531 <text/>
1532 </element>
1533 </define>
1534 <define name="attlist.changeDate" combine="interleave">
1535 <ref name="a.header"/>
1536 <optional>
1537 <attribute name="value"/>
1538 </optional>
1539 </define>
1540 <define name="h.item">
1541 <element name="h.item">
1542 <ref name="attlist.h.item"/>
1543 <text/>
1544 </element>
1545 </define>
1546 <define name="attlist.h.item" combine="interleave">
1547 <ref name="a.header"/>
1548 </define>
1549 <!-- Sub-paragraph elements -->
1550 <define name="x.token">
1551 <notAllowed/>
1552 </define>
1553 <define name="m.token">
1554 <choice>
1555 <ref name="x.token"/>
1556 <ref name="abbr"/>
1557 <ref name="date"/>
1558 <ref name="num"/>
1559 <ref name="dateRange"/>
1560 <ref name="numRange"/>
1561 <ref name="timeRange"/>
1562 <ref name="measure"/>
1563 <ref name="name"/>
1564 <ref name="term"/>
1565 <ref name="time"/>
1566 <ref name="w"/>
1567 </choice>
1568 </define>
1569 <define name="m.phrase">
1570 <choice>
1571 <ref name="m.token"/>
1572 <ref name="corr"/>
1573 <ref name="distinct"/>
1574 <ref name="foreign"/>
1575 <ref name="gap"/>
1576 <ref name="hi"/>
1577 <ref name="list"/>
1578 <ref name="mentioned"/>
1579 <ref name="orig"/>
1580 <ref name="q"/>
1581 <ref name="ref"/>
1582 <ref name="reg"/>
1583 <ref name="s"/>
1584 <ref name="stage"/>
1585 <ref name="title"/>
1586 <ref name="table"/>
1587 <ref name="xref"/>
1588 </choice>
1589 </define>
1590 <define name="base.seq">
1591 <choice>
1592 <text/>
1593 <ref name="x.token"/>
1594 <ref name="num"/>
1595 <ref name="numRange"/>
1596 <ref name="abbr"/>
1597 <ref name="hi"/>
1598 </choice>
1599 </define>
1600 <define name="phrase.seq">
1601 <choice>
1602 <text/>
1603 <ref name="m.phrase"/>
1604 </choice>
1605 </define>
1606 <define name="ids.milestones">
1607 <choice>
1608 <ref name="pb"/>
1609 <ref name="lb"/>
1610 <ref name="ptr"/>
1611 <ref name="xptr"/>
1612 </choice>
1613 </define>
1614 <define name="a.text">
1615 <ref name="a.global"/>
1616 <optional>
1617 <attribute name="rend"/>
1618 </optional>
1619 <optional>
1620 <attribute name="wsd"/>
1621 </optional>
1622 </define>
1623 <define name="abbr">
1624 <element name="abbr">
1625 <ref name="attlist.abbr"/>
1626 <text/>
1627 </element>
1628 </define>
1629 <define name="attlist.abbr" combine="interleave">
1630 <ref name="a.text"/>
1631 <optional>
1632 <attribute name="expan"/>
1633 </optional>
1634 <optional>
1635 <attribute name="resp">
1636 <data type="IDREF"/>
1637 </attribute>
1638 </optional>
1639 <optional>
1640 <attribute name="cert"/>
1641 </optional>
1642 <optional>
1643 <attribute name="type"/>
1644 </optional>
1645 </define>
1646 <define name="corr">
1647 <element name="corr">
1648 <ref name="attlist.corr"/>
1649 <zeroOrMore>
1650 <ref name="phrase.seq"/>
1651 </zeroOrMore>
1652 </element>
1653 </define>
1654 <define name="attlist.corr" combine="interleave">
1655 <ref name="a.text"/>
1656 <optional>
1657 <attribute name="sic"/>
1658 </optional>
1659 <optional>
1660 <attribute name="resp"/>
1661 </optional>
1662 <optional>
1663 <attribute name="cert"/>
1664 </optional>
1665 </define>
1666 <define name="p">
1667 <element name="p">
1668 <ref name="attlist.p"/>
1669 <zeroOrMore>
1670 <choice>
1671 <ref name="phrase.seq"/>
1672 <ref name="ids.milestones"/>
1673 </choice>
1674 </zeroOrMore>
1675 </element>
1676 </define>
1677 <define name="attlist.p" combine="interleave">
1678 <ref name="a.text"/>
1679 </define>
1680 <define name="ids.q.att.type">
1681 <optional>
1682 <attribute name="type" a:defaultValue="unspec">
1683 <choice>
1684 <value>w</value>
1685 <value>o</value>
1686 <value>unspec</value>
1687 </choice>
1688 </attribute>
1689 </optional>
1690 </define>
1691 <!-- SENTENCES, QUOTED DIALOGUE WITHIN PARAGRAPHS -->
1692 <define name="s">
1693 <element name="s">
1694 <ref name="attlist.s"/>
1695 <zeroOrMore>
1696 <choice>
1697 <ref name="phrase.seq"/>
1698 <ref name="ids.milestones"/>
1699 </choice>
1700 </zeroOrMore>
1701 </element>
1702 </define>
1703 <define name="attlist.s" combine="interleave">
1704 <ref name="a.text"/>
1705 <optional>
1706 <attribute name="next">
1707 <data type="IDREF"/>
1708 </attribute>
1709 </optional>
1710 <optional>
1711 <attribute name="prev">
1712 <data type="IDREF"/>
1713 </attribute>
1714 </optional>
1715 <optional>
1716 <attribute name="type"/>
1717 </optional>
1718 <optional>
1719 <attribute name="broken" a:defaultValue="no">
1720 <choice>
1721 <value>yes</value>
1722 <value>no</value>
1723 </choice>
1724 </attribute>
1725 </optional>
1726 </define>
1727 <define name="q">
1728 <element name="q">
1729 <ref name="attlist.q"/>
1730 <zeroOrMore>
1731 <choice>
1732 <ref name="phrase.seq"/>
1733 <ref name="ids.milestones"/>
1734 </choice>
1735 </zeroOrMore>
1736 </element>
1737 </define>
1738 <define name="attlist.q" combine="interleave">
1739 <ref name="a.text"/>
1740 <ref name="ids.q.att.type"/>
1741 <optional>
1742 <attribute name="next">
1743 <data type="IDREF"/>
1744 </attribute>
1745 </optional>
1746 <optional>
1747 <attribute name="prev">
1748 <data type="IDREF"/>
1749 </attribute>
1750 </optional>
1751 <optional>
1752 <attribute name="direct" a:defaultValue="unspecified">
1753 <choice>
1754 <value>y</value>
1755 <value>n</value>
1756 <value>unspecified</value>
1757 </choice>
1758 </attribute>
1759 </optional>
1760 <optional>
1761 <attribute name="who"/>
1762 </optional>
1763 <optional>
1764 <attribute name="broken" a:defaultValue="no">
1765 <choice>
1766 <value>yes</value>
1767 <value>no</value>
1768 </choice>
1769 </attribute>
1770 </optional>
1771 </define>
1772 <!--
1773 Analog zu TEI koennen auch poem und quote
1774 innerhalb von sp auftreten
1775 -->
1776 <define name="sp">
1777 <element name="sp">
1778 <ref name="attlist.sp"/>
1779 <zeroOrMore>
1780 <choice>
1781 <ref name="speaker"/>
1782 <ref name="p"/>
1783 <ref name="quote"/>
1784 <ref name="poem"/>
1785 <ref name="stage"/>
1786 <ref name="ids.milestones"/>
1787 </choice>
1788 </zeroOrMore>
1789 </element>
1790 </define>
1791 <define name="attlist.sp" combine="interleave">
1792 <ref name="a.text"/>
1793 <optional>
1794 <attribute name="who"/>
1795 </optional>
1796 </define>
1797 <define name="speaker">
1798 <element name="speaker">
1799 <ref name="attlist.speaker"/>
1800 <zeroOrMore>
1801 <choice>
1802 <ref name="base.seq"/>
1803 <ref name="ids.milestones"/>
1804 </choice>
1805 </zeroOrMore>
1806 </element>
1807 </define>
1808 <define name="attlist.speaker" combine="interleave">
1809 <ref name="a.text"/>
1810 </define>
1811 <define name="stage">
1812 <element name="stage">
1813 <ref name="attlist.stage"/>
1814 <zeroOrMore>
1815 <choice>
1816 <ref name="base.seq"/>
1817 <ref name="p"/>
1818 <ref name="ids.milestones"/>
1819 </choice>
1820 </zeroOrMore>
1821 </element>
1822 </define>
1823 <define name="attlist.stage" combine="interleave">
1824 <ref name="a.text"/>
1825 <optional>
1826 <attribute name="type"/>
1827 </optional>
1828 </define>
1829 <!-- Tables -->
1830 <define name="table">
1831 <element name="table">
1832 <ref name="attlist.table"/>
1833 <optional>
1834 <ref name="head"/>
1835 </optional>
1836 <oneOrMore>
1837 <choice>
1838 <ref name="row"/>
1839 <ref name="ids.milestones"/>
1840 </choice>
1841 </oneOrMore>
1842 </element>
1843 </define>
1844 <define name="attlist.table" combine="interleave">
1845 <ref name="a.text"/>
1846 <optional>
1847 <attribute name="rows">
1848 <data type="NMTOKEN"/>
1849 </attribute>
1850 </optional>
1851 <optional>
1852 <attribute name="cols">
1853 <data type="NMTOKEN"/>
1854 </attribute>
1855 </optional>
1856 </define>
1857 <define name="row">
1858 <element name="row">
1859 <ref name="attlist.row"/>
1860 <oneOrMore>
1861 <choice>
1862 <ref name="cell"/>
1863 <ref name="table"/>
1864 </choice>
1865 </oneOrMore>
1866 </element>
1867 </define>
1868 <define name="attlist.row" combine="interleave">
1869 <ref name="a.text"/>
1870 <optional>
1871 <attribute name="role" a:defaultValue="data"/>
1872 </optional>
1873 </define>
1874 <define name="cell">
1875 <element name="cell">
1876 <ref name="attlist.cell"/>
1877 <zeroOrMore>
1878 <choice>
1879 <ref name="phrase.seq"/>
1880 <ref name="ids.milestones"/>
1881 </choice>
1882 </zeroOrMore>
1883 </element>
1884 </define>
1885 <define name="attlist.cell" combine="interleave">
1886 <ref name="a.text"/>
1887 <optional>
1888 <attribute name="role" a:defaultValue="data"/>
1889 </optional>
1890 <optional>
1891 <attribute name="rows" a:defaultValue="1">
1892 <data type="NMTOKEN"/>
1893 </attribute>
1894 </optional>
1895 <optional>
1896 <attribute name="cols" a:defaultValue="1">
1897 <data type="NMTOKEN"/>
1898 </attribute>
1899 </optional>
1900 </define>
1901 <define name="time">
1902 <element name="time">
1903 <ref name="attlist.time"/>
1904 <zeroOrMore>
1905 <choice>
1906 <ref name="base.seq"/>
1907 <ref name="ids.milestones"/>
1908 </choice>
1909 </zeroOrMore>
1910 </element>
1911 </define>
1912 <define name="attlist.time" combine="interleave">
1913 <ref name="a.text"/>
1914 <optional>
1915 <attribute name="ISO8601"/>
1916 </optional>
1917 <optional>
1918 <attribute name="type">
1919 <choice>
1920 <value>am</value>
1921 <value>pm</value>
1922 <value>24hour</value>
1923 <value>descriptive</value>
1924 </choice>
1925 </attribute>
1926 </optional>
1927 </define>
1928 <define name="dateRange">
1929 <element name="dateRange">
1930 <ref name="attlist.dateRange"/>
1931 <zeroOrMore>
1932 <ref name="base.seq"/>
1933 </zeroOrMore>
1934 </element>
1935 </define>
1936 <define name="attlist.dateRange" combine="interleave">
1937 <ref name="a.text"/>
1938 <optional>
1939 <attribute name="from"/>
1940 </optional>
1941 <optional>
1942 <attribute name="to"/>
1943 </optional>
1944 </define>
1945 <define name="numRange">
1946 <element name="numRange">
1947 <ref name="attlist.numRange"/>
1948 <zeroOrMore>
1949 <ref name="base.seq"/>
1950 </zeroOrMore>
1951 </element>
1952 </define>
1953 <define name="attlist.numRange" combine="interleave">
1954 <ref name="a.text"/>
1955 <optional>
1956 <attribute name="from"/>
1957 </optional>
1958 <optional>
1959 <attribute name="to"/>
1960 </optional>
1961 <optional>
1962 <attribute name="type"/>
1963 </optional>
1964 </define>
1965 <define name="timeRange">
1966 <element name="timeRange">
1967 <ref name="attlist.timeRange"/>
1968 <zeroOrMore>
1969 <ref name="base.seq"/>
1970 </zeroOrMore>
1971 </element>
1972 </define>
1973 <define name="attlist.timeRange" combine="interleave">
1974 <ref name="a.text"/>
1975 <optional>
1976 <attribute name="from"/>
1977 </optional>
1978 <optional>
1979 <attribute name="to"/>
1980 </optional>
1981 </define>
1982 <define name="w">
1983 <element name="w">
1984 <ref name="attlist.w"/>
1985 <text/>
1986 </element>
1987 </define>
1988 <define name="attlist.w" combine="interleave">
1989 <ref name="a.text"/>
1990 <optional>
1991 <attribute name="ana"/>
1992 </optional>
1993 <optional>
1994 <attribute name="ctag"/>
1995 </optional>
1996 <optional>
1997 <attribute name="type"/>
1998 </optional>
1999 </define>
2000 <define name="title">
2001 <element name="title">
2002 <ref name="attlist.title"/>
2003 <zeroOrMore>
2004 <choice>
2005 <ref name="phrase.seq"/>
2006 <ref name="ids.milestones"/>
2007 </choice>
2008 </zeroOrMore>
2009 </element>
2010 </define>
2011 <define name="attlist.title" combine="interleave">
2012 <ref name="a.text"/>
2013 <optional>
2014 <attribute name="type"/>
2015 </optional>
2016 </define>
2017 <!-- Highlighted text -->
2018 <define name="hi">
2019 <element name="hi">
2020 <ref name="attlist.hi"/>
2021 <zeroOrMore>
2022 <choice>
2023 <ref name="phrase.seq"/>
2024 <ref name="ids.milestones"/>
2025 </choice>
2026 </zeroOrMore>
2027 </element>
2028 </define>
2029 <define name="attlist.hi" combine="interleave">
2030 <ref name="a.text"/>
2031 </define>
2032 <!-- Other Phrase-level Elements -->
2033 <define name="date">
2034 <element name="date">
2035 <ref name="attlist.date"/>
2036 <zeroOrMore>
2037 <ref name="base.seq"/>
2038 </zeroOrMore>
2039 </element>
2040 </define>
2041 <define name="attlist.date" combine="interleave">
2042 <ref name="a.text"/>
2043 <optional>
2044 <attribute name="ISO8601"/>
2045 </optional>
2046 </define>
2047 <define name="foreign">
2048 <element name="foreign">
2049 <ref name="attlist.foreign"/>
2050 <zeroOrMore>
2051 <choice>
2052 <ref name="phrase.seq"/>
2053 <ref name="ids.milestones"/>
2054 </choice>
2055 </zeroOrMore>
2056 </element>
2057 </define>
2058 <define name="attlist.foreign" combine="interleave">
2059 <ref name="a.text"/>
2060 </define>
2061 <define name="distinct">
2062 <element name="distinct">
2063 <ref name="attlist.distinct"/>
2064 <zeroOrMore>
2065 <choice>
2066 <ref name="phrase.seq"/>
2067 <ref name="ids.milestones"/>
2068 </choice>
2069 </zeroOrMore>
2070 </element>
2071 </define>
2072 <define name="attlist.distinct" combine="interleave">
2073 <ref name="a.text"/>
2074 <optional>
2075 <attribute name="type"/>
2076 </optional>
2077 </define>
2078 <define name="mentioned">
2079 <element name="mentioned">
2080 <ref name="attlist.mentioned"/>
2081 <zeroOrMore>
2082 <choice>
2083 <ref name="phrase.seq"/>
2084 <ref name="ids.milestones"/>
2085 </choice>
2086 </zeroOrMore>
2087 </element>
2088 </define>
2089 <define name="attlist.mentioned" combine="interleave">
2090 <ref name="a.text"/>
2091 </define>
2092 <define name="measure">
2093 <element name="measure">
2094 <ref name="attlist.measure"/>
2095 <zeroOrMore>
2096 <ref name="base.seq"/>
2097 </zeroOrMore>
2098 </element>
2099 </define>
2100 <define name="attlist.measure" combine="interleave">
2101 <ref name="a.text"/>
2102 <optional>
2103 <attribute name="type">
2104 <choice>
2105 <value>weight</value>
2106 <value>length</value>
2107 <value>count</value>
2108 <value>area</value>
2109 <value>volume</value>
2110 <value>temperature</value>
2111 <value>currency</value>
2112 </choice>
2113 </attribute>
2114 </optional>
2115 <optional>
2116 <attribute name="value"/>
2117 </optional>
2118 </define>
2119 <define name="name">
2120 <element name="name">
2121 <ref name="attlist.name"/>
2122 <zeroOrMore>
2123 <choice>
2124 <ref name="base.seq"/>
2125 <ref name="ids.milestones"/>
2126 </choice>
2127 </zeroOrMore>
2128 </element>
2129 </define>
2130 <define name="attlist.name" combine="interleave">
2131 <ref name="a.text"/>
2132 <optional>
2133 <attribute name="type"/>
2134 </optional>
2135 </define>
2136 <define name="term">
2137 <element name="term">
2138 <ref name="attlist.term"/>
2139 <zeroOrMore>
2140 <choice>
2141 <ref name="base.seq"/>
2142 <ref name="ids.milestones"/>
2143 </choice>
2144 </zeroOrMore>
2145 </element>
2146 </define>
2147 <define name="attlist.term" combine="interleave">
2148 <ref name="a.text"/>
2149 <optional>
2150 <attribute name="type"/>
2151 </optional>
2152 </define>
2153 <!-- Editorial Changes -->
2154 <define name="gap">
2155 <element name="gap">
2156 <ref name="attlist.gap"/>
2157 <empty/>
2158 </element>
2159 </define>
2160 <define name="attlist.gap" combine="interleave">
2161 <ref name="a.text"/>
2162 <optional>
2163 <attribute name="desc"/>
2164 </optional>
2165 <optional>
2166 <attribute name="reason"/>
2167 </optional>
2168 <optional>
2169 <attribute name="resp"/>
2170 </optional>
2171 <optional>
2172 <attribute name="cert"/>
2173 </optional>
2174 </define>
2175 <define name="reg">
2176 <element name="reg">
2177 <ref name="attlist.reg"/>
2178 <zeroOrMore>
2179 <ref name="phrase.seq"/>
2180 </zeroOrMore>
2181 </element>
2182 </define>
2183 <define name="attlist.reg" combine="interleave">
2184 <ref name="a.text"/>
2185 <optional>
2186 <attribute name="orig"/>
2187 </optional>
2188 <optional>
2189 <attribute name="resp"/>
2190 </optional>
2191 <optional>
2192 <attribute name="cert"/>
2193 </optional>
2194 </define>
2195 <!--
2196 Seubert, 07.03.05 erweitert um Attribut 'regalt' wg. Varianten
2197 in sog. Sparschreibung
2198 -->
2199 <define name="orig">
2200 <element name="orig">
2201 <ref name="attlist.orig"/>
2202 <zeroOrMore>
2203 <ref name="phrase.seq"/>
2204 </zeroOrMore>
2205 </element>
2206 </define>
2207 <define name="attlist.orig" combine="interleave">
2208 <ref name="a.text"/>
2209 <optional>
2210 <attribute name="reg"/>
2211 </optional>
2212 <optional>
2213 <attribute name="regalt"/>
2214 </optional>
2215 <optional>
2216 <attribute name="resp"/>
2217 </optional>
2218 <optional>
2219 <attribute name="cert"/>
2220 </optional>
2221 </define>
2222 <define name="list">
2223 <element name="list">
2224 <ref name="attlist.list"/>
2225 <optional>
2226 <ref name="head"/>
2227 </optional>
2228 <zeroOrMore>
2229 <choice>
2230 <ref name="item"/>
2231 <group>
2232 <ref name="label"/>
2233 <zeroOrMore>
2234 <ref name="ids.milestones"/>
2235 </zeroOrMore>
2236 <ref name="item"/>
2237 </group>
2238 <ref name="ids.milestones"/>
2239 </choice>
2240 </zeroOrMore>
2241 </element>
2242 </define>
2243 <define name="attlist.list" combine="interleave">
2244 <ref name="a.text"/>
2245 <optional>
2246 <attribute name="type"/>
2247 </optional>
2248 </define>
2249 <define name="item">
2250 <element name="item">
2251 <ref name="attlist.item"/>
2252 <zeroOrMore>
2253 <choice>
2254 <ref name="phrase.seq"/>
2255 <ref name="p"/>
2256 <ref name="ids.milestones"/>
2257 </choice>
2258 </zeroOrMore>
2259 </element>
2260 </define>
2261 <define name="attlist.item" combine="interleave">
2262 <ref name="a.text"/>
2263 </define>
2264 <define name="label">
2265 <element name="label">
2266 <ref name="attlist.label"/>
2267 <zeroOrMore>
2268 <ref name="phrase.seq"/>
2269 </zeroOrMore>
2270 </element>
2271 </define>
2272 <define name="attlist.label" combine="interleave">
2273 <ref name="a.text"/>
2274 </define>
2275 <define name="num">
2276 <element name="num">
2277 <ref name="attlist.num"/>
2278 <text/>
2279 </element>
2280 </define>
2281 <define name="attlist.num" combine="interleave">
2282 <ref name="a.text"/>
2283 <optional>
2284 <attribute name="type"/>
2285 </optional>
2286 <optional>
2287 <attribute name="value"/>
2288 </optional>
2289 </define>
2290 <!-- Simple cross references -->
2291 <define name="ptr">
2292 <element name="ptr">
2293 <ref name="attlist.ptr"/>
2294 <empty/>
2295 </element>
2296 </define>
2297 <define name="attlist.ptr" combine="interleave">
2298 <ref name="a.text"/>
2299 <optional>
2300 <attribute name="corresp">
2301 <data type="IDREFS"/>
2302 </attribute>
2303 </optional>
2304 <optional>
2305 <attribute name="next">
2306 <data type="IDREF"/>
2307 </attribute>
2308 </optional>
2309 <optional>
2310 <attribute name="prev">
2311 <data type="IDREF"/>
2312 </attribute>
2313 </optional>
2314 <optional>
2315 <attribute name="type"/>
2316 </optional>
2317 <optional>
2318 <attribute name="resp"/>
2319 </optional>
2320 <optional>
2321 <attribute name="crdate"/>
2322 </optional>
2323 <optional>
2324 <attribute name="targType">
2325 <data type="NMTOKENS"/>
2326 </attribute>
2327 </optional>
2328 <optional>
2329 <attribute name="targOrder" a:defaultValue="u">
2330 <choice>
2331 <value>y</value>
2332 <value>n</value>
2333 <value>u</value>
2334 </choice>
2335 </attribute>
2336 </optional>
2337 <optional>
2338 <attribute name="evaluate">
2339 <choice>
2340 <value>all</value>
2341 <value>one</value>
2342 <value>none</value>
2343 </choice>
2344 </attribute>
2345 </optional>
2346 <attribute name="target">
2347 <data type="IDREFS"/>
2348 </attribute>
2349 </define>
2350 <define name="ref">
2351 <element name="ref">
2352 <ref name="attlist.ref"/>
2353 <zeroOrMore>
2354 <choice>
2355 <ref name="phrase.seq"/>
2356 <ref name="ids.milestones"/>
2357 </choice>
2358 </zeroOrMore>
2359 </element>
2360 </define>
2361 <define name="attlist.ref" combine="interleave">
2362 <ref name="a.text"/>
2363 <optional>
2364 <attribute name="corresp">
2365 <data type="IDREFS"/>
2366 </attribute>
2367 </optional>
2368 <optional>
2369 <attribute name="next">
2370 <data type="IDREF"/>
2371 </attribute>
2372 </optional>
2373 <optional>
2374 <attribute name="prev">
2375 <data type="IDREF"/>
2376 </attribute>
2377 </optional>
2378 <optional>
2379 <attribute name="type"/>
2380 </optional>
2381 <optional>
2382 <attribute name="resp"/>
2383 </optional>
2384 <optional>
2385 <attribute name="crdate"/>
2386 </optional>
2387 <optional>
2388 <attribute name="targType">
2389 <data type="NMTOKENS"/>
2390 </attribute>
2391 </optional>
2392 <optional>
2393 <attribute name="targOrder" a:defaultValue="u">
2394 <choice>
2395 <value>y</value>
2396 <value>n</value>
2397 <value>u</value>
2398 </choice>
2399 </attribute>
2400 </optional>
2401 <optional>
2402 <attribute name="evaluate">
2403 <choice>
2404 <value>all</value>
2405 <value>one</value>
2406 <value>none</value>
2407 </choice>
2408 </attribute>
2409 </optional>
2410 <optional>
2411 <attribute name="target"/>
2412 </optional>
2413 </define>
2414 <define name="pb">
2415 <element name="pb">
2416 <ref name="attlist.pb"/>
2417 <empty/>
2418 </element>
2419 </define>
2420 <define name="attlist.pb" combine="interleave">
2421 <optional>
2422 <attribute name="id">
2423 <data type="ID"/>
2424 </attribute>
2425 </optional>
2426 <optional>
2427 <attribute name="lang">
2428 <data type="IDREF"/>
2429 </attribute>
2430 </optional>
2431 <optional>
2432 <attribute name="rend"/>
2433 </optional>
2434 <optional>
2435 <attribute name="ed"/>
2436 </optional>
2437 <optional>
2438 <attribute name="n"/>
2439 </optional>
2440 <optional>
2441 <attribute name="TEIform" a:defaultValue="pb"/>
2442 </optional>
2443 </define>
2444 <define name="lb">
2445 <element name="lb">
2446 <ref name="attlist.lb"/>
2447 <empty/>
2448 </element>
2449 </define>
2450 <define name="attlist.lb" combine="interleave">
2451 <optional>
2452 <attribute name="id">
2453 <data type="ID"/>
2454 </attribute>
2455 </optional>
2456 <optional>
2457 <attribute name="lang">
2458 <data type="IDREF"/>
2459 </attribute>
2460 </optional>
2461 <optional>
2462 <attribute name="rend"/>
2463 </optional>
2464 <optional>
2465 <attribute name="ed"/>
2466 </optional>
2467 <optional>
2468 <attribute name="n"/>
2469 </optional>
2470 <optional>
2471 <attribute name="TEIform" a:defaultValue="pb"/>
2472 </optional>
2473 </define>
2474 <define name="xptr">
2475 <element name="xptr">
2476 <ref name="attlist.xptr"/>
2477 <empty/>
2478 </element>
2479 </define>
2480 <define name="attlist.xptr" combine="interleave">
2481 <optional>
2482 <attribute name="corresp">
2483 <data type="IDREFS"/>
2484 </attribute>
2485 </optional>
2486 <optional>
2487 <attribute name="next">
2488 <data type="IDREF"/>
2489 </attribute>
2490 </optional>
2491 <optional>
2492 <attribute name="prev">
2493 <data type="IDREF"/>
2494 </attribute>
2495 </optional>
2496 <optional>
2497 <attribute name="ana">
2498 <data type="IDREFS"/>
2499 </attribute>
2500 </optional>
2501 <optional>
2502 <attribute name="id">
2503 <data type="ID"/>
2504 </attribute>
2505 </optional>
2506 <optional>
2507 <attribute name="n"/>
2508 </optional>
2509 <optional>
2510 <attribute name="lang">
2511 <data type="IDREF"/>
2512 </attribute>
2513 </optional>
2514 <optional>
2515 <attribute name="rend"/>
2516 </optional>
2517 <optional>
2518 <attribute name="type"/>
2519 </optional>
2520 <optional>
2521 <attribute name="resp"/>
2522 </optional>
2523 <optional>
2524 <attribute name="crdate"/>
2525 </optional>
2526 <optional>
2527 <attribute name="targType"/>
2528 </optional>
2529 <optional>
2530 <attribute name="targOrder" a:defaultValue="u">
2531 <choice>
2532 <value>y</value>
2533 <value>n</value>
2534 <value>u</value>
2535 </choice>
2536 </attribute>
2537 </optional>
2538 <optional>
2539 <attribute name="evaluate">
2540 <choice>
2541 <value>all</value>
2542 <value>one</value>
2543 <value>none</value>
2544 </choice>
2545 </attribute>
2546 </optional>
2547 <optional>
2548 <attribute name="doc"/>
2549 </optional>
2550 <optional>
2551 <attribute name="from" a:defaultValue="ROOT"/>
2552 </optional>
2553 <optional>
2554 <attribute name="to" a:defaultValue="DITTO"/>
2555 </optional>
2556 <optional>
2557 <attribute name="TEIform" a:defaultValue="xptr"/>
2558 </optional>
2559 </define>
2560 <define name="xref">
2561 <element name="xref">
2562 <ref name="attlist.xref"/>
2563 <zeroOrMore>
2564 <ref name="phrase.seq"/>
2565 </zeroOrMore>
2566 </element>
2567 </define>
2568 <define name="attlist.xref" combine="interleave">
2569 <ref name="a.text"/>
2570 <optional>
2571 <attribute name="corresp">
2572 <data type="IDREFS"/>
2573 </attribute>
2574 </optional>
2575 <optional>
2576 <attribute name="next">
2577 <data type="IDREF"/>
2578 </attribute>
2579 </optional>
2580 <optional>
2581 <attribute name="prev">
2582 <data type="IDREF"/>
2583 </attribute>
2584 </optional>
2585 <optional>
2586 <attribute name="ana">
2587 <data type="IDREFS"/>
2588 </attribute>
2589 </optional>
2590 <optional>
2591 <attribute name="type"/>
2592 </optional>
2593 <optional>
2594 <attribute name="resp"/>
2595 </optional>
2596 <optional>
2597 <attribute name="crdate"/>
2598 </optional>
2599 <optional>
2600 <attribute name="targType"/>
2601 </optional>
2602 <optional>
2603 <attribute name="targOrder" a:defaultValue="u">
2604 <choice>
2605 <value>y</value>
2606 <value>n</value>
2607 <value>u</value>
2608 </choice>
2609 </attribute>
2610 </optional>
2611 <optional>
2612 <attribute name="evaluate">
2613 <choice>
2614 <value>all</value>
2615 <value>one</value>
2616 <value>none</value>
2617 </choice>
2618 </attribute>
2619 </optional>
2620 <optional>
2621 <attribute name="doc">
2622 <data type="ENTITY"/>
2623 </attribute>
2624 </optional>
2625 <optional>
2626 <attribute name="from" a:defaultValue="ROOT"/>
2627 </optional>
2628 <optional>
2629 <attribute name="to" a:defaultValue="DITTO"/>
2630 </optional>
2631 <optional>
2632 <attribute name="TEIform" a:defaultValue="xref"/>
2633 </optional>
2634 </define>
2635 <define name="head">
2636 <element name="head">
2637 <ref name="attlist.head"/>
2638 <zeroOrMore>
2639 <choice>
2640 <ref name="phrase.seq"/>
2641 <ref name="ptr"/>
2642 </choice>
2643 </zeroOrMore>
2644 </element>
2645 </define>
2646 <define name="attlist.head" combine="interleave">
2647 <ref name="a.text"/>
2648 <optional>
2649 <attribute name="type" a:defaultValue="unspecified">
2650 <choice>
2651 <value>top</value>
2652 <value>main</value>
2653 <value>sub</value>
2654 <value>cross</value>
2655 <value>desc</value>
2656 <value>unspecified</value>
2657 </choice>
2658 </attribute>
2659 </optional>
2660 </define>
2661 <define name="state">
2662 <element name="state">
2663 <ref name="attlist.state"/>
2664 <empty/>
2665 </element>
2666 </define>
2667 <define name="attlist.state" combine="interleave">
2668 <ref name="a.global"/>
2669 <optional>
2670 <attribute name="ed"/>
2671 </optional>
2672 <attribute name="unit"/>
2673 <optional>
2674 <attribute name="length">
2675 <data type="NMTOKEN"/>
2676 </attribute>
2677 </optional>
2678 <optional>
2679 <attribute name="delim"/>
2680 </optional>
2681 </define>
2682 <!-- Poems -->
2683 <define name="poem">
2684 <element name="poem">
2685 <ref name="attlist.poem"/>
2686 <optional>
2687 <ref name="head"/>
2688 </optional>
2689 <oneOrMore>
2690 <choice>
2691 <ref name="lg"/>
2692 <ref name="l"/>
2693 <ref name="ids.milestones"/>
2694 </choice>
2695 </oneOrMore>
2696 </element>
2697 </define>
2698 <define name="attlist.poem" combine="interleave">
2699 <ref name="a.text"/>
2700 </define>
2701 <define name="lg">
2702 <element name="lg">
2703 <ref name="attlist.lg"/>
2704 <oneOrMore>
2705 <choice>
2706 <ref name="l"/>
2707 <ref name="lg"/>
2708 <ref name="ids.milestones"/>
2709 </choice>
2710 </oneOrMore>
2711 </element>
2712 </define>
2713 <define name="attlist.lg" combine="interleave">
2714 <ref name="a.text"/>
2715 <optional>
2716 <attribute name="type"/>
2717 </optional>
2718 <optional>
2719 <attribute name="part" a:defaultValue="u">
2720 <choice>
2721 <value>y</value>
2722 <value>n</value>
2723 <value>u</value>
2724 </choice>
2725 </attribute>
2726 </optional>
2727 </define>
2728 <define name="l">
2729 <element name="l">
2730 <ref name="attlist.l"/>
2731 <zeroOrMore>
2732 <choice>
2733 <ref name="phrase.seq"/>
2734 <ref name="ids.milestones"/>
2735 </choice>
2736 </zeroOrMore>
2737 </element>
2738 </define>
2739 <define name="attlist.l" combine="interleave">
2740 <ref name="a.text"/>
2741 <optional>
2742 <attribute name="part" a:defaultValue="u">
2743 <choice>
2744 <value>y</value>
2745 <value>n</value>
2746 <value>u</value>
2747 </choice>
2748 </attribute>
2749 </optional>
2750 </define>
2751 <!-- Quotations -->
2752 <define name="quote">
2753 <element name="quote">
2754 <ref name="attlist.quote"/>
2755 <zeroOrMore>
2756 <choice>
2757 <ref name="phrase.seq"/>
2758 <ref name="p"/>
2759 <ref name="poem"/>
2760 <ref name="ids.milestones"/>
2761 </choice>
2762 </zeroOrMore>
2763 </element>
2764 </define>
2765 <define name="attlist.quote" combine="interleave">
2766 <ref name="a.text"/>
2767 <optional>
2768 <attribute name="next">
2769 <data type="IDREF"/>
2770 </attribute>
2771 </optional>
2772 <optional>
2773 <attribute name="prev">
2774 <data type="IDREF"/>
2775 </attribute>
2776 </optional>
2777 <optional>
2778 <attribute name="type"/>
2779 </optional>
2780 <optional>
2781 <attribute name="broken" a:defaultValue="no">
2782 <choice>
2783 <value>yes</value>
2784 <value>no</value>
2785 </choice>
2786 </attribute>
2787 </optional>
2788 </define>
2789</grammar>