summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/stex/schema/rnc/LaTeXML/LaTeXML-bib.rng
blob: 83f70a1c76d7402479a5ce12f30c13ccaca3c20d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
<?xml version="1.0" encoding="UTF-8"?>
<!--
  /=====================================================================\ 
  |  LaTeXML-bib.rnc                                                    |
  | RelaxNG model for LaTeXML generated documents                       |
  |=====================================================================|
  | Part of LaTeXML:                                                    |
  |  Public domain software, produced as part of work done by the       |
  |  United States Government & not subject to copyright in the US.     |
  |=====================================================================|
  | Bruce Miller <bruce.miller@nist.gov>                        #_#     |
  | http://dlmf.nist.gov/LaTeXML/                              (o o)    |
  \=========================================================ooo==U==ooo=/
-->
<grammar ns="http://dlmf.nist.gov/LaTeXML" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0">
  <!-- Would be nice to use somebody elses already-developed DTD... -->
  <!--
    Some notes:
    There're two classes of things here:
    bibentry : which would be the translation of a .bib file
    bibitem  : which would be the formatted items in a latex bibliography environment.
    	   This latter has typically lost much information during formatting.
  -->
  <define name="biblist">
    <element name="biblist">
      <a:documentation>A list of bibliographic \elementref{bibentry} or \elementref{bibitem}.</a:documentation>
      <ref name="biblist_attributes"/>
      <ref name="biblist_model"/>
    </element>
  </define>
  <define name="biblist_attributes">
    <a:documentation>Attributes for \elementref{biblist}.</a:documentation>
    <ref name="Common.attributes"/>
  </define>
  <define name="biblist_model">
    <a:documentation>Content model for \elementref{biblist}.</a:documentation>
    <zeroOrMore>
      <choice>
        <ref name="bibentry"/>
        <ref name="bibitem"/>
      </choice>
    </zeroOrMore>
  </define>
  <!--
    ======================================================================
    bibitem is the formatted, presentation, form, typically information has been lost;
    it basically contains a biblabel and several bibblock's
    ======================================================================
  -->
  <define name="bibitem">
    <element name="bibitem">
      <a:documentation>A formatted bibliographic item, typically as written explicit
in a LaTeX article. This has generally lost most of the semantics
present in the BibTeX data.</a:documentation>
      <ref name="bibitem_attributes"/>
      <ref name="bibitem_model"/>
    </element>
  </define>
  <define name="bibitem_attributes">
    <a:documentation>Attributes for \elementref{bibitem}.</a:documentation>
    <ref name="Common.attributes"/>
    <ref name="ID.attributes"/>
    <optional>
      <attribute name="key">
        <a:documentation>The unique key for this object; this key is referenced by the
\attr{bibrefs} attribute of \elementref{bibref}.</a:documentation>
      </attribute>
    </optional>
  </define>
  <define name="bibitem_model">
    <a:documentation>Content model for \elementref{bibitem}.</a:documentation>
    <zeroOrMore>
      <ref name="bibtag"/>
    </zeroOrMore>
    <zeroOrMore>
      <ref name="bibblock"/>
    </zeroOrMore>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bibtag">
    <element name="bibtag">
      <a:documentation>Various formatted tags for bibliographic items.
