-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocbook.rnc
10643 lines (9971 loc) · 285 KB
/
docbook.rnc
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
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
namespace ctrl = "http://nwalsh.com/xmlns/schema-control/"
default namespace db = "http://docbook.org/ns/docbook"
namespace html = "http://www.w3.org/1999/xhtml"
namespace mml = "http://www.w3.org/1998/Math/MathML"
namespace rng = "http://relaxng.org/ns/structure/1.0"
namespace s = "http://www.ascc.net/xml/schematron"
namespace svg = "http://www.w3.org/2000/svg"
namespace xlink = "http://www.w3.org/1999/xlink"
s:ns [
prefix = "a"
uri = "http://relaxng.org/ns/compatibility/annotations/1.0"
]
s:ns [ prefix = "ctrl" uri = "http://nwalsh.com/xmlns/schema-control/" ]
s:ns [ prefix = "db" uri = "http://docbook.org/ns/docbook" ]
s:ns [
prefix = "dbx"
uri =
"http://sourceforge.net/projects/docbook/defguide/schema/extra-markup"
]
s:ns [ prefix = "html" uri = "http://www.w3.org/1999/xhtml" ]
s:ns [ prefix = "mml" uri = "http://www.w3.org/1998/Math/MathML" ]
s:ns [ prefix = "rng" uri = "http://relaxng.org/ns/structure/1.0" ]
s:ns [ prefix = "s" uri = "http://www.ascc.net/xml/schematron" ]
s:ns [ prefix = "svg" uri = "http://www.w3.org/2000/svg" ]
s:ns [ prefix = "xlink" uri = "http://www.w3.org/1999/xlink" ]
# DocBook V5.0CR5
# See http://docbook.org/ns/docbook
# This file is part of DocBook V5.0
#
# Copyright 1992-2008 HaL Computer Systems, Inc.,
# O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
# Corporation, Norman Walsh, Sun Microsystems, Inc., and the
# Organization for the Advancement of Structured Information
# Standards (OASIS).
#
# Release: $Id: docbook.rnc 7661 2008-02-06 13:52:59Z nwalsh $
#
# Permission to use, copy, modify and distribute the DocBook schema
# and its accompanying documentation for any purpose and without fee
# is hereby granted in perpetuity, provided that the above copyright
# notice and this paragraph appear in all copies. The copyright
# holders make no representation about the suitability of the schema
# for any purpose. It is provided "as is" without expressed or implied
# warranty.
#
# If you modify the DocBook schema in any way, label your schema as a
# variant of DocBook. See the reference documentation
# (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
# for more information.
#
# Please direct all questions, bug reports, or suggestions for changes
# to the [email protected] mailing list. For more
# information, see http://www.oasis-open.org/docbook/.
#
# ======================================================================
start =
(db.set
| db.book
| db.divisions
| db.components
| db.navigation.components
| db.section
| db.para)
| (db.sect1 | db.sect2 | db.sect3 | db.sect4 | db.sect5)
| (db.refentry | db.refsection)
| (db.refsect1 | db.refsect2 | db.refsect3)
| db.setindex
div {
db._any.attribute =
## Any attribute including in any attribute in any namespace.
attribute * { text }
db._any =
## Any element from almost any namespace
element * - (db:* | html:*) {
(db._any.attribute | text | db._any)*
}
}
db.arch.attribute =
## Designates the computer or chip architecture to which the element applies
attribute arch { text }
db.audience.attribute =
## Designates the intended audience to which the element applies, for example, system administrators, programmers, or new users.
attribute audience { text }
db.condition.attribute =
## provides a standard place for application-specific effectivity
attribute condition { text }
db.conformance.attribute =
## Indicates standards conformance characteristics of the element
attribute conformance { text }
db.os.attribute =
## Indicates the operating system to which the element is applicable
attribute os { text }
db.revision.attribute =
## Indicates the editorial revision to which the element belongs
attribute revision { text }
db.security.attribute =
## Indicates something about the security level associated with the element to which it applies
attribute security { text }
db.userlevel.attribute =
## Indicates the level of user experience for which the element applies
attribute userlevel { text }
db.vendor.attribute =
## Indicates the computer vendor to which the element applies.
attribute vendor { text }
db.wordsize.attribute =
## Indicates the word size (width in bits) of the computer architecture to which the element applies
attribute wordsize { text }
db.effectivity.attributes =
db.arch.attribute?
& db.audience.attribute?
& db.condition.attribute?
& db.conformance.attribute?
& db.os.attribute?
& db.revision.attribute?
& db.security.attribute?
& db.userlevel.attribute?
& db.vendor.attribute?
& db.wordsize.attribute?
db.endterm.attribute =
## Points to the element whose content is to be used as the text of the link
attribute endterm { xsd:IDREF }
db.linkend.attribute =
## Points to an internal link target by identifying the value of its xml:id attribute
attribute linkend { xsd:IDREF }
db.linkends.attribute =
## Points to one or more internal link targets by identifying the value of their xml:id attributes
attribute linkends { xsd:IDREFS }
db.xlink.href.attribute =
## Identifies a link target with a URI
attribute xlink:href { xsd:anyURI }
db.xlink.type.attribute =
## Identifies the XLink link type
attribute xlink:type {
## An XLink simple link
"simple"
}
db.xlink.role.attribute =
## Identifies the XLink role of the link
attribute xlink:role { xsd:anyURI }
db.xlink.arcrole.attribute =
## Identifies the XLink arcrole of the link
attribute xlink:arcrole { xsd:anyURI }
db.xlink.title.attribute =
## Identifies the XLink title of the link
attribute xlink:title { text }?
db.xlink.show.enumeration =
## An application traversing to the ending resource should load it in a new window, frame, pane, or other relevant presentation context.
"new"
|
## An application traversing to the ending resource should load the resource in the same window, frame, pane, or other relevant presentation context in which the starting resource was loaded.
"replace"
|
## An application traversing to the ending resource should load its presentation in place of the presentation of the starting resource.
"embed"
|
## The behavior of an application traversing to the ending resource is unconstrained by XLink. The application should look for other markup present in the link to determine the appropriate behavior.
"other"
|
## The behavior of an application traversing to the ending resource is unconstrained by this specification. No other markup is present to help the application determine the appropriate behavior.
"none"
db.xlink.show.attribute =
## Identifies the XLink show behavior of the link
attribute xlink:show { db.xlink.show.enumeration }
db.xlink.actuate.enumeration =
## An application should traverse to the ending resource immediately on loading the starting resource.
"onLoad"
|
## An application should traverse from the starting resource to the ending resource only on a post-loading event triggered for the purpose of traversal.
"onRequest"
|
## The behavior of an application traversing to the ending resource is unconstrained by this specification. The application should look for other markup present in the link to determine the appropriate behavior.
"other"
|
## The behavior of an application traversing to the ending resource is unconstrained by this specification. No other markup is present to help the application determine the appropriate behavior.
"none"
db.xlink.actuate.attribute =
## Identifies the XLink actuate behavior of the link
attribute xlink:actuate { db.xlink.actuate.enumeration }
db.href.attributes =
db.xlink.href.attribute
& db.xlink.type.attribute?
& db.xlink.role.attribute?
& db.xlink.arcrole.attribute?
& db.xlink.title.attribute?
& db.xlink.show.attribute?
& db.xlink.actuate.attribute?
db.xml.id.attribute =
## Identifies the unique ID value of the element
attribute xml:id { xsd:ID }
db.version.attribute =
## Specifies the DocBook version of the element and its descendants
attribute version { text }
db.xml.lang.attribute =
## Specifies the natural language of the element and its descendants
attribute xml:lang { text }
db.xml.base.attribute =
## Specifies the base URI of the element and its descendants
attribute xml:base { xsd:anyURI }
db.remap.attribute =
## Provides the name or similar semantic identifier assigned to the content in some previous markup scheme
attribute remap { text }
db.xreflabel.attribute =
## Provides the text that is to be generated for a cross reference to the element
attribute xreflabel { text }
db.xrefstyle.attribute =
## Specifies a keyword or keywords identifying additional style information
attribute xrefstyle { text }
db.revisionflag.enumeration =
## The element has been changed.
"changed"
|
## The element is new (has been added to the document).
"added"
|
## The element has been deleted.
"deleted"
|
## Explicitly turns off revision markup for this element.
"off"
db.revisionflag.attribute =
## Identifies the revision status of the element
attribute revisionflag { db.revisionflag.enumeration }
db.dir.enumeration =
## Left-to-right text
"ltr"
|
## Right-to-left text
"rtl"
|
## Left-to-right override
"lro"
|
## Right-to-left override
"rlo"
db.dir.attribute =
## Identifies the direction of text in an element
attribute dir { db.dir.enumeration }
db.common.base.attributes =
db.version.attribute?
& db.xml.lang.attribute?
& db.xml.base.attribute?
& db.remap.attribute?
& db.xreflabel.attribute?
& db.revisionflag.attribute?
& db.dir.attribute?
& db.effectivity.attributes
db.common.attributes =
db.xml.id.attribute?
& db.common.base.attributes
& db.annotations.attribute?
db.common.idreq.attributes =
db.xml.id.attribute
& db.common.base.attributes
& db.annotations.attribute?
db.common.linking.attributes =
(db.linkend.attribute | db.href.attributes)?
db.common.req.linking.attributes =
db.linkend.attribute | db.href.attributes
db.common.data.attributes =
## Specifies the format of the data
attribute format { text }?,
(
## Indentifies the location of the data by URI
attribute fileref { xsd:anyURI }
|
## Identifies the location of the data by external identifier (entity name)
attribute entityref { xsd:ENTITY })
db.verbatim.continuation.enumeration =
## Line numbering continues from the immediately preceding element with the same name.
"continues"
|
## Line numbering restarts (begins at 1, usually).
"restarts"
db.verbatim.continuation.attribute =
## Determines whether line numbering continues from the previous element or restarts.
attribute continuation { db.verbatim.continuation.enumeration }
db.verbatim.linenumbering.enumeration =
## Lines are numbered.
"numbered"
|
## Lines are not numbered.
"unnumbered"
db.verbatim.linenumbering.attribute =
## Determines whether lines are numbered.
attribute linenumbering { db.verbatim.linenumbering.enumeration }
db.verbatim.startinglinenumber.attribute =
## Specifies the initial line number.
attribute startinglinenumber { xsd:integer }
db.verbatim.language.attribute =
## Identifies the language (i.e. programming language) of the verbatim content.
attribute language { text }
db.verbatim.xml.space.attribute =
## Can be used to indicate explicitly that whitespace in the verbatim environment is preserved. Whitespace must always be preserved in verbatim environments whether this attribute is specified or not.
attribute xml:space {
## Whitespace must be preserved.
"preserve"
}
db.verbatim.attributes =
db.verbatim.continuation.attribute?
& db.verbatim.linenumbering.attribute?
& db.verbatim.startinglinenumber.attribute?
& db.verbatim.language.attribute?
& db.verbatim.xml.space.attribute?
db.label.attribute =
## Specifies an identifying string for presentation purposes
attribute label { text }
db.width.characters.attribute =
## Specifies the width (in characters) of the element
attribute width { xsd:nonNegativeInteger }
db.spacing.enumeration =
## The spacing should be "compact".
"compact"
|
## The spacing should be "normal".
"normal"
db.spacing.attribute =
## Specifies (a hint about) the spacing of the content
attribute spacing { db.spacing.enumeration }
db.pgwide.enumeration =
## The element should be rendered in the current text flow (with the flow column width).
"0"
|
## The element should be rendered across the full text page.
"1"
db.pgwide.attribute =
## Indicates if the element is rendered across the column or the page
attribute pgwide { db.pgwide.enumeration }
db.language.attribute =
## Identifies the language (i.e. programming language) of the content.
attribute language { text }
db.performance.enumeration =
## The content describes an optional step or steps.
"optional"
|
## The content describes a required step or steps.
"required"
db.performance.attribute =
## Specifies if the content is required or optional.
attribute performance { db.performance.enumeration }
db.floatstyle.attribute =
## Specifies style information to be used when rendering the float
attribute floatstyle { text }
db.width.attribute =
## Specifies the width of the element
attribute width { text }
db.depth.attribute =
## Specifies the depth of the element
attribute depth { text }
db.contentwidth.attribute =
## Specifies the width of the content rectangle
attribute contentwidth { text }
db.contentdepth.attribute =
## Specifies the depth of the content rectangle
attribute contentdepth { text }
db.scalefit.enumeration =
## False (do not scale-to-fit; anamorphic scaling may occur)
"0"
|
## True (scale-to-fit; anamorphic scaling is forbidden)
"1"
db.scale.attribute =
## Specifies the scaling factor
attribute scale { xsd:positiveInteger }
db.halign.enumeration =
## Centered horizontally
"center"
|
## Aligned horizontally on the specified character
"char"
|
## Fully justified (left and right margins or edges)
"justify"
|
## Left aligned
"left"
|
## Right aligned
"right"
db.valign.enumeration =
## Aligned on the bottom of the region
"bottom"
|
## Centered vertically
"middle"
|
## Aligned on the top of the region
"top"
db.biblio.class.enumeration =
## A document object identifier.
"doi"
|
## An international standard book number.
"isbn"
|
## An international standard technical report number (ISO 10444).
"isrn"
|
## An international standard serial number.
"issn"
|
## A Library of Congress reference number.
"libraryofcongress"
|
## A publication number (an internal number or possibly organizational standard).
"pubsnumber"
|
## A Uniform Resource Identifier
"uri"
db.biblio.class-enum.attribute =
## Identifies the kind of bibliographic identifier
attribute class { db.biblio.class.enumeration }?
db.biblio.class-other.attribute =
## Identifies the nature of the non-standard bibliographic identifier
attribute otherclass { xsd:NMTOKEN }
db.biblio.class-other.attributes =
## Identifies the kind of bibliographic identifier
attribute class {
## Indicates that the identifier is some 'other' kind.
"other"
}
& db.biblio.class-other.attribute
db.biblio.class.attribute =
db.biblio.class-enum.attribute | db.biblio.class-other.attributes
db.ubiq.inlines =
(db.inlinemediaobject
| db.remark
| db.superscript
| db.subscript
| db.link.inlines
| db.alt)
| db.annotation
| db.indexterm
db._text = (text | db.ubiq.inlines | db._phrase | db.replaceable)*
db._title = db.title? & db.titleabbrev? & db.subtitle?
db._title.req = db.title & db.titleabbrev? & db.subtitle?
db._title.only = db.title? & db.titleabbrev?
db._title.onlyreq = db.title & db.titleabbrev?
db._info = (db._title, db.titleforbidden.info?) | db.info?
db._info.title.req =
(db._title.req, db.titleforbidden.info?) | db.titlereq.info
db._info.title.only =
(db._title.only, db.titleforbidden.info?) | db.titleonly.info
db._info.title.onlyreq =
(db._title.onlyreq, db.titleforbidden.info?) | db.titleonlyreq.info
db._info.title.forbidden = db.titleforbidden.info?
db.all.inlines =
text
| db.ubiq.inlines
| db.general.inlines
| db.domain.inlines
| db.extension.inlines
db.general.inlines =
db.publishing.inlines
| db.product.inlines
| db.bibliography.inlines
| db.graphic.inlines
| db.indexing.inlines
| db.link.inlines
db.domain.inlines =
db.technical.inlines
| db.math.inlines
| db.markup.inlines
| db.gui.inlines
| db.keyboard.inlines
| db.os.inlines
| db.programming.inlines
| db.error.inlines
db.technical.inlines =
(db.replaceable | db.package | db.parameter)
| db.termdef
| db.nonterminal
| (db.systemitem | db.option | db.optional | db.property)
db.product.inlines =
db.trademark
| (db.productnumber
| db.productname
| db.database
| db.application
| db.hardware)
db.bibliography.inlines =
db.citation
| db.citerefentry
| db.citetitle
| db.citebiblioid
| db.author
| db.person
| db.personname
| db.org
| db.orgname
| db.editor
| db.jobtitle
db.publishing.inlines =
(db.abbrev
| db.acronym
| db.date
| db.emphasis
| db.footnote
| db.footnoteref
| db.foreignphrase
| db.phrase
| db.quote
| db.subscript
| db.superscript
| db.wordasword)
| db.glossary.inlines
| db.coref
db.graphic.inlines = db.inlinemediaobject
db.indexing.inlines = notAllowed | db.indexterm
db.link.inlines =
(db.xref | db.link | db.olink | db.anchor) | db.biblioref
db.extension.inlines = notAllowed
db.nopara.blocks =
(db.list.blocks
| db.formal.blocks
| db.informal.blocks
| db.publishing.blocks
| db.graphic.blocks
| db.technical.blocks
| db.verbatim.blocks
| db.bridgehead
| db.remark
| db.revhistory)
| db.indexterm
| db.synopsis.blocks
| db.admonition.blocks
db.para.blocks = db.anchor | db.para | db.formalpara | db.simpara
db.all.blocks =
(db.nopara.blocks | db.para.blocks | db.extension.blocks)
| db.annotation
db.formal.blocks = (db.example | db.figure | db.table) | db.equation
db.informal.blocks =
(db.informalexample | db.informalfigure | db.informaltable)
| db.informalequation
db.publishing.blocks =
db.sidebar | db.blockquote | db.address | db.epigraph
db.graphic.blocks = db.mediaobject | db.screenshot
db.technical.blocks =
db.procedure
| db.task
| (db.productionset | db.constraintdef)
| db.msgset
db.list.blocks =
(db.itemizedlist
| db.orderedlist
| db.procedure
| db.simplelist
| db.variablelist
| db.segmentedlist)
| db.glosslist
| db.bibliolist
| db.calloutlist
| db.qandaset
db.verbatim.blocks =
(db.screen | db.literallayout)
| (db.programlistingco | db.screenco)
| (db.programlisting | db.synopsis)
db.extension.blocks = notAllowed
db.info.extension = db._any
db.info.elements =
(db.abstract
| db.address
| db.artpagenums
| db.author
| db.authorgroup
| db.authorinitials
| db.bibliocoverage
| db.biblioid
| db.bibliosource
| db.collab
| db.confgroup
| db.contractsponsor
| db.contractnum
| db.copyright
| db.cover
| db.date
| db.edition
| db.editor
| db.issuenum
| db.keywordset
| db.legalnotice
| db.mediaobject
| db.org
| db.orgname
| db.othercredit
| db.pagenums
| db.printhistory
| db.pubdate
| db.publisher
| db.publishername
| db.releaseinfo
| db.revhistory
| db.seriesvolnums
| db.subjectset
| db.volumenum
| db.info.extension)
| db.annotation
| db.extendedlink
| (db.bibliomisc | db.bibliomset | db.bibliorelation | db.biblioset)
| db.itermset
| (db.productname | db.productnumber)
db.bibliographic.elements =
db.info.elements
| db.publishing.inlines
| db.citerefentry
| db.citetitle
| db.citebiblioid
| db.person
| db.personblurb
| db.personname
| db.subtitle
| db.title
| db.titleabbrev
div {
db.title.role.attribute = attribute role { text }
db.title.attlist =
db.title.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.title =
## The text of the title of a section of a document or of a formal block-level element
element title { db.title.attlist, db.all.inlines* }
}
div {
db.titleabbrev.role.attribute = attribute role { text }
db.titleabbrev.attlist =
db.titleabbrev.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.titleabbrev =
## The abbreviation of a title
element titleabbrev { db.titleabbrev.attlist, db.all.inlines* }
}
div {
db.subtitle.role.attribute = attribute role { text }
db.subtitle.attlist =
db.subtitle.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.subtitle =
## The subtitle of a document
element subtitle { db.subtitle.attlist, db.all.inlines* }
}
div {
db.info.role.attribute = attribute role { text }
db.info.attlist = db.info.role.attribute? & db.common.attributes
db.info =
## A wrapper for information about a component or other block
element info { db.info.attlist, (db._title & db.info.elements*) }
}
div {
db.titlereq.info.role.attribute = attribute role { text }
db.titlereq.info.attlist =
db.titlereq.info.role.attribute? & db.common.attributes
db.titlereq.info =
## A wrapper for information about a component or other block with a required title
element info {
db.titlereq.info.attlist, (db._title.req & db.info.elements*)
}
}
div {
db.titleonly.info.role.attribute = attribute role { text }
db.titleonly.info.attlist =
db.titleonly.info.role.attribute? & db.common.attributes
db.titleonly.info =
## A wrapper for information about a component or other block with only a title
element info {
db.titleonly.info.attlist, (db._title.only & db.info.elements*)
}
}
div {
db.titleonlyreq.info.role.attribute = attribute role { text }
db.titleonlyreq.info.attlist =
db.titleonlyreq.info.role.attribute? & db.common.attributes
db.titleonlyreq.info =
## A wrapper for information about a component or other block with only a required title
element info {
db.titleonlyreq.info.attlist,
(db._title.onlyreq & db.info.elements*)
}
}
div {
db.titleforbidden.info.role.attribute = attribute role { text }
db.titleforbidden.info.attlist =
db.titleforbidden.info.role.attribute? & db.common.attributes
db.titleforbidden.info =
## A wrapper for information about a component or other block without a title
element info { db.titleforbidden.info.attlist, db.info.elements* }
}
div {
db.subjectset.role.attribute = attribute role { text }
db.subjectset.scheme.attribute =
## Identifies the controlled vocabulary used by this set's terms
attribute scheme { xsd:NMTOKEN }
db.subjectset.attlist =
db.subjectset.role.attribute?
& db.common.attributes
& db.common.linking.attributes
& db.subjectset.scheme.attribute?
db.subjectset =
## A set of terms describing the subject matter of a document
element subjectset { db.subjectset.attlist, db.subject+ }
}
div {
db.subject.role.attribute = attribute role { text }
db.subject.weight.attribute =
## Specifies a ranking for this subject relative to other subjects in the same set
attribute weight { text }
db.subject.attlist =
db.subject.role.attribute?
& db.common.attributes
& db.common.linking.attributes
& db.subject.weight.attribute?
db.subject =
## One of a group of terms describing the subject matter of a document
element subject { db.subject.attlist, db.subjectterm+ }
}
div {
db.subjectterm.role.attribute = attribute role { text }
db.subjectterm.attlist =
db.subjectterm.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.subjectterm =
## A term in a group of terms describing the subject matter of a document
element subjectterm { db.subjectterm.attlist, text }
}
div {
db.keywordset.role.attribute = attribute role { text }
db.keywordset.attlist =
db.keywordset.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.keywordset =
## A set of keywords describing the content of a document
element keywordset { db.keywordset.attlist, db.keyword+ }
}
div {
db.keyword.role.attribute = attribute role { text }
db.keyword.attlist =
db.keyword.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.keyword =
## One of a set of keywords describing the content of a document
element keyword { db.keyword.attlist, text }
}
db.table.choice = notAllowed | db.cals.table | db.html.table
db.informaltable.choice =
notAllowed | db.cals.informaltable | db.html.informaltable
db.table = db.table.choice
db.informaltable = db.informaltable.choice
div {
db.procedure.role.attribute = attribute role { text }
db.procedure.attlist =
db.procedure.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.procedure.info = db._info.title.only
db.procedure =
## A list of operations to be performed in a well-defined sequence
element procedure {
db.procedure.attlist, db.procedure.info, db.all.blocks*, db.step+
}
}
div {
db.step.role.attribute = attribute role { text }
db.step.attlist =
db.step.role.attribute?
& db.common.attributes
& db.common.linking.attributes
& db.performance.attribute?
db.step.info = db._info.title.only
#
# This content model is blocks*, step|stepalternatives, blocks* but
# expressed this way it avoids UPA issues in XSD and DTD versions
db.step =
## A unit of action in a procedure
element step {
db.step.attlist,
db.step.info,
((db.all.blocks+,
((db.substeps | db.stepalternatives), db.all.blocks*)?)
| ((db.substeps | db.stepalternatives), db.all.blocks*))
}
}
div {
db.stepalternatives.role.attribute = attribute role { text }
db.stepalternatives.attlist =
db.stepalternatives.role.attribute?
& db.common.attributes
& db.common.linking.attributes
& db.performance.attribute?
db.stepalternatives.info = db._info.title.forbidden
db.stepalternatives =
## Alternative steps in a procedure
element stepalternatives {
db.stepalternatives.attlist, db.stepalternatives.info, db.step+
}
}
div {
db.substeps.role.attribute = attribute role { text }
db.substeps.attlist =
db.substeps.role.attribute?
& db.common.attributes
& db.common.linking.attributes
& db.performance.attribute?
db.substeps =
## A wrapper for steps that occur within steps in a procedure
element substeps { db.substeps.attlist, db.step+ }
}
div {
db.sidebar.role.attribute = attribute role { text }
db.sidebar.attlist =
db.sidebar.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.sidebar.info = db._info.title.only
db.sidebar =
## A portion of a document that is isolated from the main narrative flow
[
s:pattern [
name = "Element exclusion"
"\x{a}" ~
" "
s:rule [
context = "db:sidebar"
"\x{a}" ~
" "
s:assert [
test = "not(.//db:sidebar)"
"sidebar must not occur in the descendants of sidebar"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
]
element sidebar {
db.sidebar.attlist, db.sidebar.info, db.all.blocks+
}
}
div {
db.abstract.role.attribute = attribute role { text }
db.abstract.attlist =
db.abstract.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.abstract.info = db._info.title.only
db.abstract =
## A summary
element abstract {
db.abstract.attlist, db.abstract.info, db.para.blocks+
}
}
div {
db.personblurb.role.attribute = attribute role { text }
db.personblurb.attlist =
db.personblurb.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.personblurb.info = db._info.title.only
db.personblurb =
## A short description or note about a person
element personblurb {
db.personblurb.attlist, db.personblurb.info, db.para.blocks+
}
}
div {
db.blockquote.role.attribute = attribute role { text }
db.blockquote.attlist =
db.blockquote.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.blockquote.info = db._info.title.only
db.blockquote =
## A quotation set off from the main text
element blockquote {
db.blockquote.attlist,
db.blockquote.info,
db.attribution?,
db.all.blocks+
}
}
div {
db.attribution.role.attribute = attribute role { text }
db.attribution.attlist =
db.attribution.role.attribute?
& db.common.attributes
& db.common.linking.attributes
db.attribution =
## The source of a block quote or epigraph
element attribution {
db.attribution.attlist,
(db._text
| db.person
| db.personname
| db.citetitle
| db.citation)*
}
}
div {
db.bridgehead.renderas.enumeration =