Typically @role refnum is shown in the displayed bibliography,
as the beginning of the item.  Other roles 
(eg. number, authors, fullauthors, year, title) record formatted
info to be used for filling in citations (\elementref{bibref}).</a:documentation>
      <ref name="bibtag_attributes"/>
      <ref name="bibtag_model"/>
    </element>
  </define>
  <define name="bibtag_attributes">
    <a:documentation>Attributes for \elementref{bibtag}.</a:documentation>
    <optional>
      <attribute name="role">
        <choice>
          <value>number</value>
          <value>authors</value>
          <value>fullauthors</value>
          <value>key</value>
          <value>year</value>
          <value>bibtype</value>
          <value>title</value>
          <text/>
        </choice>
      </attribute>
    </optional>
    <optional>
      <attribute name="open">
        <a:documentation>A delimiter for formatting the refnum in the bibliography</a:documentation>
      </attribute>
    </optional>
    <optional>
      <attribute name="close">
        <a:documentation>A delimiter for formatting the refnum in the bibliography</a:documentation>
      </attribute>
    </optional>
  </define>
  <define name="bibtag_model">
    <a:documentation>Content model for \elementref{bibtag}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bibblock">
    <element name="bibblock">
      <a:documentation>A block of data appearing within a \elementref{bibitem}.</a:documentation>
      <ref name="bibblock_attributes"/>
      <ref name="bibblock_model"/>
    </element>
  </define>
  <define name="bibblock_attributes">
    <a:documentation>Attributes for \elementref{bibblock}.</a:documentation>
    <empty/>
  </define>
  <define name="bibblock_model">
    <a:documentation>Content model for \elementref{bibblock}.</a:documentation>
    <ref name="Flow.model"/>
  </define>
  <!--
    bibblock's model was this:
     Inline.model }
  -->
  <!--
    ======================================================================
    bibentry is the (more) semantic form, typically extracted from bibtex.
    ======================================================================
  -->
  <define name="bibentry">
    <element name="bibentry">
      <a:documentation>Semantic representation of a bibliography entry, 
typically resulting from parsing BibTeX</a:documentation>
      <ref name="bibentry_attributes"/>
      <ref name="bibentry_model"/>
    </element>
  </define>
  <define name="bibentry.type">
    <choice>
      <value>article</value>
      <value>book</value>
      <value>booklet</value>
      <value>conference</value>
      <value>inbook</value>
      <value>incollection</value>
      <value>inproceedings</value>
      <value>manual</value>
      <value>mastersthesis</value>
      <value>misc</value>
      <value>phdthesis</value>
      <value>proceedings</value>
      <value>techreport</value>
      <value>unpublished</value>
      <value>report</value>
      <value>thesis</value>
      <value>website</value>
      <value>software</value>
      <value>periodical</value>
      <value>collection</value>
      <value>collection.article</value>
      <value>proceedings.article</value>
      <text/>
    </choice>
  </define>
  <define name="bibentry_attributes">
    <a:documentation>Attributes for \elementref{bibentry}.</a:documentation>
    <ref name="Common.attributes"/>
    <ref name="ID.attributes"/>
    <attribute name="key">
      <a:documentation>The unique key for this object; this key is referenced by the
\attr{bibrefs} attribute of \elementref{bibref}.</a:documentation>
    </attribute>
    <attribute name="type">
      <a:documentation>The type of the referenced object. The values are a superset of
those types recognized by BibTeX, but is also open-ended for extensibility.</a:documentation>
      <ref name="bibentry.type"/>
    </attribute>
  </define>
  <define name="bibentry_model">
    <a:documentation>Content model for \elementref{bibentry}.</a:documentation>
    <zeroOrMore>
      <ref name="Bibentry.class"/>
    </zeroOrMore>
  </define>
  <!-- ====================================================================== -->
  <!-- Name related information -->
  <define name="bib-name">
    <element name="bib-name">
      <a:documentation>Name of some participant in creating a bibliographic entry.</a:documentation>
      <ref name="bib-name_attributes"/>
      <ref name="bib-name_model"/>
    </element>
  </define>
  <define name="bib-name_attributes">
    <a:documentation>Attributes for \elementref{bib-name}.</a:documentation>
    <ref name="Common.attributes"/>
    <optional>
      <attribute name="role">
        <a:documentation>The role that this participant played in creating the entry.</a:documentation>
        <choice>
          <value>author</value>
          <value>editor</value>
          <value>translator</value>
          <text/>
        </choice>
      </attribute>
    </optional>
  </define>
  <define name="bib-name_model">
    <a:documentation>Content model for \elementref{bib-name}.</a:documentation>
    <ref name="Bibname.model"/>
  </define>
  <define name="Bibname.model">
    <a:documentation>The content model of the bibliographic name fields (\elementref{bib-name})</a:documentation>
    <ref name="surname"/>
    <optional>
      <ref name="givenname"/>
    </optional>
    <optional>
      <ref name="lineage"/>
    </optional>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="surname">
    <element name="surname">
      <a:documentation>Surname of a participant (\elementref{bib-name}).</a:documentation>
      <ref name="surname_attributes"/>
      <ref name="surname_model"/>
    </element>
  </define>
  <define name="surname_attributes">
    <a:documentation>Attributes for \elementref{surname}.</a:documentation>
    <empty/>
  </define>
  <define name="surname_model">
    <a:documentation>Content model for \elementref{surname}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="givenname">
    <element name="givenname">
      <a:documentation>Given name of a participant (\elementref{bib-name}).</a:documentation>
      <ref name="givenname_attributes"/>
      <ref name="givenname_model"/>
    </element>
  </define>
  <define name="givenname_attributes">
    <a:documentation>Attributes for \elementref{givenname}.</a:documentation>
    <empty/>
  </define>
  <define name="givenname_model">
    <a:documentation>Content model for \elementref{givenname}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="lineage">
    <element name="lineage">
      <a:documentation>Lineage of a participant (\elementref{bib-name}), eg. Jr. or similar.</a:documentation>
      <ref name="lineage_attributes"/>
      <ref name="lineage_model"/>
    </element>
  </define>
  <define name="lineage_attributes">
    <a:documentation>Attributes for \elementref{lineage}.</a:documentation>
    <empty/>
  </define>
  <define name="lineage_model">
    <a:documentation>Content model for \elementref{lineage}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- ====================================================================== -->
  <!-- Title related information -->
  <define name="bib-title">
    <element name="bib-title">
      <a:documentation>Title of a bibliographic entry.</a:documentation>
      <ref name="bib-title_attributes"/>
      <ref name="bib-title_model"/>
    </element>
  </define>
  <define name="bib-title_attributes">
    <a:documentation>Attributes for \elementref{bib-title}.</a:documentation>
    <ref name="Common.attributes"/>
  </define>
  <define name="bib-title_model">
    <a:documentation>Content model for \elementref{bib-title}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bib-subtitle">
    <element name="bib-subtitle">
      <a:documentation>Subtitle of a bibliographic entry.</a:documentation>
      <ref name="bib-subtitle_attributes"/>
      <ref name="bib-subtitle_model"/>
    </element>
  </define>
  <define name="bib-subtitle_attributes">
    <a:documentation>Attributes for \elementref{bib-subtitle}.</a:documentation>
    <ref name="Common.attributes"/>
  </define>
  <define name="bib-subtitle_model">
    <a:documentation>Content model for \elementref{bib-subtitle}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bib-key">
    <element name="bib-key">
      <a:documentation>Unique key of a bibliographic entry.</a:documentation>
      <ref name="bib-key_attributes"/>
      <ref name="bib-key_model"/>
    </element>
  </define>
  <define name="bib-key_attributes">
    <a:documentation>Attributes for \elementref{bib-key}.</a:documentation>
    <ref name="Common.attributes"/>
  </define>
  <define name="bib-key_model">
    <a:documentation>Content model for \elementref{bib-key}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bib-type">
    <element name="bib-type">
      <a:documentation>Type of a bibliographic entry.</a:documentation>
      <ref name="bib-type_attributes"/>
      <ref name="bib-type_model"/>
    </element>
  </define>
  <define name="bib-type_attributes">
    <a:documentation>Attributes for \elementref{bib-type}.</a:documentation>
    <ref name="Common.attributes"/>
  </define>
  <define name="bib-type_model">
    <a:documentation>Content model for \elementref{bib-type}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bib-date">
    <element name="bib-date">
      <a:documentation>Date of a bibliographic entry.</a:documentation>
      <ref name="bib-date_attributes"/>
      <ref name="bib-date_model"/>
    </element>
  </define>
  <define name="bib-date_attributes">
    <a:documentation>Attributes for \elementref{bib-date}.</a:documentation>
    <ref name="Common.attributes"/>
    <optional>
      <attribute name="role">
        <a:documentation>characterizes what happened on the given date</a:documentation>
        <choice>
          <value>publication</value>
          <value>copyright</value>
          <text/>
        </choice>
      </attribute>
    </optional>
  </define>
  <define name="bib-date_model">
    <a:documentation>Content model for \elementref{bib-date}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bib-publisher">
    <element name="bib-publisher">
      <a:documentation>Publisher of a bibliographic entry.</a:documentation>
      <ref name="bib-publisher_attributes"/>
      <ref name="bib-publisher_model"/>
    </element>
  </define>
  <define name="bib-publisher_attributes">
    <a:documentation>Attributes for \elementref{bib-publisher}.</a:documentation>
    <ref name="Common.attributes"/>
  </define>
  <define name="bib-publisher_model">
    <a:documentation>Content model for \elementref{bib-publisher}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bib-organization">
    <element name="bib-organization">
      <a:documentation>Organization responsible for a bibliographic entry.</a:documentation>
      <ref name="bib-organization_attributes"/>
      <ref name="bib-organization_model"/>
    </element>
  </define>
  <define name="bib-organization_attributes">
    <a:documentation>Attributes for \elementref{bib-organization}.</a:documentation>
    <ref name="Common.attributes"/>
  </define>
  <define name="bib-organization_model">
    <a:documentation>Content model for \elementref{bib-organization}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bib-place">
    <element name="bib-place">
      <a:documentation>Location of publisher or event</a:documentation>
      <ref name="bib-place_attributes"/>
      <ref name="bib-place_model"/>
    </element>
  </define>
  <define name="bib-place_attributes">
    <a:documentation>Attributes for \elementref{bib-place}.</a:documentation>
    <ref name="Common.attributes"/>
  </define>
  <define name="bib-place_model">
    <a:documentation>Content model for \elementref{bib-place}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bib-related">
    <element name="bib-related">
      <a:documentation>A Related bibliographic object, such as the book or journal
that the current item is related to.</a:documentation>
      <ref name="bib-related_attributes"/>
      <ref name="bib-related_model"/>
    </element>
  </define>
  <define name="bib-related_attributes">
    <a:documentation>Attributes for \elementref{bib-related}.</a:documentation>
    <ref name="Common.attributes"/>
    <optional>
      <attribute name="type">
        <a:documentation>The type of this related entry.</a:documentation>
        <ref name="bibentry.type"/>
      </attribute>
    </optional>
    <optional>
      <attribute name="role">
        <a:documentation>How this object relates to the containing object.
Particularly important is \attrval{host} which indicates that
the outer object is a part of this object.</a:documentation>
        <choice>
          <value>host</value>
          <value>event</value>
          <value>original</value>
          <text/>
        </choice>
      </attribute>
    </optional>
    <optional>
      <attribute name="bibrefs">
        <a:documentation>If the bibrefs attribute is given, it is the key of another object in the bibliography,
and this element should be empty; otherwise the object should be described by
the content of the element.</a:documentation>
      </attribute>
    </optional>
  </define>
  <define name="bib-related_model">
    <a:documentation>Content model for \elementref{bib-related}.</a:documentation>
    <zeroOrMore>
      <ref name="Bibentry.class"/>
    </zeroOrMore>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bib-part">
    <element name="bib-part">
      <a:documentation>Describes how the current object is related to a related (\elementref{bib-related})
object, in particular page, part, volume numbers and similar.</a:documentation>
      <ref name="bib-part_attributes"/>
      <ref name="bib-part_model"/>
    </element>
  </define>
  <define name="bib-part_attributes">
    <a:documentation>Attributes for \elementref{bib-part}.</a:documentation>
    <ref name="Common.attributes"/>
    <optional>
      <attribute name="role">
        <a:documentation>indicates how the value partitions the containing object.</a:documentation>
        <choice>
          <value>pages</value>
          <value>part</value>
          <value>volume</value>
          <value>issue</value>
          <value>number</value>
          <value>chapter</value>
          <value>section</value>
          <value>paragraph</value>
          <text/>
        </choice>
      </attribute>
    </optional>
  </define>
  <define name="bib-part_model">
    <a:documentation>Content model for \elementref{bib-part}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!--
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    
  -->
  <define name="bib-edition">
    <element name="bib-edition">
      <a:documentation>Edition of a bibliographic entry.</a:documentation>
      <ref name="bib-edition_attributes"/>
      <ref name="bib-edition_model"/>
    </element>
  </define>
  <define name="bib-edition_attributes">
    <a:documentation>Attributes for \elementref{bib-edition}.</a:documentation>
    <ref name="Common.attributes"/>
  </define>
  <define name="bib-edition_model">
    <a:documentation>Content model for \elementref{bib-edition}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bib-status">
    <element name="bib-status">
      <a:documentation>Status of a bibliographic entry.</a:documentation>
      <ref name="bib-status_attributes"/>
      <ref name="bib-status_model"/>
    </element>
  </define>
  <define name="bib-status_attributes">
    <a:documentation>Attributes for \elementref{bib-status}.</a:documentation>
    <ref name="Common.attributes"/>
  </define>
  <define name="bib-status_model">
    <a:documentation>Content model for \elementref{bib-status}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bib-identifier">
    <element name="bib-identifier">
      <a:documentation>Some form of document identfier. The content is descriptive.</a:documentation>
      <ref name="bib-identifier_attributes"/>
      <ref name="bib-identifier_model"/>
    </element>
  </define>
  <define name="bib-identifier_attributes">
    <a:documentation>Attributes for \elementref{bib-identifier}.</a:documentation>
    <ref name="Common.attributes"/>
    <optional>
      <attribute name="scheme">
        <a:documentation>indicates what sort of identifier it is; it is open-ended for extensibility.</a:documentation>
        <choice>
          <value>doi</value>
          <value>issn</value>
          <value>isbn</value>
          <value>mr</value>
          <text/>
        </choice>
      </attribute>
    </optional>
    <optional>
      <attribute name="id">
        <a:documentation>the identifier.</a:documentation>
      </attribute>
    </optional>
    <optional>
      <attribute name="href">
        <a:documentation>a url to the document, if available</a:documentation>
      </attribute>
    </optional>
  </define>
  <define name="bib-identifier_model">
    <a:documentation>Content model for \elementref{bib-identifier}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bib-review">
    <element name="bib-review">
      <a:documentation>Review of a bibliographic entry. The content is descriptive.</a:documentation>
      <ref name="bib-review_attributes"/>
      <ref name="bib-review_model"/>
    </element>
  </define>
  <define name="bib-review_attributes">
    <a:documentation>Attributes for \elementref{bib-review}.</a:documentation>
    <ref name="Common.attributes"/>
    <optional>
      <attribute name="scheme">
        <a:documentation>indicates what sort of identifier it is; it is open-ended for extensibility.</a:documentation>
        <choice>
          <value>doi</value>
          <value>issn</value>
          <value>isbn</value>
          <value>mr</value>
          <text/>
        </choice>
      </attribute>
    </optional>
    <optional>
      <attribute name="id">
        <a:documentation>the identifier.</a:documentation>
      </attribute>
    </optional>
    <optional>
      <attribute name="href">
        <a:documentation>a url to the review, if available</a:documentation>
      </attribute>
    </optional>
  </define>
  <define name="bib-review_model">
    <a:documentation>Content model for \elementref{bib-review}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bib-links">
    <element name="bib-links">
      <a:documentation>Links to other things like preprints, source code, etc.</a:documentation>
      <ref name="bib-links_attributes"/>
      <ref name="bib-links_model"/>
    </element>
  </define>
  <define name="bib-links_attributes">
    <a:documentation>Attributes for \elementref{bib-links}.</a:documentation>
    <ref name="Common.attributes"/>
  </define>
  <define name="bib-links_model">
    <a:documentation>Content model for \elementref{bib-links}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bib-language">
    <element name="bib-language">
      <a:documentation>Language of a bibliographic entry.</a:documentation>
      <ref name="bib-language_attributes"/>
      <ref name="bib-language_model"/>
    </element>
  </define>
  <define name="bib-language_attributes">
    <a:documentation>Attributes for \elementref{bib-language}.</a:documentation>
    <ref name="Common.attributes"/>
  </define>
  <define name="bib-language_model">
    <a:documentation>Content model for \elementref{bib-language}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bib-url">
    <element name="bib-url">
      <a:documentation>A URL for a bibliographic entry. The content is descriptive</a:documentation>
      <ref name="bib-url_attributes"/>
      <ref name="bib-url_model"/>
    </element>
  </define>
  <define name="bib-url_attributes">
    <a:documentation>Attributes for \elementref{bib-url}.</a:documentation>
    <ref name="Common.attributes"/>
    <optional>
      <attribute name="href"/>
    </optional>
  </define>
  <define name="bib-url_model">
    <a:documentation>Content model for \elementref{bib-url}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bib-extract">
    <element name="bib-extract">
      <a:documentation>An extract from the referenced object.</a:documentation>
      <ref name="bib-extract_attributes"/>
      <ref name="bib-extract_model"/>
    </element>
  </define>
  <define name="bib-extract_attributes">
    <a:documentation>Attributes for \elementref{bib-extract}.</a:documentation>
    <ref name="Common.attributes"/>
    <optional>
      <attribute name="role">
        <a:documentation>Classify what kind of extract</a:documentation>
        <choice>
          <value>keywords</value>
          <value>abstract</value>
          <value>contents</value>
          <text/>
        </choice>
      </attribute>
    </optional>
  </define>
  <define name="bib-extract_model">
    <a:documentation>Content model for \elementref{bib-extract}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bib-note">
    <element name="bib-note">
      <a:documentation>Notes about a bibliographic entry.</a:documentation>
      <ref name="bib-note_attributes"/>
      <ref name="bib-note_model"/>
    </element>
  </define>
  <define name="bib-note_attributes">
    <a:documentation>Attributes for \elementref{bib-note}.</a:documentation>
    <ref name="Common.attributes"/>
    <optional>
      <attribute name="role">
        <a:documentation>Classify the kind of note</a:documentation>
        <choice>
          <value>annotation</value>
          <value>publication</value>
          <text/>
        </choice>
      </attribute>
    </optional>
  </define>
  <define name="bib-note_model">
    <a:documentation>Content model for \elementref{bib-note}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <define name="bib-data">
    <element name="bib-data">
      <a:documentation>Random data, not necessarily even text.
(future questions: should model be text or ANY? maybe should have encoding attribute?).</a:documentation>
      <ref name="bib-data_attributes"/>
      <ref name="bib-data_model"/>
    </element>
  </define>
  <define name="bib-data_attributes">
    <a:documentation>Attributes for \elementref{bib-data}.</a:documentation>
    <ref name="Common.attributes"/>
    <optional>
      <attribute name="role">
        <a:documentation>Classify the relationship of the data to the entry.</a:documentation>
      </attribute>
    </optional>
    <optional>
      <attribute name="type">
        <a:documentation>Classify the type of the data.</a:documentation>
      </attribute>
    </optional>
  </define>
  <define name="bib-data_model">
    <a:documentation>Content model for \elementref{bib-data}.</a:documentation>
    <ref name="Inline.model"/>
  </define>
  <!-- ====================================================================== -->
  <define name="Bibentry.class">
    <choice>
      <ref name="bib-name"/>
      <ref name="bib-title"/>
      <ref name="bib-subtitle"/>
      <ref name="bib-key"/>
      <ref name="bib-type"/>
      <ref name="bib-date"/>
      <ref name="bib-publisher"/>
      <ref name="bib-organization"/>
      <ref name="bib-place"/>
      <ref name="bib-part"/>
      <ref name="bib-related"/>
      <ref name="bib-edition"/>
      <ref name="bib-status"/>
      <ref name="bib-language"/>
      <ref name="bib-url"/>
      <ref name="bib-note"/>
      <ref name="bib-extract"/>
      <ref name="bib-identifier"/>
      <ref name="bib-review"/>
      <ref name="bib-links"/>
      <ref name="bib-data"/>
    </choice>
  </define>
</grammar>
<!-- ====================================================================== -->