Debian Codegraph @

docbook-xsl-ns/assembly/schema/docbook51b7.rnc

raw
1 namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
2 namespace ctrl = "http://nwalsh.com/xmlns/schema-control/"
3 default namespace db = "http://docbook.org/ns/docbook"
4 namespace html = "http://www.w3.org/1999/xhtml"
5 namespace mml = "http://www.w3.org/1998/Math/MathML"
6 namespace rng = "http://relaxng.org/ns/structure/1.0"
7 namespace s = "http://purl.oclc.org/dsdl/schematron"
8 namespace svg = "http://www.w3.org/2000/svg"
9 namespace xlink = "http://www.w3.org/1999/xlink"
10
11 # This file is part of DocBook V5.1b7
12 #
13 # Copyright 1992-2011 HaL Computer Systems, Inc.,
14 # O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
15 # Corporation, Norman Walsh, Sun Microsystems, Inc., and the
16 # Organization for the Advancement of Structured Information
17 # Standards (OASIS).
18 #
19 # Permission to use, copy, modify and distribute the DocBook schema
20 # and its accompanying documentation for any purpose and without fee
21 # is hereby granted in perpetuity, provided that the above copyright
22 # notice and this paragraph appear in all copies. The copyright
23 # holders make no representation about the suitability of the schema
24 # for any purpose. It is provided "as is" without expressed or implied
25 # warranty.
26 #
27 # If you modify the DocBook schema in any way, label your schema as a
28 # variant of DocBook. See the reference documentation
29 # (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
30 # for more information.
31 #
32 # Please direct all questions, bug reports, or suggestions for changes
33 # to the [email protected] mailing list. For more
34 # information, see http://www.oasis-open.org/docbook/.
35 #
36 # ======================================================================
37 start =
38 (db.set
39 | db.book
40 | db.divisions
41 | db.components
42 | db.navigation.components
43 | db.section
44 | db.para)
45 | (db.abstract
46 | db.mediaobject.content
47 | db.audiodata
48 | db.imagedata
49 | db.textdata
50 | db.videodata
51 | db.caption
52 | db.publishing.blocks
53 | db.formal.blocks
54 | db.informal.blocks
55 | db.formalpara
56 | db.inlinemediaobject
57 | db.list.blocks
58 | db.legalnotice
59 | db.verbatim.blocks
60 | db.graphic.blocks
61 | db.personblurb
62 | db.revhistory
63 | db.simpara
64 | db.step
65 | db.stepalternatives)
66 | (db.partintro | db.simplesect)
67 | db.annotation
68 | (db.sect1 | db.sect2 | db.sect3 | db.sect4 | db.sect5)
69 | (db.refentry | db.refsection | db.refsynopsisdiv)
70 | (db.refsect1 | db.refsect2 | db.refsect3)
71 | (db.glossary | db.glossdiv | db.glosslist)
72 | (db.bibliodiv | db.bibliolist)
73 | (db.setindex | db.index | db.indexdiv)
74 | (db.toc | db.tocdiv)
75 | (db.task | db.taskprerequisites | db.taskrelated | db.tasksummary)
76 | (db.calloutlist
77 | db.programlistingco
78 | db.screenco
79 | db.imageobjectco)
80 | (db.productionset | db.constraintdef)
81 | (db.msg
82 | db.msgexplan
83 | db.msgmain
84 | db.msgrel
85 | db.msgset
86 | db.msgsub)
87 | (db.qandadiv | db.qandaentry | db.qandaset)
88 | (db.equation | db.informalequation)
89 | db.cmdsynopsis
90 | (db.synopsis.blocks | db.funcsynopsisinfo | db.classsynopsisinfo)
91 | db.admonition.blocks
92 | db.topic
93 div {
94 db._any.attribute =
95
96 ## Any attribute, including any attribute in any namespace.
97 attribute * { text }
98 db._any =
99
100 ## Any element from almost any namespace
101 element * - (db:* | html:*) {
102 (db._any.attribute | text | db._any)*
103 }
104 }
105 db.arch.attribute =
106
107 ## Designates the computer or chip architecture to which the element applies
108 attribute arch { text }
109 db.audience.attribute =
110
111 ## Designates the intended audience to which the element applies, for example, system administrators, programmers, or new users.
112 attribute audience { text }
113 db.condition.attribute =
114
115 ## provides a standard place for application-specific effectivity
116 attribute condition { text }
117 db.conformance.attribute =
118
119 ## Indicates standards conformance characteristics of the element
120 attribute conformance { text }
121 db.os.attribute =
122
123 ## Indicates the operating system to which the element is applicable
124 attribute os { text }
125 db.revision.attribute =
126
127 ## Indicates the editorial revision to which the element belongs
128 attribute revision { text }
129 db.security.attribute =
130
131 ## Indicates something about the security level associated with the element to which it applies
132 attribute security { text }
133 db.userlevel.attribute =
134
135 ## Indicates the level of user experience for which the element applies
136 attribute userlevel { text }
137 db.vendor.attribute =
138
139 ## Indicates the computer vendor to which the element applies.
140 attribute vendor { text }
141 db.wordsize.attribute =
142
143 ## Indicates the word size (width in bits) of the computer architecture to which the element applies
144 attribute wordsize { text }
145 db.effectivity.attributes =
146 db.arch.attribute?
147 & db.audience.attribute?
148 & db.condition.attribute?
149 & db.conformance.attribute?
150 & db.os.attribute?
151 & db.revision.attribute?
152 & db.security.attribute?
153 & db.userlevel.attribute?
154 & db.vendor.attribute?
155 & db.wordsize.attribute?
156 db.endterm.attribute =
157
158 ## Points to the element whose content is to be used as the text of the link
159 attribute endterm { xsd:IDREF }
160 db.linkend.attribute =
161
162 ## Points to an internal link target by identifying the value of its xml:id attribute
163 attribute linkend { xsd:IDREF }
164 db.linkends.attribute =
165
166 ## Points to one or more internal link targets by identifying the value of their xml:id attributes
167 attribute linkends { xsd:IDREFS }
168 db.xlink.href.attribute =
169
170 ## Identifies a link target with a URI
171 attribute xlink:href { xsd:anyURI }
172 db.xlink.simple.type.attribute =
173
174 ## Identifies the XLink link type
175 attribute xlink:type {
176
177 ## An XLink simple link type
178 "simple"
179 }
180 db.xlink.role.attribute =
181
182 ## Identifies the XLink role of the link
183 attribute xlink:role { xsd:anyURI }
184 db.xlink.arcrole.attribute =
185
186 ## Identifies the XLink arcrole of the link
187 attribute xlink:arcrole { xsd:anyURI }
188 db.xlink.title.attribute =
189
190 ## Identifies the XLink title of the link
191 attribute xlink:title { text }
192 db.xlink.show.enumeration =
193
194 ## An application traversing to the ending resource should load it in a new window, frame, pane, or other relevant presentation context.
195 "new"
196 |
197 ## 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.
198 "replace"
199 |
200 ## An application traversing to the ending resource should load its presentation in place of the presentation of the starting resource.
201 "embed"
202 |
203 ## 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.
204 "other"
205 |
206 ## 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.
207 "none"
208 db.xlink.show.attribute =
209
210 ## Identifies the XLink show behavior of the link
211 attribute xlink:show { db.xlink.show.enumeration }
212 db.xlink.actuate.enumeration =
213
214 ## An application should traverse to the ending resource immediately on loading the starting resource.
215 "onLoad"
216 |
217 ## An application should traverse from the starting resource to the ending resource only on a post-loading event triggered for the purpose of traversal.
218 "onRequest"
219 |
220 ## 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.
221 "other"
222 |
223 ## 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.
224 "none"
225 db.xlink.actuate.attribute =
226
227 ## Identifies the XLink actuate behavior of the link
228 attribute xlink:actuate { db.xlink.actuate.enumeration }
229 db.xlink.simple.link.attributes =
230 db.xlink.simple.type.attribute?
231 & db.xlink.href.attribute?
232 & db.xlink.role.attribute?
233 & db.xlink.arcrole.attribute?
234 & db.xlink.title.attribute?
235 & db.xlink.show.attribute?
236 & db.xlink.actuate.attribute?
237 db.xlink.attributes =
238 db.xlink.simple.link.attributes
239 | (db.xlink.extended.link.attributes
240 | db.xlink.locator.link.attributes
241 | db.xlink.arc.link.attributes
242 | db.xlink.resource.link.attributes
243 | db.xlink.title.link.attributes)
244 db.xml.id.attribute =
245
246 ## Identifies the unique ID value of the element
247 attribute xml:id { xsd:ID }
248 db.version.attribute =
249
250 ## Specifies the DocBook version of the element and its descendants
251 attribute version { text }
252 db.xml.lang.attribute =
253
254 ## Specifies the natural language of the element and its descendants
255 attribute xml:lang { text }
256 db.xml.base.attribute =
257
258 ## Specifies the base URI of the element and its descendants
259 attribute xml:base { xsd:anyURI }
260 db.remap.attribute =
261
262 ## Provides the name or similar semantic identifier assigned to the content in some previous markup scheme
263 attribute remap { text }
264 db.xreflabel.attribute =
265
266 ## Provides the text that is to be generated for a cross reference to the element
267 attribute xreflabel { text }
268 db.xrefstyle.attribute =
269
270 ## Specifies a keyword or keywords identifying additional style information
271 attribute xrefstyle { text }
272 db.revisionflag.enumeration =
273
274 ## The element has been changed.
275 "changed"
276 |
277 ## The element is new (has been added to the document).
278 "added"
279 |
280 ## The element has been deleted.
281 "deleted"
282 |
283 ## Explicitly turns off revision markup for this element.
284 "off"
285 db.revisionflag.attribute =
286
287 ## Identifies the revision status of the element
288 attribute revisionflag { db.revisionflag.enumeration }
289 db.dir.enumeration =
290
291 ## Left-to-right text
292 "ltr"
293 |
294 ## Right-to-left text
295 "rtl"
296 |
297 ## Left-to-right override
298 "lro"
299 |
300 ## Right-to-left override
301 "rlo"
302 db.dir.attribute =
303
304 ## Identifies the direction of text in an element
305 attribute dir { db.dir.enumeration }
306 db.common.base.attributes =
307 db.version.attribute?
308 & db.xml.lang.attribute?
309 & db.xml.base.attribute?
310 & db.remap.attribute?
311 & db.xreflabel.attribute?
312 & db.revisionflag.attribute?
313 & db.dir.attribute?
314 & db.effectivity.attributes
315 db.common.attributes =
316 db.xml.id.attribute?
317 & db.common.base.attributes
318 & db.annotations.attribute?
319 db.common.idreq.attributes =
320 db.xml.id.attribute
321 & db.common.base.attributes
322 & db.annotations.attribute?
323 db.common.linking.attributes =
324 (db.linkend.attribute | db.xlink.attributes)?
325 db.common.req.linking.attributes =
326 db.linkend.attribute | db.xlink.attributes
327 db.common.data.attributes =
328
329 ## Specifies the format of the data
330 attribute format { text }?,
331 (
332 ## Indentifies the location of the data by URI
333 attribute fileref { xsd:anyURI }
334 |
335 ## Identifies the location of the data by external identifier (entity name)
336 attribute entityref { xsd:ENTITY })
337 db.verbatim.continuation.enumeration =
338
339 ## Line numbering continues from the immediately preceding element with the same name.
340 "continues"
341 |
342 ## Line numbering restarts (begins at 1, usually).
343 "restarts"
344 db.verbatim.continuation.attribute =
345
346 ## Determines whether line numbering continues from the previous element or restarts.
347 attribute continuation { db.verbatim.continuation.enumeration }
348 db.verbatim.linenumbering.enumeration =
349
350 ## Lines are numbered.
351 "numbered"
352 |
353 ## Lines are not numbered.
354 "unnumbered"
355 db.verbatim.linenumbering.attribute =
356
357 ## Determines whether lines are numbered.
358 attribute linenumbering { db.verbatim.linenumbering.enumeration }
359 db.verbatim.startinglinenumber.attribute =
360
361 ## Specifies the initial line number.
362 attribute startinglinenumber { xsd:integer }
363 db.verbatim.language.attribute =
364
365 ## Identifies the language (i.e. programming language) of the verbatim content.
366 attribute language { text }
367 db.verbatim.xml.space.attribute =
368
369 ## 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.
370 attribute xml:space {
371
372 ## Whitespace must be preserved.
373 "preserve"
374 }
375 db.verbatim.common.attributes =
376 db.verbatim.continuation.attribute?
377 & db.verbatim.linenumbering.attribute?
378 & db.verbatim.startinglinenumber.attribute?
379 & db.verbatim.xml.space.attribute?
380 db.verbatim.attributes =
381 db.verbatim.common.attributes & db.verbatim.language.attribute?
382 db.label.attribute =
383
384 ## Specifies an identifying string for presentation purposes
385 attribute label { text }
386 db.width.characters.attribute =
387
388 ## Specifies the width (in characters) of the element
389 attribute width { xsd:nonNegativeInteger }
390 db.spacing.enumeration =
391
392 ## The spacing should be "compact".
393 "compact"
394 |
395 ## The spacing should be "normal".
396 "normal"
397 db.spacing.attribute =
398
399 ## Specifies (a hint about) the spacing of the content
400 attribute spacing { db.spacing.enumeration }
401 db.pgwide.enumeration =
402
403 ## The element should be rendered in the current text flow (with the flow column width).
404 "0"
405 |
406 ## The element should be rendered across the full text page.
407 "1"
408 db.pgwide.attribute =
409
410 ## Indicates if the element is rendered across the column or the page
411 attribute pgwide { db.pgwide.enumeration }
412 db.language.attribute =
413
414 ## Identifies the language (i.e. programming language) of the content.
415 attribute language { text }
416 db.performance.enumeration =
417
418 ## The content describes an optional step or steps.
419 "optional"
420 |
421 ## The content describes a required step or steps.
422 "required"
423 db.performance.attribute =
424
425 ## Specifies if the content is required or optional.
426 attribute performance { db.performance.enumeration }
427 db.floatstyle.attribute =
428
429 ## Specifies style information to be used when rendering the float
430 attribute floatstyle { text }
431 db.width.attribute =
432
433 ## Specifies the width of the element
434 attribute width { text }
435 db.depth.attribute =
436
437 ## Specifies the depth of the element
438 attribute depth { text }
439 db.contentwidth.attribute =
440
441 ## Specifies the width of the content rectangle
442 attribute contentwidth { text }
443 db.contentdepth.attribute =
444
445 ## Specifies the depth of the content rectangle
446 attribute contentdepth { text }
447 db.scalefit.enumeration =
448
449 ## False (do not scale-to-fit; anamorphic scaling may occur)
450 "0"
451 |
452 ## True (scale-to-fit; anamorphic scaling is forbidden)
453 "1"
454 db.scale.attribute =
455
456 ## Specifies the scaling factor
457 attribute scale { xsd:positiveInteger }
458 db.classid.attribute =
459
460 ## Specifies a classid for a media object player
461 attribute classid { text }
462 db.autoplay.attribute =
463
464 ## Specifies the autoplay setting for a media object player
465 attribute autoplay { text }
466 db.halign.enumeration =
467
468 ## Centered horizontally
469 "center"
470 |
471 ## Aligned horizontally on the specified character
472 "char"
473 |
474 ## Fully justified (left and right margins or edges)
475 "justify"
476 |
477 ## Left aligned
478 "left"
479 |
480 ## Right aligned
481 "right"
482 db.valign.enumeration =
483
484 ## Aligned on the bottom of the region
485 "bottom"
486 |
487 ## Centered vertically
488 "middle"
489 |
490 ## Aligned on the top of the region
491 "top"
492 db.biblio.class.enumeration =
493
494 ## A digital object identifier.
495 "doi"
496 |
497 ## An international standard book number.
498 "isbn"
499 |
500 ## An international standard technical report number (ISO 10444).
501 "isrn"
502 |
503 ## An international standard serial number.
504 "issn"
505 |
506 ## An international standard text code.
507 "istc"
508 |
509 ## A Library of Congress reference number.
510 "libraryofcongress"
511 |
512 ## A publication number (an internal number or possibly organizational standard).
513 "pubsnumber"
514 |
515 ## A Uniform Resource Identifier
516 "uri"
517 db.biblio.class-enum.attribute =
518
519 ## Identifies the kind of bibliographic identifier
520 attribute class { db.biblio.class.enumeration }?
521 db.biblio.class-other.attribute =
522
523 ## Identifies the nature of the non-standard bibliographic identifier
524 attribute otherclass { xsd:NMTOKEN }
525 db.biblio.class-other.attributes =
526
527 ## Identifies the kind of bibliographic identifier
528 attribute class {
529
530 ## Indicates that the identifier is some 'other' kind.
531 "other"
532 }
533 & db.biblio.class-other.attribute
534 db.biblio.class.attribute =
535 db.biblio.class-enum.attribute | db.biblio.class-other.attributes
536 db.ubiq.inlines =
537 (db.inlinemediaobject
538 | db.remark
539 | db.link.inlines
540 | db.alt
541 | db.trademark
542 | # below, effectively the publishing inlines (as of 5.0)
543 db.abbrev
544 | db.acronym
545 | db.date
546 | db._emphasis
547 | db.footnote
548 | db.footnoteref
549 | db._foreignphrase
550 | db._phrase
551 | db._quote
552 | db.subscript
553 | db.superscript
554 | db.wordasword)
555 | db.annotation
556 | (db._firstterm | db._glossterm)
557 | db.indexterm
558 | db.coref
559 db._text = (text | db.ubiq.inlines | db._phrase | db.replaceable)*
560 db._title = db.title? & db.titleabbrev? & db.subtitle?
561 db._title.req = db.title & db.titleabbrev? & db.subtitle?
562 db._title.only = db.title? & db.titleabbrev?
563 db._title.onlyreq = db.title & db.titleabbrev?
564 db._info = (db._title, db.titleforbidden.info?) | db.info?
565 db._info.title.req =
566 (db._title.req, db.titleforbidden.info?) | db.titlereq.info
567 db._info.title.only =
568 (db._title.only, db.titleforbidden.info?) | db.titleonly.info
569 db._info.title.onlyreq =
570 (db._title.onlyreq, db.titleforbidden.info?) | db.titleonlyreq.info
571 db._info.title.forbidden = db.titleforbidden.info?
572 db.all.inlines =
573 text
574 | db.ubiq.inlines
575 | db.general.inlines
576 | db.domain.inlines
577 | db.extension.inlines
578 db.general.inlines =
579 db.publishing.inlines
580 | db.product.inlines
581 | db.bibliography.inlines
582 | db.graphic.inlines
583 | db.indexing.inlines
584 | db.link.inlines
585 db.domain.inlines =
586 db.technical.inlines
587 | db.math.inlines
588 | db.markup.inlines
589 | db.gui.inlines
590 | db.keyboard.inlines
591 | db.os.inlines
592 | db.programming.inlines
593 | db.error.inlines
594 db.technical.inlines =
595 (db.replaceable | db.package | db.parameter)
596 | db.termdef
597 | db.nonterminal
598 | (db.systemitem | db.option | db.optional | db.property)
599 db.product.inlines =
600 db.trademark
601 | (db.productnumber
602 | db.productname
603 | db.database
604 | db.application
605 | db.hardware)
606 db.bibliography.inlines =
607 db.citation
608 | db.citerefentry
609 | db.citetitle
610 | db.citebiblioid
611 | db.author
612 | db.person
613 | db.personname
614 | db.org
615 | db.orgname
616 | db.editor
617 | db.jobtitle
618 db.publishing.inlines =
619 (db.abbrev
620 | db.acronym
621 | db.date
622 | db.emphasis
623 | db.footnote
624 | db.footnoteref
625 | db.foreignphrase
626 | db.phrase
627 | db.quote
628 | db.subscript
629 | db.superscript
630 | db.wordasword)
631 | db.glossary.inlines
632 | db.coref
633 db.graphic.inlines = db.inlinemediaobject
634 db.indexing.inlines = notAllowed | db.indexterm
635 db.link.inlines =
636 (db.xref | db.link | db.olink | db.anchor) | db.biblioref
637 db.extension.inlines = notAllowed
638 db.nopara.blocks =
639 (db.list.blocks
640 | db.formal.blocks
641 | db.informal.blocks
642 | db.publishing.blocks
643 | db.graphic.blocks
644 | db.technical.blocks
645 | db.verbatim.blocks
646 | db.bridgehead
647 | db.remark
648 | db.revhistory)
649 | db.indexterm
650 | db.synopsis.blocks
651 | db.admonition.blocks
652 db.para.blocks = db.anchor | db.para | db.formalpara | db.simpara
653 db.all.blocks =
654 (db.nopara.blocks | db.para.blocks | db.extension.blocks)
655 | db.annotation
656 db.formal.blocks = (db.example | db.figure | db.table) | db.equation
657 db.informal.blocks =
658 (db.informalexample | db.informalfigure | db.informaltable)
659 | db.informalequation
660 db.publishing.blocks =
661 db.sidebar | db.blockquote | db.address | db.epigraph
662 db.graphic.blocks = db.mediaobject | db.screenshot
663 db.technical.blocks =
664 db.procedure
665 | db.task
666 | (db.productionset | db.constraintdef)
667 | db.msgset
668 db.list.blocks =
669 (db.itemizedlist
670 | db.orderedlist
671 | db.procedure
672 | db.simplelist
673 | db.variablelist
674 | db.segmentedlist)
675 | db.glosslist
676 | db.bibliolist
677 | db.calloutlist
678 | db.qandaset
679 db.verbatim.blocks =
680 (db.screen | db.literallayout)
681 | (db.programlistingco | db.screenco)
682 | (db.programlisting | db.synopsis)
683 db.extension.blocks = notAllowed
684 db.info.extension = db._any
685 db.info.elements =
686 (db.abstract
687 | db.address
688 | db.artpagenums
689 | db.author
690 | db.authorgroup
691 | db.authorinitials
692 | db.bibliocoverage
693 | db.biblioid
694 | db.bibliosource
695 | db.collab
696 | db.confgroup
697 | db.contractsponsor
698 | db.contractnum
699 | db.copyright
700 | db.cover
701 | db.date
702 | db.edition
703 | db.editor
704 | db.issuenum
705 | db.keywordset
706 | db.legalnotice
707 | db.mediaobject
708 | db.org
709 | db.orgname
710 | db.othercredit
711 | db.pagenums
712 | db.printhistory
713 | db.pubdate
714 | db.publisher
715 | db.publishername
716 | db.releaseinfo
717 | db.revhistory
718 | db.seriesvolnums
719 | db.subjectset
720 | db.volumenum
721 | db.info.extension)
722 | db.annotation
723 | db.extendedlink
724 | (db.bibliomisc | db.bibliomset | db.bibliorelation | db.biblioset)
725 | db.itermset
726 | (db.productname | db.productnumber)
727 db.bibliographic.elements =
728 db.info.elements
729 | db.publishing.inlines
730 | db.citerefentry
731 | db.citetitle
732 | db.citebiblioid
733 | db.person
734 | db.personblurb
735 | db.personname
736 | db.subtitle
737 | db.title
738 | db.titleabbrev
739 div {
740 db.title.role.attribute = attribute role { text }
741 db.title.attlist =
742 db.title.role.attribute?
743 & db.common.attributes
744 & db.common.linking.attributes
745 db.title =
746
747 ## The text of the title of a section of a document or of a formal block-level element
748 element title { db.title.attlist, db.all.inlines* }
749 }
750 div {
751 db.titleabbrev.role.attribute = attribute role { text }
752 db.titleabbrev.attlist =
753 db.titleabbrev.role.attribute?
754 & db.common.attributes
755 & db.common.linking.attributes
756 db.titleabbrev =
757
758 ## The abbreviation of a title
759 element titleabbrev { db.titleabbrev.attlist, db.all.inlines* }
760 }
761 div {
762 db.subtitle.role.attribute = attribute role { text }
763 db.subtitle.attlist =
764 db.subtitle.role.attribute?
765 & db.common.attributes
766 & db.common.linking.attributes
767 db.subtitle =
768
769 ## The subtitle of a document
770 element subtitle { db.subtitle.attlist, db.all.inlines* }
771 }
772 div {
773 db.info.role.attribute = attribute role { text }
774 db.info.attlist = db.info.role.attribute? & db.common.attributes
775 db.info =
776
777 ## A wrapper for information about a component or other block
778 element info { db.info.attlist, (db._title & db.info.elements*) }
779 }
780 div {
781 db.titlereq.info.role.attribute = attribute role { text }
782 db.titlereq.info.attlist =
783 db.titlereq.info.role.attribute? & db.common.attributes
784 db.titlereq.info =
785
786 ## A wrapper for information about a component or other block with a required title
787 element info {
788 db.titlereq.info.attlist, (db._title.req & db.info.elements*)
789 }
790 }
791 div {
792 db.titleonly.info.role.attribute = attribute role { text }
793 db.titleonly.info.attlist =
794 db.titleonly.info.role.attribute? & db.common.attributes
795 db.titleonly.info =
796
797 ## A wrapper for information about a component or other block with only a title
798 element info {
799 db.titleonly.info.attlist, (db._title.only & db.info.elements*)
800 }
801 }
802 div {
803 db.titleonlyreq.info.role.attribute = attribute role { text }
804 db.titleonlyreq.info.attlist =
805 db.titleonlyreq.info.role.attribute? & db.common.attributes
806 db.titleonlyreq.info =
807
808 ## A wrapper for information about a component or other block with only a required title
809 element info {
810 db.titleonlyreq.info.attlist,
811 (db._title.onlyreq & db.info.elements*)
812 }
813 }
814 div {
815 db.titleforbidden.info.role.attribute = attribute role { text }
816 db.titleforbidden.info.attlist =
817 db.titleforbidden.info.role.attribute? & db.common.attributes
818 db.titleforbidden.info =
819
820 ## A wrapper for information about a component or other block without a title
821 element info { db.titleforbidden.info.attlist, db.info.elements* }
822 }
823 div {
824 db.subjectset.role.attribute = attribute role { text }
825 db.subjectset.scheme.attribute =
826
827 ## Identifies the controlled vocabulary used by this set's terms
828 attribute scheme { xsd:NMTOKEN }
829 db.subjectset.attlist =
830 db.subjectset.role.attribute?
831 & db.common.attributes
832 & db.common.linking.attributes
833 & db.subjectset.scheme.attribute?
834 db.subjectset =
835
836 ## A set of terms describing the subject matter of a document
837 element subjectset { db.subjectset.attlist, db.subject+ }
838 }
839 div {
840 db.subject.role.attribute = attribute role { text }
841 db.subject.weight.attribute =
842
843 ## Specifies a ranking for this subject relative to other subjects in the same set
844 attribute weight { text }
845 db.subject.attlist =
846 db.subject.role.attribute?
847 & db.common.attributes
848 & db.common.linking.attributes
849 & db.subject.weight.attribute?
850 db.subject =
851
852 ## One of a group of terms describing the subject matter of a document
853 element subject { db.subject.attlist, db.subjectterm+ }
854 }
855 div {
856 db.subjectterm.role.attribute = attribute role { text }
857 db.subjectterm.attlist =
858 db.subjectterm.role.attribute?
859 & db.common.attributes
860 & db.common.linking.attributes
861 db.subjectterm =
862
863 ## A term in a group of terms describing the subject matter of a document
864 element subjectterm { db.subjectterm.attlist, text }
865 }
866 div {
867 db.keywordset.role.attribute = attribute role { text }
868 db.keywordset.attlist =
869 db.keywordset.role.attribute?
870 & db.common.attributes
871 & db.common.linking.attributes
872 db.keywordset =
873
874 ## A set of keywords describing the content of a document
875 element keywordset { db.keywordset.attlist, db.keyword+ }
876 }
877 div {
878 db.keyword.role.attribute = attribute role { text }
879 db.keyword.attlist =
880 db.keyword.role.attribute?
881 & db.common.attributes
882 & db.common.linking.attributes
883 db.keyword =
884
885 ## One of a set of keywords describing the content of a document
886 element keyword { db.keyword.attlist, text }
887 }
888 db.table.choice = notAllowed | db.cals.table | db.html.table
889 db.informaltable.choice =
890 notAllowed | db.cals.informaltable | db.html.informaltable
891 db.table = db.table.choice
892 db.informaltable = db.informaltable.choice
893 div {
894 db.procedure.role.attribute = attribute role { text }
895 db.procedure.attlist =
896 db.procedure.role.attribute?
897 & db.common.attributes
898 & db.common.linking.attributes
899 db.procedure.info = db._info.title.only
900 db.procedure =
901
902 ## A list of operations to be performed in a well-defined sequence
903 [
904 s:pattern [
905 name = "Root must have version"
906 "\x{a}" ~
907 " "
908 s:rule [
909 context = "/db:procedure"
910 "\x{a}" ~
911 " "
912 s:assert [
913 test = "@version"
914 "If this element is the root element, it must have a version attribute."
915 ]
916 "\x{a}" ~
917 " "
918 ]
919 "\x{a}" ~
920 " "
921 ]
922 ]
923 element procedure {
924 db.procedure.attlist, db.procedure.info, db.all.blocks*, db.step+
925 }
926 }
927 div {
928 db.step.role.attribute = attribute role { text }
929 db.step.attlist =
930 db.step.role.attribute?
931 & db.common.attributes
932 & db.common.linking.attributes
933 & db.performance.attribute?
934 db.step.info = db._info.title.only
935 # This content model is blocks*, step|stepalternatives, blocks* but
936 # expressed this way it avoids UPA issues in XSD and DTD versions
937 db.step =
938
939 ## A unit of action in a procedure
940 [
941 s:pattern [
942 name = "Root must have version"
943 "\x{a}" ~
944 " "
945 s:rule [
946 context = "/db:step"
947 "\x{a}" ~
948 " "
949 s:assert [
950 test = "@version"
951 "If this element is the root element, it must have a version attribute."
952 ]
953 "\x{a}" ~
954 " "
955 ]
956 "\x{a}" ~
957 " "
958 ]
959 ]
960 element step {
961 db.step.attlist,
962 db.step.info,
963 ((db.all.blocks+,
964 ((db.substeps | db.stepalternatives), db.all.blocks*)?)
965 | ((db.substeps | db.stepalternatives), db.all.blocks*))
966 }
967 }
968 div {
969 db.stepalternatives.role.attribute = attribute role { text }
970 db.stepalternatives.attlist =
971 db.stepalternatives.role.attribute?
972 & db.common.attributes
973 & db.common.linking.attributes
974 & db.performance.attribute?
975 db.stepalternatives.info = db._info.title.forbidden
976 db.stepalternatives =
977
978 ## Alternative steps in a procedure
979 [
980 s:pattern [
981 name = "Root must have version"
982 "\x{a}" ~
983 " "
984 s:rule [
985 context = "/db:stepalternatives"
986 "\x{a}" ~
987 " "
988 s:assert [
989 test = "@version"
990 "If this element is the root element, it must have a version attribute."
991 ]
992 "\x{a}" ~
993 " "
994 ]
995 "\x{a}" ~
996 " "
997 ]
998 ]
999 element stepalternatives {
1000 db.stepalternatives.attlist, db.stepalternatives.info, db.step+
1001 }
1002 }
1003 div {
1004 db.substeps.role.attribute = attribute role { text }
1005 db.substeps.attlist =
1006 db.substeps.role.attribute?
1007 & db.common.attributes
1008 & db.common.linking.attributes
1009 & db.performance.attribute?
1010 db.substeps =
1011
1012 ## A wrapper for steps that occur within steps in a procedure
1013 element substeps { db.substeps.attlist, db.step+ }
1014 }
1015 div {
1016 db.sidebar.floatstyle.attribute = db.floatstyle.attribute
1017 db.sidebar.role.attribute = attribute role { text }
1018 db.sidebar.attlist =
1019 db.sidebar.role.attribute?
1020 & db.sidebar.floatstyle.attribute?
1021 & db.common.attributes
1022 & db.common.linking.attributes
1023 db.sidebar.info = db._info
1024 db.sidebar =
1025
1026 ## A portion of a document that is isolated from the main narrative flow
1027 [
1028 s:pattern [
1029 name = "Element exclusion"
1030 "\x{a}" ~
1031 " "
1032 s:rule [
1033 context = "db:sidebar"
1034 "\x{a}" ~
1035 " "
1036 s:assert [
1037 test = "not(.//db:sidebar)"
1038 "sidebar must not occur among the children or descendants of sidebar"
1039 ]
1040 "\x{a}" ~
1041 " "
1042 ]
1043 "\x{a}" ~
1044 " "
1045 ]
1046 s:pattern [
1047 name = "Root must have version"
1048 "\x{a}" ~
1049 " "
1050 s:rule [
1051 context = "/db:sidebar"
1052 "\x{a}" ~
1053 " "
1054 s:assert [
1055 test = "@version"
1056 "If this element is the root element, it must have a version attribute."
1057 ]
1058 "\x{a}" ~
1059 " "
1060 ]
1061 "\x{a}" ~
1062 " "
1063 ]
1064 ]
1065 element sidebar {
1066 db.sidebar.attlist, db.sidebar.info, db.all.blocks+
1067 }
1068 }
1069 div {
1070 db.abstract.role.attribute = attribute role { text }
1071 db.abstract.attlist =
1072 db.abstract.role.attribute?
1073 & db.common.attributes
1074 & db.common.linking.attributes
1075 db.abstract.info = db._info.title.only
1076 db.abstract =
1077
1078 ## A summary
1079 [
1080 s:pattern [
1081 name = "Root must have version"
1082 "\x{a}" ~
1083 " "
1084 s:rule [
1085 context = "/db:abstract"
1086 "\x{a}" ~
1087 " "
1088 s:assert [
1089 test = "@version"
1090 "If this element is the root element, it must have a version attribute."
1091 ]
1092 "\x{a}" ~
1093 " "
1094 ]
1095 "\x{a}" ~
1096 " "
1097 ]
1098 ]
1099 element abstract {
1100 db.abstract.attlist, db.abstract.info, db.para.blocks+
1101 }
1102 }
1103 div {
1104 db.personblurb.role.attribute = attribute role { text }
1105 db.personblurb.attlist =
1106 db.personblurb.role.attribute?
1107 & db.common.attributes
1108 & db.common.linking.attributes
1109 db.personblurb.info = db._info.title.only
1110 db.personblurb =
1111
1112 ## A short description or note about a person
1113 [
1114 s:pattern [
1115 name = "Root must have version"
1116 "\x{a}" ~
1117 " "
1118 s:rule [
1119 context = "/db:personblurb"
1120 "\x{a}" ~
1121 " "
1122 s:assert [
1123 test = "@version"
1124 "If this element is the root element, it must have a version attribute."
1125 ]
1126 "\x{a}" ~
1127 " "
1128 ]
1129 "\x{a}" ~
1130 " "
1131 ]
1132 ]
1133 element personblurb {
1134 db.personblurb.attlist, db.personblurb.info, db.para.blocks+
1135 }
1136 }
1137 div {
1138 db.blockquote.role.attribute = attribute role { text }
1139 db.blockquote.attlist =
1140 db.blockquote.role.attribute?
1141 & db.common.attributes
1142 & db.common.linking.attributes
1143 db.blockquote.info = db._info.title.only
1144 db.blockquote =
1145
1146 ## A quotation set off from the main text
1147 [
1148 s:pattern [
1149 name = "Root must have version"
1150 "\x{a}" ~
1151 " "
1152 s:rule [
1153 context = "/db:blockquote"
1154 "\x{a}" ~
1155 " "
1156 s:assert [
1157 test = "@version"
1158 "If this element is the root element, it must have a version attribute."
1159 ]
1160 "\x{a}" ~
1161 " "
1162 ]
1163 "\x{a}" ~
1164 " "
1165 ]
1166 ]
1167 element blockquote {
1168 db.blockquote.attlist,
1169 db.blockquote.info,
1170 db.attribution?,
1171 db.all.blocks+
1172 }
1173 }
1174 div {
1175 db.attribution.role.attribute = attribute role { text }
1176 db.attribution.attlist =
1177 db.attribution.role.attribute?
1178 & db.common.attributes
1179 & db.common.linking.attributes
1180 db.attribution =
1181
1182 ## The source of a block quote or epigraph
1183 element attribution {
1184 db.attribution.attlist,
1185 (db._text
1186 | db.person
1187 | db.personname
1188 | db.citetitle
1189 | db.citation)*
1190 }
1191 }
1192 div {
1193 db.bridgehead.renderas.enumeration =
1194
1195 ## Render as a first-level section
1196 "sect1"
1197 |
1198 ## Render as a second-level section
1199 "sect2"
1200 |
1201 ## Render as a third-level section
1202 "sect3"
1203 |
1204 ## Render as a fourth-level section
1205 "sect4"
1206 |
1207 ## Render as a fifth-level section
1208 "sect5"
1209 db.bridgehead.renderas-enum.attribute =
1210
1211 ## Indicates how the bridge head should be rendered
1212 attribute renderas { db.bridgehead.renderas.enumeration }?
1213 db.bridgehead.renderas-other.attribute =
1214
1215 ## Identifies the nature of the non-standard rendering
1216 attribute otherrenderas { xsd:NMTOKEN }
1217 db.bridgehead.renderas-other.attributes =
1218
1219 ## Indicates how the bridge head should be rendered
1220 attribute renderas {
1221
1222 ## Identifies a non-standard rendering
1223 "other"
1224 }
1225 & db.bridgehead.renderas-other.attribute
1226 db.bridgehead.renderas.attribute =
1227 db.bridgehead.renderas-enum.attribute
1228 | db.bridgehead.renderas-other.attributes
1229 db.bridgehead.role.attribute = attribute role { text }
1230 db.bridgehead.attlist =
1231 db.bridgehead.role.attribute?
1232 & db.common.attributes
1233 & db.common.linking.attributes
1234 & db.bridgehead.renderas.attribute?
1235 db.bridgehead =
1236
1237 ## A free-floating heading
1238 element bridgehead { db.bridgehead.attlist, db.all.inlines* }
1239 }
1240 div {
1241 db.remark.role.attribute = attribute role { text }
1242 db.remark.attlist =
1243 db.remark.role.attribute?
1244 & db.common.attributes
1245 & db.common.linking.attributes
1246 db.remark =
1247
1248 ## A remark (or comment) intended for presentation in a draft manuscript
1249 element remark { db.remark.attlist, db.all.inlines* }
1250 }
1251 div {
1252 db.epigraph.role.attribute = attribute role { text }
1253 db.epigraph.attlist =
1254 db.epigraph.role.attribute?
1255 & db.common.attributes
1256 & db.common.linking.attributes
1257 db.epigraph.info = db._info.title.forbidden
1258 db.epigraph =
1259
1260 ## A short inscription at the beginning of a document or component
1261 [
1262 s:pattern [
1263 name = "Root must have version"
1264 "\x{a}" ~
1265 " "
1266 s:rule [
1267 context = "/db:epigraph"
1268 "\x{a}" ~
1269 " "
1270 s:assert [
1271 test = "@version"
1272 "If this element is the root element, it must have a version attribute."
1273 ]
1274 "\x{a}" ~
1275 " "
1276 ]
1277 "\x{a}" ~
1278 " "
1279 ]
1280 ]
1281 element epigraph {
1282 db.epigraph.attlist,
1283 db.epigraph.info,
1284 db.attribution?,
1285 (db.para.blocks | db.literallayout)+
1286 }
1287 }
1288 div {
1289 db.footnote.role.attribute = attribute role { text }
1290 db.footnote.label.attribute =
1291
1292 ## Identifies the desired footnote mark
1293 attribute label { xsd:NMTOKEN }
1294 db.footnote.attlist =
1295 db.footnote.role.attribute?
1296 & db.common.attributes
1297 & db.common.linking.attributes
1298 & db.footnote.label.attribute?
1299 db.footnote =
1300
1301 ## A footnote
1302 [
1303 s:pattern [
1304 name = "Element exclusion"
1305 "\x{a}" ~
1306 " "
1307 s:rule [
1308 context = "db:footnote"
1309 "\x{a}" ~
1310 " "
1311 s:assert [
1312 test = "not(.//db:footnote)"
1313 "footnote must not occur among the children or descendants of footnote"
1314 ]
1315 "\x{a}" ~
1316 " "
1317 ]
1318 "\x{a}" ~
1319 " "
1320 ]
1321 s:pattern [
1322 name = "Element exclusion"
1323 "\x{a}" ~
1324 " "
1325 s:rule [
1326 context = "db:footnote"
1327 "\x{a}" ~
1328 " "
1329 s:assert [
1330 test = "not(.//db:example)"
1331 "example must not occur among the children or descendants of footnote"
1332 ]
1333 "\x{a}" ~
1334 " "
1335 ]
1336 "\x{a}" ~
1337 " "
1338 ]
1339 s:pattern [
1340 name = "Element exclusion"
1341 "\x{a}" ~
1342 " "
1343 s:rule [
1344 context = "db:footnote"
1345 "\x{a}" ~
1346 " "
1347 s:assert [
1348 test = "not(.//db:figure)"
1349 "figure must not occur among the children or descendants of footnote"
1350 ]
1351 "\x{a}" ~
1352 " "
1353 ]
1354 "\x{a}" ~
1355 " "
1356 ]
1357 s:pattern [
1358 name = "Element exclusion"
1359 "\x{a}" ~
1360 " "
1361 s:rule [
1362 context = "db:footnote"
1363 "\x{a}" ~
1364 " "
1365 s:assert [
1366 test = "not(.//db:table)"
1367 "table must not occur among the children or descendants of footnote"
1368 ]
1369 "\x{a}" ~
1370 " "
1371 ]
1372 "\x{a}" ~
1373 " "
1374 ]
1375 s:pattern [
1376 name = "Element exclusion"
1377 "\x{a}" ~
1378 " "
1379 s:rule [
1380 context = "db:footnote"
1381 "\x{a}" ~
1382 " "
1383 s:assert [
1384 test = "not(.//db:equation)"
1385 "equation must not occur among the children or descendants of footnote"
1386 ]
1387 "\x{a}" ~
1388 " "
1389 ]
1390 "\x{a}" ~
1391 " "
1392 ]
1393 s:pattern [
1394 name = "Element exclusion"
1395 "\x{a}" ~
1396 " "
1397 s:rule [
1398 context = "db:footnote"
1399 "\x{a}" ~
1400 " "
1401 s:assert [
1402 test = "not(.//db:sidebar)"
1403 "sidebar must not occur among the children or descendants of footnote"
1404 ]
1405 "\x{a}" ~
1406 " "
1407 ]
1408 "\x{a}" ~
1409 " "
1410 ]
1411 s:pattern [
1412 name = "Element exclusion"
1413 "\x{a}" ~
1414 " "
1415 s:rule [
1416 context = "db:footnote"
1417 "\x{a}" ~
1418 " "
1419 s:assert [
1420 test = "not(.//db:task)"
1421 "task must not occur among the children or descendants of footnote"
1422 ]
1423 "\x{a}" ~
1424 " "
1425 ]
1426 "\x{a}" ~
1427 " "
1428 ]
1429 s:pattern [
1430 name = "Element exclusion"
1431 "\x{a}" ~
1432 " "
1433 s:rule [
1434 context = "db:footnote"
1435 "\x{a}" ~
1436 " "
1437 s:assert [
1438 test = "not(.//db:epigraph)"
1439 "epigraph must not occur among the children or descendants of footnote"
1440 ]
1441 "\x{a}" ~
1442 " "
1443 ]
1444 "\x{a}" ~
1445 " "
1446 ]
1447 s:pattern [
1448 name = "Element exclusion"
1449 "\x{a}" ~
1450 " "
1451 s:rule [
1452 context = "db:footnote"
1453 "\x{a}" ~
1454 " "
1455 s:assert [
1456 test = "not(.//db:caution)"
1457 "caution must not occur among the children or descendants of footnote"
1458 ]
1459 "\x{a}" ~
1460 " "
1461 ]
1462 "\x{a}" ~
1463 " "
1464 ]
1465 s:pattern [
1466 name = "Element exclusion"
1467 "\x{a}" ~
1468 " "
1469 s:rule [
1470 context = "db:footnote"
1471 "\x{a}" ~
1472 " "
1473 s:assert [
1474 test = "not(.//db:important)"
1475 "important must not occur among the children or descendants of footnote"
1476 ]
1477 "\x{a}" ~
1478 " "
1479 ]
1480 "\x{a}" ~
1481 " "
1482 ]
1483 s:pattern [
1484 name = "Element exclusion"
1485 "\x{a}" ~
1486 " "
1487 s:rule [
1488 context = "db:footnote"
1489 "\x{a}" ~
1490 " "
1491 s:assert [
1492 test = "not(.//db:note)"
1493 "note must not occur among the children or descendants of footnote"
1494 ]
1495 "\x{a}" ~
1496 " "
1497 ]
1498 "\x{a}" ~
1499 " "
1500 ]
1501 s:pattern [
1502 name = "Element exclusion"
1503 "\x{a}" ~
1504 " "
1505 s:rule [
1506 context = "db:footnote"
1507 "\x{a}" ~
1508 " "
1509 s:assert [
1510 test = "not(.//db:tip)"
1511 "tip must not occur among the children or descendants of footnote"
1512 ]
1513 "\x{a}" ~
1514 " "
1515 ]
1516 "\x{a}" ~
1517 " "
1518 ]
1519 s:pattern [
1520 name = "Element exclusion"
1521 "\x{a}" ~
1522 " "
1523 s:rule [
1524 context = "db:footnote"
1525 "\x{a}" ~
1526 " "
1527 s:assert [
1528 test = "not(.//db:warning)"
1529 "warning must not occur among the children or descendants of footnote"
1530 ]
1531 "\x{a}" ~
1532 " "
1533 ]
1534 "\x{a}" ~
1535 " "
1536 ]
1537 ]
1538 element footnote { db.footnote.attlist, db.all.blocks+ }
1539 }
1540 div {
1541 db.formalpara.role.attribute = attribute role { text }
1542 db.formalpara.attlist =
1543 db.formalpara.role.attribute?
1544 & db.common.attributes
1545 & db.common.linking.attributes
1546 db.formalpara.info = db._info.title.onlyreq
1547 db.formalpara =
1548
1549 ## A paragraph with a title
1550 [
1551 s:pattern [
1552 name = "Root must have version"
1553 "\x{a}" ~
1554 " "
1555 s:rule [
1556 context = "/db:formalpara"
1557 "\x{a}" ~
1558 " "
1559 s:assert [
1560 test = "@version"
1561 "If this element is the root element, it must have a version attribute."
1562 ]
1563 "\x{a}" ~
1564 " "
1565 ]
1566 "\x{a}" ~
1567 " "
1568 ]
1569 ]
1570 element formalpara {
1571 db.formalpara.attlist,
1572 db.formalpara.info,
1573 db.indexing.inlines*,
1574 db.para
1575 }
1576 }
1577 div {
1578 db.para.role.attribute = attribute role { text }
1579 db.para.attlist =
1580 db.para.role.attribute?
1581 & db.common.attributes
1582 & db.common.linking.attributes
1583 db.para.info = db._info.title.forbidden
1584 db.para =
1585
1586 ## A paragraph
1587 [
1588 s:pattern [
1589 name = "Root must have version"
1590 "\x{a}" ~
1591 " "
1592 s:rule [
1593 context = "/db:para"
1594 "\x{a}" ~
1595 " "
1596 s:assert [
1597 test = "@version"
1598 "If this element is the root element, it must have a version attribute."
1599 ]
1600 "\x{a}" ~
1601 " "
1602 ]
1603 "\x{a}" ~
1604 " "
1605 ]
1606 ]
1607 element para {
1608 db.para.attlist,
1609 db.para.info,
1610 (db.all.inlines | db.nopara.blocks)*
1611 }
1612 }
1613 div {
1614 db.simpara.role.attribute = attribute role { text }
1615 db.simpara.attlist =
1616 db.simpara.role.attribute?
1617 & db.common.attributes
1618 & db.common.linking.attributes
1619 db.simpara.info = db._info.title.forbidden
1620 db.simpara =
1621
1622 ## A paragraph that contains only text and inline markup, no block elements
1623 [
1624 s:pattern [
1625 name = "Root must have version"
1626 "\x{a}" ~
1627 " "
1628 s:rule [
1629 context = "/db:simpara"
1630 "\x{a}" ~
1631 " "
1632 s:assert [
1633 test = "@version"
1634 "If this element is the root element, it must have a version attribute."
1635 ]
1636 "\x{a}" ~
1637 " "
1638 ]
1639 "\x{a}" ~
1640 " "
1641 ]
1642 ]
1643 element simpara {
1644 db.simpara.attlist, db.simpara.info, db.all.inlines*
1645 }
1646 }
1647 div {
1648 db.itemizedlist.role.attribute = attribute role { text }
1649 db.itemizedlist.mark.attribute =
1650
1651 ## Identifies the type of mark to be used on items in this list
1652 attribute mark { xsd:NMTOKEN }
1653 db.itemizedlist.attlist =
1654 db.itemizedlist.role.attribute?
1655 & db.common.attributes
1656 & db.common.linking.attributes
1657 & db.spacing.attribute?
1658 & db.itemizedlist.mark.attribute?
1659 db.itemizedlist.info = db._info.title.only
1660 db.itemizedlist =
1661
1662 ## A list in which each entry is marked with a bullet or other dingbat
1663 [
1664 s:pattern [
1665 name = "Root must have version"
1666 "\x{a}" ~
1667 " "
1668 s:rule [
1669 context = "/db:itemizedlist"
1670 "\x{a}" ~
1671 " "
1672 s:assert [
1673 test = "@version"
1674 "If this element is the root element, it must have a version attribute."
1675 ]
1676 "\x{a}" ~
1677 " "
1678 ]
1679 "\x{a}" ~
1680 " "
1681 ]
1682 ]
1683 element itemizedlist {
1684 db.itemizedlist.attlist,
1685 db.itemizedlist.info,
1686 db.all.blocks*,
1687 db.listitem+
1688 }
1689 }
1690 div {
1691 db.orderedlist.role.attribute = attribute role { text }
1692 db.orderedlist.continuation.enumeration =
1693
1694 ## Specifies that numbering should begin where the preceding list left off
1695 "continues"
1696 |
1697 ## Specifies that numbering should begin again at 1
1698 "restarts"
1699 db.orderedlist.continuation.attribute =
1700
1701 ## Indicates how list numbering should begin relative to the immediately preceding list
1702 attribute continuation { db.orderedlist.continuation.enumeration }
1703 db.orderedlist.startingnumber.attribute =
1704
1705 ## Specifies the initial line number.
1706 attribute startingnumber { xsd:integer }
1707 db.orderedlist.inheritnum.enumeration =
1708
1709 ## Specifies that numbering should ignore list nesting
1710 "ignore"
1711 |
1712 ## Specifies that numbering should inherit from outer-level lists
1713 "inherit"
1714 db.orderedlist.inheritnum.attribute =
1715
1716 ## Indicates whether or not item numbering should be influenced by list nesting
1717 attribute inheritnum { db.orderedlist.inheritnum.enumeration }
1718 db.orderedlist.numeration.enumeration =
1719
1720 ## Specifies Arabic numeration (1, 2, 3, …)
1721 "arabic"
1722 |
1723 ## Specifies upper-case alphabetic numeration (A, B, C, …)
1724 "upperalpha"
1725 |
1726 ## Specifies lower-case alphabetic numeration (a, b, c, …)
1727 "loweralpha"
1728 |
1729 ## Specifies upper-case Roman numeration (I, II, III, …)
1730 "upperroman"
1731 |
1732 ## Specifies lower-case Roman numeration (i, ii, iii …)
1733 "lowerroman"
1734 db.orderedlist.numeration.attribute =
1735
1736 ## Indicates the desired numeration
1737 attribute numeration { db.orderedlist.numeration.enumeration }
1738 db.orderedlist.attlist =
1739 db.orderedlist.role.attribute?
1740 & db.common.attributes
1741 & db.common.linking.attributes
1742 & db.spacing.attribute?
1743 & (db.orderedlist.continuation.attribute
1744 | db.orderedlist.startingnumber.attribute)?
1745 & db.orderedlist.inheritnum.attribute?
1746 & db.orderedlist.numeration.attribute?
1747 db.orderedlist.info = db._info.title.only
1748 db.orderedlist =
1749
1750 ## A list in which each entry is marked with a sequentially incremented label
1751 [
1752 s:pattern [
1753 name = "Root must have version"
1754 "\x{a}" ~
1755 " "
1756 s:rule [
1757 context = "/db:orderedlist"
1758 "\x{a}" ~
1759 " "
1760 s:assert [
1761 test = "@version"
1762 "If this element is the root element, it must have a version attribute."
1763 ]
1764 "\x{a}" ~
1765 " "
1766 ]
1767 "\x{a}" ~
1768 " "
1769 ]
1770 ]
1771 element orderedlist {
1772 db.orderedlist.attlist,
1773 db.orderedlist.info,
1774 db.all.blocks*,
1775 db.listitem+
1776 }
1777 }
1778 div {
1779 db.listitem.role.attribute = attribute role { text }
1780 db.listitem.override.attribute =
1781
1782 ## Specifies the keyword for the type of mark that should be used on this
1783 ## item, instead of the mark that would be used by default
1784 attribute override { xsd:NMTOKEN }
1785 db.listitem.attlist =
1786 db.listitem.role.attribute?
1787 & db.common.attributes
1788 & db.common.linking.attributes
1789 & db.listitem.override.attribute?
1790 db.listitem =
1791
1792 ## A wrapper for the elements of a list item
1793 element listitem { db.listitem.attlist, db.all.blocks+ }
1794 }
1795 div {
1796 db.segmentedlist.role.attribute = attribute role { text }
1797 db.segmentedlist.attlist =
1798 db.segmentedlist.role.attribute?
1799 & db.common.attributes
1800 & db.common.linking.attributes
1801 db.segmentedlist.info = db._info.title.only
1802 db.segmentedlist =
1803
1804 ## A segmented list, a list of sets of elements
1805 [
1806 s:pattern [
1807 name = "Root must have version"
1808 "\x{a}" ~
1809 " "
1810 s:rule [
1811 context = "/db:segmentedlist"
1812 "\x{a}" ~
1813 " "
1814 s:assert [
1815 test = "@version"
1816 "If this element is the root element, it must have a version attribute."
1817 ]
1818 "\x{a}" ~
1819 " "
1820 ]
1821 "\x{a}" ~
1822 " "
1823 ]
1824 ]
1825 element segmentedlist {
1826 db.segmentedlist.attlist,
1827 db.segmentedlist.info,
1828 db.segtitle+,
1829 db.seglistitem+
1830 }
1831 }
1832 div {
1833 db.segtitle.role.attribute = attribute role { text }
1834 db.segtitle.attlist =
1835 db.segtitle.role.attribute?
1836 & db.common.attributes
1837 & db.common.linking.attributes
1838 db.segtitle =
1839
1840 ## The title of an element of a list item in a segmented list
1841 element segtitle { db.segtitle.attlist, db.all.inlines* }
1842 }
1843 div {
1844 db.seglistitem.role.attribute = attribute role { text }
1845 db.seglistitem.attlist =
1846 db.seglistitem.role.attribute?
1847 & db.common.attributes
1848 & db.common.linking.attributes
1849 db.seglistitem =
1850
1851 ## A list item in a segmented list
1852 [
1853 s:pattern [
1854 name = "Cardinality of segments and titles"
1855 "\x{a}" ~
1856 " "
1857 s:rule [
1858 context = "db:seglistitem"
1859 "\x{a}" ~
1860 " "
1861 s:assert [
1862 test = "count(db:seg) = count(../db:segtitle)"
1863 "The number of seg elements must be the same as the number of segtitle elements in the parent segmentedlist"
1864 ]
1865 "\x{a}" ~
1866 " "
1867 ]
1868 "\x{a}" ~
1869 " "
1870 ]
1871 ]
1872 element seglistitem { db.seglistitem.attlist, db.seg+ }
1873 }
1874 div {
1875 db.seg.role.attribute = attribute role { text }
1876 db.seg.attlist =
1877 db.seg.role.attribute?
1878 & db.common.attributes
1879 & db.common.linking.attributes
1880 db.seg =
1881
1882 ## An element of a list item in a segmented list
1883 element seg { db.seg.attlist, db.all.inlines* }
1884 }
1885 div {
1886 db.simplelist.role.attribute = attribute role { text }
1887 db.simplelist.type.enumeration =
1888
1889 ## A tabular presentation in row-major order.
1890 "horiz"
1891 |
1892 ## A tabular presentation in column-major order.
1893 "vert"
1894 |
1895 ## An inline presentation, usually a comma-delimited list.
1896 "inline"
1897 db.simplelist.type.attribute =
1898
1899 ## Specifies the type of list presentation.
1900 [ a:defaultValue = "vert" ]
1901 attribute type { db.simplelist.type.enumeration }
1902 db.simplelist.columns.attribute =
1903
1904 ## Specifies the number of columns for horizontal or vertical presentation
1905 attribute columns { xsd:integer }
1906 db.simplelist.attlist =
1907 db.simplelist.role.attribute?
1908 & db.common.attributes
1909 & db.common.linking.attributes
1910 & db.simplelist.type.attribute?
1911 & db.simplelist.columns.attribute?
1912 db.simplelist =
1913
1914 ## An undecorated list of single words or short phrases
1915 [
1916 s:pattern [
1917 name = "Root must have version"
1918 "\x{a}" ~
1919 " "
1920 s:rule [
1921 context = "/db:simplelist"
1922 "\x{a}" ~
1923 " "
1924 s:assert [
1925 test = "@version"
1926 "If this element is the root element, it must have a version attribute."
1927 ]
1928 "\x{a}" ~
1929 " "
1930 ]
1931 "\x{a}" ~
1932 " "
1933 ]
1934 ]
1935 element simplelist { db.simplelist.attlist, db.member+ }
1936 }
1937 div {
1938 db.member.role.attribute = attribute role { text }
1939 db.member.attlist =
1940 db.member.role.attribute?
1941 & db.common.attributes
1942 & db.common.linking.attributes
1943 db.member =
1944
1945 ## An element of a simple list
1946 element member { db.member.attlist, db.all.inlines* }
1947 }
1948 div {
1949 db.variablelist.role.attribute = attribute role { text }
1950 db.variablelist.termlength.attribute =
1951
1952 ## Indicates a length beyond which the presentation system may consider a term too long and select an alternate presentation for that term, item, or list
1953 attribute termlength { text }
1954 db.variablelist.attlist =
1955 db.variablelist.role.attribute?
1956 & db.common.attributes
1957 & db.common.linking.attributes
1958 & db.spacing.attribute?
1959 & db.variablelist.termlength.attribute?
1960 db.variablelist.info = db._info.title.only
1961 db.variablelist =
1962
1963 ## A list in which each entry is composed of a set of one or more terms and an associated description
1964 [
1965 s:pattern [
1966 name = "Root must have version"
1967 "\x{a}" ~
1968 " "
1969 s:rule [
1970 context = "/db:variablelist"
1971 "\x{a}" ~
1972 " "
1973 s:assert [
1974 test = "@version"
1975 "If this element is the root element, it must have a version attribute."
1976 ]
1977 "\x{a}" ~
1978 " "
1979 ]
1980 "\x{a}" ~
1981 " "
1982 ]
1983 ]
1984 element variablelist {
1985 db.variablelist.attlist,
1986 db.variablelist.info,
1987 db.all.blocks*,
1988 db.varlistentry+
1989 }
1990 }
1991 div {
1992 db.varlistentry.role.attribute = attribute role { text }
1993 db.varlistentry.attlist =
1994 db.varlistentry.role.attribute?
1995 & db.common.attributes
1996 & db.common.linking.attributes
1997 db.varlistentry =
1998
1999 ## A wrapper for a set of terms and the associated description in a variable list
2000 element varlistentry {
2001 db.varlistentry.attlist, db.term+, db.listitem
2002 }
2003 }
2004 div {
2005 db.term.role.attribute = attribute role { text }
2006 db.term.attlist =
2007 db.term.role.attribute?
2008 & db.common.attributes
2009 & db.common.linking.attributes
2010 db.term =
2011
2012 ## The word or phrase being defined or described in a variable list
2013 element term { db.term.attlist, db.all.inlines* }
2014 }
2015 div {
2016 db.example.role.attribute = attribute role { text }
2017 db.example.label.attribute = db.label.attribute
2018 db.example.width.attribute = db.width.characters.attribute
2019 db.example.pgwide.attribute = db.pgwide.attribute
2020 db.example.floatstyle.attribute = db.floatstyle.attribute
2021 db.example.attlist =
2022 db.example.role.attribute?
2023 & db.common.attributes
2024 & db.common.linking.attributes
2025 & db.example.label.attribute?
2026 & db.example.floatstyle.attribute?
2027 & (db.example.width.attribute | db.example.pgwide.attribute)?
2028 db.example.info = db._info.title.onlyreq
2029 db.example =
2030
2031 ## A formal example, with a title
2032 [
2033 s:pattern [
2034 name = "Element exclusion"
2035 "\x{a}" ~
2036 " "
2037 s:rule [
2038 context = "db:example"
2039 "\x{a}" ~
2040 " "
2041 s:assert [
2042 test = "not(.//db:example)"
2043 "example must not occur among the children or descendants of example"
2044 ]
2045 "\x{a}" ~
2046 " "
2047 ]
2048 "\x{a}" ~
2049 " "
2050 ]
2051 s:pattern [
2052 name = "Element exclusion"
2053 "\x{a}" ~
2054 " "
2055 s:rule [
2056 context = "db:example"
2057 "\x{a}" ~
2058 " "
2059 s:assert [
2060 test = "not(.//db:figure)"
2061 "figure must not occur among the children or descendants of example"
2062 ]
2063 "\x{a}" ~
2064 " "
2065 ]
2066 "\x{a}" ~
2067 " "
2068 ]
2069 s:pattern [
2070 name = "Element exclusion"
2071 "\x{a}" ~
2072 " "
2073 s:rule [
2074 context = "db:example"
2075 "\x{a}" ~
2076 " "
2077 s:assert [
2078 test = "not(.//db:table)"
2079 "table must not occur among the children or descendants of example"
2080 ]
2081 "\x{a}" ~
2082 " "
2083 ]
2084 "\x{a}" ~
2085 " "
2086 ]
2087 s:pattern [
2088 name = "Element exclusion"
2089 "\x{a}" ~
2090 " "
2091 s:rule [
2092 context = "db:example"
2093 "\x{a}" ~
2094 " "
2095 s:assert [
2096 test = "not(.//db:equation)"
2097 "equation must not occur among the children or descendants of example"
2098 ]
2099 "\x{a}" ~
2100 " "
2101 ]
2102 "\x{a}" ~
2103 " "
2104 ]
2105 s:pattern [
2106 name = "Element exclusion"
2107 "\x{a}" ~
2108 " "
2109 s:rule [
2110 context = "db:example"
2111 "\x{a}" ~
2112 " "
2113 s:assert [
2114 test = "not(.//db:caution)"
2115 "caution must not occur among the children or descendants of example"
2116 ]
2117 "\x{a}" ~
2118 " "
2119 ]
2120 "\x{a}" ~
2121 " "
2122 ]
2123 s:pattern [
2124 name = "Element exclusion"
2125 "\x{a}" ~
2126 " "
2127 s:rule [
2128 context = "db:example"
2129 "\x{a}" ~
2130 " "
2131 s:assert [
2132 test = "not(.//db:important)"
2133 "important must not occur among the children or descendants of example"
2134 ]
2135 "\x{a}" ~
2136 " "
2137 ]
2138 "\x{a}" ~
2139 " "
2140 ]
2141 s:pattern [
2142 name = "Element exclusion"
2143 "\x{a}" ~
2144 " "
2145 s:rule [
2146 context = "db:example"
2147 "\x{a}" ~
2148 " "
2149 s:assert [
2150 test = "not(.//db:note)"
2151 "note must not occur among the children or descendants of example"
2152 ]
2153 "\x{a}" ~
2154 " "
2155 ]
2156 "\x{a}" ~
2157 " "
2158 ]
2159 s:pattern [
2160 name = "Element exclusion"
2161 "\x{a}" ~
2162 " "
2163 s:rule [
2164 context = "db:example"
2165 "\x{a}" ~
2166 " "
2167 s:assert [
2168 test = "not(.//db:tip)"
2169 "tip must not occur among the children or descendants of example"
2170 ]
2171 "\x{a}" ~
2172 " "
2173 ]
2174 "\x{a}" ~
2175 " "
2176 ]
2177 s:pattern [
2178 name = "Element exclusion"
2179 "\x{a}" ~
2180 " "
2181 s:rule [
2182 context = "db:example"
2183 "\x{a}" ~
2184 " "
2185 s:assert [
2186 test = "not(.//db:warning)"
2187 "warning must not occur among the children or descendants of example"
2188 ]
2189 "\x{a}" ~
2190 " "
2191 ]
2192 "\x{a}" ~
2193 " "
2194 ]
2195 s:pattern [
2196 name = "Root must have version"
2197 "\x{a}" ~
2198 " "
2199 s:rule [
2200 context = "/db:example"
2201 "\x{a}" ~
2202 " "
2203 s:assert [
2204 test = "@version"
2205 "If this element is the root element, it must have a version attribute."
2206 ]
2207 "\x{a}" ~
2208 " "
2209 ]
2210 "\x{a}" ~
2211 " "
2212 ]
2213 ]
2214 element example {
2215 db.example.attlist, db.example.info, db.all.blocks+, db.caption?
2216 }
2217 }
2218 div {
2219 db.informalexample.role.attribute = attribute role { text }
2220 db.informalexample.width.attribute = db.width.characters.attribute
2221 db.informalexample.pgwide.attribute = db.pgwide.attribute
2222 db.informalexample.floatstyle.attribute = db.floatstyle.attribute
2223 db.informalexample.attlist =
2224 db.informalexample.role.attribute?
2225 & db.common.attributes
2226 & db.common.linking.attributes
2227 & db.informalexample.floatstyle.attribute?
2228 & (db.informalexample.width.attribute
2229 | db.informalexample.pgwide.attribute)?
2230 db.informalexample.info = db._info.title.forbidden
2231 db.informalexample =
2232
2233 ## A displayed example without a title
2234 [
2235 s:pattern [
2236 name = "Root must have version"
2237 "\x{a}" ~
2238 " "
2239 s:rule [
2240 context = "/db:informalexample"
2241 "\x{a}" ~
2242 " "
2243 s:assert [
2244 test = "@version"
2245 "If this element is the root element, it must have a version attribute."
2246 ]
2247 "\x{a}" ~
2248 " "
2249 ]
2250 "\x{a}" ~
2251 " "
2252 ]
2253 ]
2254 element informalexample {
2255 db.informalexample.attlist,
2256 db.informalexample.info,
2257 db.all.blocks+,
2258 db.caption?
2259 }
2260 }
2261 db.verbatim.inlines = (db.all.inlines | db.lineannotation) | db.co
2262 db.verbatim.contentmodel =
2263 db._info.title.forbidden, (db.textobject | db.verbatim.inlines*)
2264 div {
2265 db.literallayout.role.attribute = attribute role { text }
2266 db.literallayout.class.enumeration =
2267
2268 ## The literal layout should be formatted with a monospaced font
2269 "monospaced"
2270 |
2271 ## The literal layout should be formatted with the current font
2272 "normal"
2273 db.literallayout.class.attribute =
2274
2275 ## Specifies the class of literal layout
2276 attribute class { db.literallayout.class.enumeration }
2277 db.literallayout.attlist =
2278 db.literallayout.role.attribute?
2279 & db.common.attributes
2280 & db.common.linking.attributes
2281 & db.verbatim.attributes
2282 & db.literallayout.class.attribute?
2283 db.literallayout =
2284
2285 ## A block of text in which line breaks and white space are to be reproduced faithfully
2286 [
2287 s:pattern [
2288 name = "Root must have version"
2289 "\x{a}" ~
2290 " "
2291 s:rule [
2292 context = "/db:literallayout"
2293 "\x{a}" ~
2294 " "
2295 s:assert [
2296 test = "@version"
2297 "If this element is the root element, it must have a version attribute."
2298 ]
2299 "\x{a}" ~
2300 " "
2301 ]
2302 "\x{a}" ~
2303 " "
2304 ]
2305 ]
2306 element literallayout {
2307 db.literallayout.attlist, db.verbatim.contentmodel
2308 }
2309 }
2310 div {
2311 db.screen.role.attribute = attribute role { text }
2312 db.screen.width.attribute = db.width.characters.attribute
2313 db.screen.attlist =
2314 db.screen.role.attribute?
2315 & db.common.attributes
2316 & db.common.linking.attributes
2317 & db.verbatim.attributes
2318 & db.screen.width.attribute?
2319 db.screen =
2320
2321 ## Text that a user sees or might see on a computer screen
2322 [
2323 s:pattern [
2324 name = "Root must have version"
2325 "\x{a}" ~
2326 " "
2327 s:rule [
2328 context = "/db:screen"
2329 "\x{a}" ~
2330 " "
2331 s:assert [
2332 test = "@version"
2333 "If this element is the root element, it must have a version attribute."
2334 ]
2335 "\x{a}" ~
2336 " "
2337 ]
2338 "\x{a}" ~
2339 " "
2340 ]
2341 ]
2342 element screen { db.screen.attlist, db.verbatim.contentmodel }
2343 }
2344 div {
2345 db.screenshot.role.attribute = attribute role { text }
2346 db.screenshot.attlist =
2347 db.screenshot.role.attribute?
2348 & db.common.attributes
2349 & db.common.linking.attributes
2350 db.screenshot.info = db._info
2351 db.screenshot =
2352
2353 ## A representation of what the user sees or might see on a computer screen
2354 [
2355 s:pattern [
2356 name = "Root must have version"
2357 "\x{a}" ~
2358 " "
2359 s:rule [
2360 context = "/db:screenshot"
2361 "\x{a}" ~
2362 " "
2363 s:assert [
2364 test = "@version"
2365 "If this element is the root element, it must have a version attribute."
2366 ]
2367 "\x{a}" ~
2368 " "
2369 ]
2370 "\x{a}" ~
2371 " "
2372 ]
2373 ]
2374 element screenshot {
2375 db.screenshot.attlist, db.screenshot.info, db.mediaobject
2376 }
2377 }
2378 div {
2379 db.figure.role.attribute = attribute role { text }
2380 db.figure.label.attribute = db.label.attribute
2381 db.figure.pgwide.attribute = db.pgwide.attribute
2382 db.figure.floatstyle.attribute = db.floatstyle.attribute
2383 db.figure.attlist =
2384 db.figure.role.attribute?
2385 & db.common.attributes
2386 & db.common.linking.attributes
2387 & db.figure.label.attribute?
2388 & db.figure.pgwide.attribute?
2389 & db.figure.floatstyle.attribute?
2390 db.figure.info = db._info.title.onlyreq
2391 db.figure =
2392
2393 ## A formal figure, generally an illustration, with a title
2394 [
2395 s:pattern [
2396 name = "Element exclusion"
2397 "\x{a}" ~
2398 " "
2399 s:rule [
2400 context = "db:figure"
2401 "\x{a}" ~
2402 " "
2403 s:assert [
2404 test = "not(.//db:example)"
2405 "example must not occur among the children or descendants of figure"
2406 ]
2407 "\x{a}" ~
2408 " "
2409 ]
2410 "\x{a}" ~
2411 " "
2412 ]
2413 s:pattern [
2414 name = "Element exclusion"
2415 "\x{a}" ~
2416 " "
2417 s:rule [
2418 context = "db:figure"
2419 "\x{a}" ~
2420 " "
2421 s:assert [
2422 test = "not(.//db:figure)"
2423 "figure must not occur among the children or descendants of figure"
2424 ]
2425 "\x{a}" ~
2426 " "
2427 ]
2428 "\x{a}" ~
2429 " "
2430 ]
2431 s:pattern [
2432 name = "Element exclusion"
2433 "\x{a}" ~
2434 " "
2435 s:rule [
2436 context = "db:figure"
2437 "\x{a}" ~
2438 " "
2439 s:assert [
2440 test = "not(.//db:table)"
2441 "table must not occur among the children or descendants of figure"
2442 ]
2443 "\x{a}" ~
2444 " "
2445 ]
2446 "\x{a}" ~
2447 " "
2448 ]
2449 s:pattern [
2450 name = "Element exclusion"
2451 "\x{a}" ~
2452 " "
2453 s:rule [
2454 context = "db:figure"
2455 "\x{a}" ~
2456 " "
2457 s:assert [
2458 test = "not(.//db:equation)"
2459 "equation must not occur among the children or descendants of figure"
2460 ]
2461 "\x{a}" ~
2462 " "
2463 ]
2464 "\x{a}" ~
2465 " "
2466 ]
2467 s:pattern [
2468 name = "Element exclusion"
2469 "\x{a}" ~
2470 " "
2471 s:rule [
2472 context = "db:figure"
2473 "\x{a}" ~
2474 " "
2475 s:assert [
2476 test = "not(.//db:caution)"
2477 "caution must not occur among the children or descendants of figure"
2478 ]
2479 "\x{a}" ~
2480 " "
2481 ]
2482 "\x{a}" ~
2483 " "
2484 ]
2485 s:pattern [
2486 name = "Element exclusion"
2487 "\x{a}" ~
2488 " "
2489 s:rule [
2490 context = "db:figure"
2491 "\x{a}" ~
2492 " "
2493 s:assert [
2494 test = "not(.//db:important)"
2495 "important must not occur among the children or descendants of figure"
2496 ]
2497 "\x{a}" ~
2498 " "
2499 ]
2500 "\x{a}" ~
2501 " "
2502 ]
2503 s:pattern [
2504 name = "Element exclusion"
2505 "\x{a}" ~
2506 " "
2507 s:rule [
2508 context = "db:figure"
2509 "\x{a}" ~
2510 " "
2511 s:assert [
2512 test = "not(.//db:note)"
2513 "note must not occur among the children or descendants of figure"
2514 ]
2515 "\x{a}" ~
2516 " "
2517 ]
2518 "\x{a}" ~
2519 " "
2520 ]
2521 s:pattern [
2522 name = "Element exclusion"
2523 "\x{a}" ~
2524 " "
2525 s:rule [
2526 context = "db:figure"
2527 "\x{a}" ~
2528 " "
2529 s:assert [
2530 test = "not(.//db:tip)"
2531 "tip must not occur among the children or descendants of figure"
2532 ]
2533 "\x{a}" ~
2534 " "
2535 ]
2536 "\x{a}" ~
2537 " "
2538 ]
2539 s:pattern [
2540 name = "Element exclusion"
2541 "\x{a}" ~
2542 " "
2543 s:rule [
2544 context = "db:figure"
2545 "\x{a}" ~
2546 " "
2547 s:assert [
2548 test = "not(.//db:warning)"
2549 "warning must not occur among the children or descendants of figure"
2550 ]
2551 "\x{a}" ~
2552 " "
2553 ]
2554 "\x{a}" ~
2555 " "
2556 ]
2557 s:pattern [
2558 name = "Root must have version"
2559 "\x{a}" ~
2560 " "
2561 s:rule [
2562 context = "/db:figure"
2563 "\x{a}" ~
2564 " "
2565 s:assert [
2566 test = "@version"
2567 "If this element is the root element, it must have a version attribute."
2568 ]
2569 "\x{a}" ~
2570 " "
2571 ]
2572 "\x{a}" ~
2573 " "
2574 ]
2575 ]
2576 element figure {
2577 db.figure.attlist, db.figure.info, db.all.blocks+, db.caption?
2578 }
2579 }
2580 div {
2581 db.informalfigure.role.attribute = attribute role { text }
2582 db.informalfigure.label.attribute = db.label.attribute
2583 db.informalfigure.pgwide.attribute = db.pgwide.attribute
2584 db.informalfigure.floatstyle.attribute = db.floatstyle.attribute
2585 db.informalfigure.attlist =
2586 db.informalfigure.role.attribute?
2587 & db.common.attributes
2588 & db.common.linking.attributes
2589 & db.informalfigure.label.attribute?
2590 & db.informalfigure.pgwide.attribute?
2591 & db.informalfigure.floatstyle.attribute?
2592 db.informalfigure.info = db._info.title.forbidden
2593 db.informalfigure =
2594
2595 ## A untitled figure
2596 [
2597 s:pattern [
2598 name = "Root must have version"
2599 "\x{a}" ~
2600 " "
2601 s:rule [
2602 context = "/db:informalfigure"
2603 "\x{a}" ~
2604 " "
2605 s:assert [
2606 test = "@version"
2607 "If this element is the root element, it must have a version attribute."
2608 ]
2609 "\x{a}" ~
2610 " "
2611 ]
2612 "\x{a}" ~
2613 " "
2614 ]
2615 ]
2616 element informalfigure {
2617 db.informalfigure.attlist,
2618 db.informalfigure.info,
2619 db.all.blocks+,
2620 db.caption?
2621 }
2622 }
2623 db.mediaobject.content =
2624 (db.videoobject | db.audioobject | db.imageobject | db.textobject)
2625 | db.imageobjectco
2626 div {
2627 db.mediaobject.role.attribute = attribute role { text }
2628 db.mediaobject.attlist =
2629 db.mediaobject.role.attribute?
2630 & db.common.attributes
2631 & db.common.linking.attributes
2632 db.mediaobject.info = db._info.title.forbidden
2633 db.mediaobject =
2634
2635 ## A displayed media object (video, audio, image, etc.)
2636 [
2637 s:pattern [
2638 name = "Root must have version"
2639 "\x{a}" ~
2640 " "
2641 s:rule [
2642 context = "/db:mediaobject"
2643 "\x{a}" ~
2644 " "
2645 s:assert [
2646 test = "@version"
2647 "If this element is the root element, it must have a version attribute."
2648 ]
2649 "\x{a}" ~
2650 " "
2651 ]
2652 "\x{a}" ~
2653 " "
2654 ]
2655 ]
2656 element mediaobject {
2657 db.mediaobject.attlist,
2658 db.mediaobject.info,
2659 db.alt?,
2660 db.mediaobject.content+,
2661 db.caption?
2662 }
2663 }
2664 div {
2665 db.inlinemediaobject.role.attribute = attribute role { text }
2666 db.inlinemediaobject.attlist =
2667 db.inlinemediaobject.role.attribute?
2668 & db.common.attributes
2669 & db.common.linking.attributes
2670 db.inlinemediaobject.info = db._info.title.forbidden
2671 db.inlinemediaobject =
2672
2673 ## An inline media object (video, audio, image, and so on)
2674 [
2675 s:pattern [
2676 name = "Root must have version"
2677 "\x{a}" ~
2678 " "
2679 s:rule [
2680 context = "/db:inlinemediaobject"
2681 "\x{a}" ~
2682 " "
2683 s:assert [
2684 test = "@version"
2685 "If this element is the root element, it must have a version attribute."
2686 ]
2687 "\x{a}" ~
2688 " "
2689 ]
2690 "\x{a}" ~
2691 " "
2692 ]
2693 ]
2694 element inlinemediaobject {
2695 db.inlinemediaobject.attlist,
2696 db.inlinemediaobject.info,
2697 db.alt?,
2698 db.mediaobject.content+
2699 }
2700 }
2701 div {
2702 db.videoobject.role.attribute = attribute role { text }
2703 db.videoobject.attlist =
2704 db.videoobject.role.attribute?
2705 & db.common.attributes
2706 & db.common.linking.attributes
2707 db.videoobject.info = db._info.title.forbidden
2708 db.videoobject =
2709
2710 ## A wrapper for video data and its associated meta-information
2711 [
2712 s:pattern [
2713 name = "Root must have version"
2714 "\x{a}" ~
2715 " "
2716 s:rule [
2717 context = "/db:videoobject"
2718 "\x{a}" ~
2719 " "
2720 s:assert [
2721 test = "@version"
2722 "If this element is the root element, it must have a version attribute."
2723 ]
2724 "\x{a}" ~
2725 " "
2726 ]
2727 "\x{a}" ~
2728 " "
2729 ]
2730 ]
2731 element videoobject {
2732 db.videoobject.attlist,
2733 db.videoobject.info,
2734 db.videodata,
2735 db.multimediaparam*
2736 }
2737 }
2738 div {
2739 db.audioobject.role.attribute = attribute role { text }
2740 db.audioobject.attlist =
2741 db.audioobject.role.attribute?
2742 & db.common.attributes
2743 & db.common.linking.attributes
2744 db.audioobject.info = db._info.title.forbidden
2745 db.audioobject =
2746
2747 ## A wrapper for audio data and its associated meta-information
2748 [
2749 s:pattern [
2750 name = "Root must have version"
2751 "\x{a}" ~
2752 " "
2753 s:rule [
2754 context = "/db:audioobject"
2755 "\x{a}" ~
2756 " "
2757 s:assert [
2758 test = "@version"
2759 "If this element is the root element, it must have a version attribute."
2760 ]
2761 "\x{a}" ~
2762 " "
2763 ]
2764 "\x{a}" ~
2765 " "
2766 ]
2767 ]
2768 element audioobject {
2769 db.audioobject.attlist,
2770 db.audioobject.info,
2771 db.audiodata,
2772 db.multimediaparam*
2773 }
2774 }
2775 db.imageobject.content =
2776 db.imagedata | db.imagedata.mathml | db.imagedata.svg
2777 div {
2778 db.imageobject.role.attribute = attribute role { text }
2779 db.imageobject.attlist =
2780 db.imageobject.role.attribute?
2781 & db.common.attributes
2782 & db.common.linking.attributes
2783 db.imageobject.info = db._info.title.forbidden
2784 db.imageobject =
2785
2786 ## A wrapper for image data and its associated meta-information
2787 [
2788 s:pattern [
2789 name = "Root must have version"
2790 "\x{a}" ~
2791 " "
2792 s:rule [
2793 context = "/db:imageobject"
2794 "\x{a}" ~
2795 " "
2796 s:assert [
2797 test = "@version"
2798 "If this element is the root element, it must have a version attribute."
2799 ]
2800 "\x{a}" ~
2801 " "
2802 ]
2803 "\x{a}" ~
2804 " "
2805 ]
2806 ]
2807 element imageobject {
2808 db.imageobject.attlist,
2809 db.imageobject.info,
2810 db.imageobject.content
2811 }
2812 }
2813 div {
2814 db.textobject.role.attribute = attribute role { text }
2815 db.textobject.attlist =
2816 db.textobject.role.attribute?
2817 & db.common.attributes
2818 & db.common.linking.attributes
2819 db.textobject.info = db._info.title.forbidden
2820 db.textobject =
2821
2822 ## A wrapper for a text description of an object and its associated meta-information
2823 [
2824 s:pattern [
2825 name = "Root must have version"
2826 "\x{a}" ~
2827 " "
2828 s:rule [
2829 context = "/db:textobject"
2830 "\x{a}" ~
2831 " "
2832 s:assert [
2833 test = "@version"
2834 "If this element is the root element, it must have a version attribute."
2835 ]
2836 "\x{a}" ~
2837 " "
2838 ]
2839 "\x{a}" ~
2840 " "
2841 ]
2842 ]
2843 element textobject {
2844 db.textobject.attlist,
2845 db.textobject.info,
2846 (db.phrase | db.textdata | db.all.blocks+)
2847 }
2848 }
2849 div {
2850 db.videodata.role.attribute = attribute role { text }
2851 db.videodata.align.enumeration = db.halign.enumeration
2852 db.videodata.align.attribute =
2853
2854 ## Specifies the (horizontal) alignment of the video data
2855 attribute align { db.videodata.align.enumeration }
2856 db.videodata.autoplay.attribute = db.autoplay.attribute
2857 db.videodata.classid.attribute = db.classid.attribute
2858 db.videodata.valign.enumeration = db.valign.enumeration
2859 db.videodata.valign.attribute =
2860
2861 ## Specifies the vertical alignment of the video data
2862 attribute valign { db.videodata.valign.enumeration }
2863 db.videodata.width.attribute = db.width.attribute
2864 db.videodata.depth.attribute = db.depth.attribute
2865 db.videodata.contentwidth.attribute = db.contentwidth.attribute
2866 db.videodata.contentdepth.attribute = db.contentdepth.attribute
2867 db.videodata.scalefit.enumeration = db.scalefit.enumeration
2868 db.videodata.scalefit.attribute =
2869
2870 ## Determines if anamorphic scaling is forbidden
2871 attribute scalefit { db.videodata.scalefit.enumeration }
2872 db.videodata.scale.attribute = db.scale.attribute
2873 db.videodata.attlist =
2874 db.videodata.role.attribute?
2875 & db.common.attributes
2876 & db.common.data.attributes
2877 & db.videodata.align.attribute?
2878 & db.videodata.valign.attribute?
2879 & db.videodata.width.attribute?
2880 & db.videodata.contentwidth.attribute?
2881 & db.videodata.scalefit.attribute?
2882 & db.videodata.scale.attribute?
2883 & db.videodata.depth.attribute?
2884 & db.videodata.contentdepth.attribute?
2885 & db.videodata.autoplay.attribute?
2886 & db.videodata.classid.attribute?
2887 db.videodata.info = db._info.title.forbidden
2888 db.videodata =
2889
2890 ## Pointer to external video data
2891 [
2892 s:pattern [
2893 name = "Root must have version"
2894 "\x{a}" ~
2895 " "
2896 s:rule [
2897 context = "/db:videodata"
2898 "\x{a}" ~
2899 " "
2900 s:assert [
2901 test = "@version"
2902 "If this element is the root element, it must have a version attribute."
2903 ]
2904 "\x{a}" ~
2905 " "
2906 ]
2907 "\x{a}" ~
2908 " "
2909 ]
2910 ]
2911 element videodata { db.videodata.attlist, db.videodata.info }
2912 }
2913 div {
2914 db.audiodata.role.attribute = attribute role { text }
2915 db.audiodata.align.enumeration = db.halign.enumeration
2916 db.audiodata.align.attribute =
2917
2918 ## Specifies the (horizontal) alignment of the video data
2919 attribute align { db.audiodata.align.enumeration }
2920 db.audiodata.autoplay.attribute = db.autoplay.attribute
2921 db.audiodata.classid.attribute = db.classid.attribute
2922 db.audiodata.contentwidth.attribute = db.contentwidth.attribute
2923 db.audiodata.contentdepth.attribute = db.contentdepth.attribute
2924 db.audiodata.depth.attribute = db.depth.attribute
2925 db.audiodata.scale.attribute = db.scale.attribute
2926 db.audiodata.scalefit.enumeration = db.scalefit.enumeration
2927 db.audiodata.scalefit.attribute =
2928
2929 ## Determines if anamorphic scaling is forbidden
2930 attribute scalefit { db.audiodata.scalefit.enumeration }
2931 db.audiodata.valign.enumeration = db.valign.enumeration
2932 db.audiodata.valign.attribute =
2933
2934 ## Specifies the vertical alignment of the video data
2935 attribute valign { db.audiodata.valign.enumeration }
2936 db.audiodata.width.attribute = db.width.attribute
2937 db.audiodata.attlist =
2938 db.audiodata.role.attribute?
2939 & db.common.attributes
2940 & db.common.data.attributes
2941 & db.audiodata.align.attribute?
2942 & db.audiodata.autoplay.attribute?
2943 & db.audiodata.classid.attribute?
2944 & db.audiodata.contentdepth.attribute?
2945 & db.audiodata.contentwidth.attribute?
2946 & db.audiodata.depth.attribute?
2947 & db.audiodata.scale.attribute?
2948 & db.audiodata.scalefit.attribute?
2949 & db.audiodata.valign.attribute?
2950 & db.audiodata.width.attribute?
2951 db.audiodata.info = db._info.title.forbidden
2952 db.audiodata =
2953
2954 ## Pointer to external audio data
2955 [
2956 s:pattern [
2957 name = "Root must have version"
2958 "\x{a}" ~
2959 " "
2960 s:rule [
2961 context = "/db:audiodata"
2962 "\x{a}" ~
2963 " "
2964 s:assert [
2965 test = "@version"
2966 "If this element is the root element, it must have a version attribute."
2967 ]
2968 "\x{a}" ~
2969 " "
2970 ]
2971 "\x{a}" ~
2972 " "
2973 ]
2974 ]
2975 element audiodata { db.audiodata.attlist, db.audiodata.info }
2976 }
2977 div {
2978 db.imagedata.role.attribute = attribute role { text }
2979 db.imagedata.align.enumeration = db.halign.enumeration
2980 db.imagedata.align.attribute =
2981
2982 ## Specifies the (horizontal) alignment of the image data
2983 attribute align { db.imagedata.align.enumeration }
2984 db.imagedata.valign.enumeration = db.valign.enumeration
2985 db.imagedata.valign.attribute =
2986
2987 ## Specifies the vertical alignment of the image data
2988 attribute valign { db.imagedata.valign.enumeration }
2989 db.imagedata.width.attribute = db.width.attribute
2990 db.imagedata.depth.attribute = db.depth.attribute
2991 db.imagedata.contentwidth.attribute = db.contentwidth.attribute
2992 db.imagedata.contentdepth.attribute = db.contentdepth.attribute
2993 db.imagedata.scalefit.enumeration = db.scalefit.enumeration
2994 db.imagedata.scalefit.attribute =
2995
2996 ## Determines if anamorphic scaling is forbidden
2997 attribute scalefit { db.imagedata.scalefit.enumeration }
2998 db.imagedata.scale.attribute = db.scale.attribute
2999 db.imagedata.attlist =
3000 db.imagedata.role.attribute?
3001 & db.common.attributes
3002 & db.common.data.attributes
3003 & db.imagedata.align.attribute?
3004 & db.imagedata.valign.attribute?
3005 & db.imagedata.width.attribute?
3006 & db.imagedata.contentwidth.attribute?
3007 & db.imagedata.scalefit.attribute?
3008 & db.imagedata.scale.attribute?
3009 & db.imagedata.depth.attribute?
3010 & db.imagedata.contentdepth.attribute?
3011 db.imagedata.info = db._info.title.forbidden
3012 db.imagedata =
3013
3014 ## Pointer to external image data
3015 [
3016 s:pattern [
3017 name = "Root must have version"
3018 "\x{a}" ~
3019 " "
3020 s:rule [
3021 context = "/db:imagedata"
3022 "\x{a}" ~
3023 " "
3024 s:assert [
3025 test = "@version"
3026 "If this element is the root element, it must have a version attribute."
3027 ]
3028 "\x{a}" ~
3029 " "
3030 ]
3031 "\x{a}" ~
3032 " "
3033 ]
3034 ]
3035 element imagedata { db.imagedata.attlist, db.imagedata.info }
3036 }
3037 div {
3038 db.textdata.role.attribute = attribute role { text }
3039 db.textdata.encoding.attribute =
3040
3041 ## Identifies the encoding of the text in the external file
3042 attribute encoding { text }
3043 db.textdata.attlist =
3044 db.textdata.role.attribute?
3045 & db.common.attributes
3046 & db.common.data.attributes
3047 & db.textdata.encoding.attribute?
3048 db.textdata.info = db._info.title.forbidden
3049 db.textdata =
3050
3051 ## Pointer to external text data
3052 [
3053 s:pattern [
3054 name = "Root must have version"
3055 "\x{a}" ~
3056 " "
3057 s:rule [
3058 context = "/db:textdata"
3059 "\x{a}" ~
3060 " "
3061 s:assert [
3062 test = "@version"
3063 "If this element is the root element, it must have a version attribute."
3064 ]
3065 "\x{a}" ~
3066 " "
3067 ]
3068 "\x{a}" ~
3069 " "
3070 ]
3071 ]
3072 element textdata { db.textdata.attlist, db.textdata.info }
3073 }
3074 div {
3075 db.multimediaparam.role.attribute = attribute role { text }
3076 db.multimediaparam.name.attribute =
3077
3078 ## Specifies the name of the parameter
3079 attribute name { text }
3080 db.multimediaparam.value.attribute =
3081
3082 ## Specifies the value of the parameter
3083 attribute value { text }
3084 db.multimediaparam.valuetype.attribute =
3085
3086 ## Specifies the type of the value of the parameter
3087 attribute valuetype { text }
3088 db.multimediaparam.attlist =
3089 db.multimediaparam.role.attribute?
3090 & db.common.attributes
3091 & db.multimediaparam.name.attribute
3092 & db.multimediaparam.value.attribute
3093 & db.multimediaparam.valuetype.attribute?
3094 db.multimediaparam =
3095
3096 ## Application specific parameters for a media player
3097 element multimediaparam { db.multimediaparam.attlist, empty }
3098 }
3099 div {
3100 db.caption.role.attribute = attribute role { text }
3101 db.caption.attlist =
3102 db.caption.role.attribute?
3103 & db.common.attributes
3104 & db.common.linking.attributes
3105 db.caption.info = db._info.title.forbidden
3106 db.caption =
3107
3108 ## A caption
3109 [
3110 s:pattern [
3111 name = "Element exclusion"
3112 "\x{a}" ~
3113 " "
3114 s:rule [
3115 context = "db:caption"
3116 "\x{a}" ~
3117 " "
3118 s:assert [
3119 test = "not(.//db:example)"
3120 "example must not occur among the children or descendants of caption"
3121 ]
3122 "\x{a}" ~
3123 " "
3124 ]
3125 "\x{a}" ~
3126 " "
3127 ]
3128 s:pattern [
3129 name = "Element exclusion"
3130 "\x{a}" ~
3131 " "
3132 s:rule [
3133 context = "db:caption"
3134 "\x{a}" ~
3135 " "
3136 s:assert [
3137 test = "not(.//db:figure)"
3138 "figure must not occur among the children or descendants of caption"
3139 ]
3140 "\x{a}" ~
3141 " "
3142 ]
3143 "\x{a}" ~
3144 " "
3145 ]
3146 s:pattern [
3147 name = "Element exclusion"
3148 "\x{a}" ~
3149 " "
3150 s:rule [
3151 context = "db:caption"
3152 "\x{a}" ~
3153 " "
3154 s:assert [
3155 test = "not(.//db:table)"
3156 "table must not occur among the children or descendants of caption"
3157 ]
3158 "\x{a}" ~
3159 " "
3160 ]
3161 "\x{a}" ~
3162 " "
3163 ]
3164 s:pattern [
3165 name = "Element exclusion"
3166 "\x{a}" ~
3167 " "
3168 s:rule [
3169 context = "db:caption"
3170 "\x{a}" ~
3171 " "
3172 s:assert [
3173 test = "not(.//db:equation)"
3174 "equation must not occur among the children or descendants of caption"
3175 ]
3176 "\x{a}" ~
3177 " "
3178 ]
3179 "\x{a}" ~
3180 " "
3181 ]
3182 s:pattern [
3183 name = "Element exclusion"
3184 "\x{a}" ~
3185 " "
3186 s:rule [
3187 context = "db:caption"
3188 "\x{a}" ~
3189 " "
3190 s:assert [
3191 test = "not(.//db:sidebar)"
3192 "sidebar must not occur among the children or descendants of caption"
3193 ]
3194 "\x{a}" ~
3195 " "
3196 ]
3197 "\x{a}" ~
3198 " "
3199 ]
3200 s:pattern [
3201 name = "Element exclusion"
3202 "\x{a}" ~
3203 " "
3204 s:rule [
3205 context = "db:caption"
3206 "\x{a}" ~
3207 " "
3208 s:assert [
3209 test = "not(.//db:task)"
3210 "task must not occur among the children or descendants of caption"
3211 ]
3212 "\x{a}" ~
3213 " "
3214 ]
3215 "\x{a}" ~
3216 " "
3217 ]
3218 s:pattern [
3219 name = "Element exclusion"
3220 "\x{a}" ~
3221 " "
3222 s:rule [
3223 context = "db:caption"
3224 "\x{a}" ~
3225 " "
3226 s:assert [
3227 test = "not(.//db:caution)"
3228 "caution must not occur among the children or descendants of caption"
3229 ]
3230 "\x{a}" ~
3231 " "
3232 ]
3233 "\x{a}" ~
3234 " "
3235 ]
3236 s:pattern [
3237 name = "Element exclusion"
3238 "\x{a}" ~
3239 " "
3240 s:rule [
3241 context = "db:caption"
3242 "\x{a}" ~
3243 " "
3244 s:assert [
3245 test = "not(.//db:important)"
3246 "important must not occur among the children or descendants of caption"
3247 ]
3248 "\x{a}" ~
3249 " "
3250 ]
3251 "\x{a}" ~
3252 " "
3253 ]
3254 s:pattern [
3255 name = "Element exclusion"
3256 "\x{a}" ~
3257 " "
3258 s:rule [
3259 context = "db:caption"
3260 "\x{a}" ~
3261 " "
3262 s:assert [
3263 test = "not(.//db:note)"
3264 "note must not occur among the children or descendants of caption"
3265 ]
3266 "\x{a}" ~
3267 " "
3268 ]
3269 "\x{a}" ~
3270 " "
3271 ]
3272 s:pattern [
3273 name = "Element exclusion"
3274 "\x{a}" ~
3275 " "
3276 s:rule [
3277 context = "db:caption"
3278 "\x{a}" ~
3279 " "
3280 s:assert [
3281 test = "not(.//db:tip)"
3282 "tip must not occur among the children or descendants of caption"
3283 ]
3284 "\x{a}" ~
3285 " "
3286 ]
3287 "\x{a}" ~
3288 " "
3289 ]
3290 s:pattern [
3291 name = "Element exclusion"
3292 "\x{a}" ~
3293 " "
3294 s:rule [
3295 context = "db:caption"
3296 "\x{a}" ~
3297 " "
3298 s:assert [
3299 test = "not(.//db:warning)"
3300 "warning must not occur among the children or descendants of caption"
3301 ]
3302 "\x{a}" ~
3303 " "
3304 ]
3305 "\x{a}" ~
3306 " "
3307 ]
3308 s:pattern [
3309 name = "Root must have version"
3310 "\x{a}" ~
3311 " "
3312 s:rule [
3313 context = "/db:caption"
3314 "\x{a}" ~
3315 " "
3316 s:assert [
3317 test = "@version"
3318 "If this element is the root element, it must have a version attribute."
3319 ]
3320 "\x{a}" ~
3321 " "
3322 ]
3323 "\x{a}" ~
3324 " "
3325 ]
3326 ]
3327 element caption {
3328 db.caption.attlist, db.caption.info, db.all.blocks+
3329 }
3330 }
3331 div {
3332 db.address.role.attribute = attribute role { text }
3333 db.address.attlist =
3334 db.address.role.attribute?
3335 & db.common.attributes
3336 & db.common.linking.attributes
3337 & db.verbatim.attributes
3338 db.address =
3339
3340 ## A real-world address, generally a postal address
3341 [
3342 s:pattern [
3343 name = "Root must have version"
3344 "\x{a}" ~
3345 " "
3346 s:rule [
3347 context = "/db:address"
3348 "\x{a}" ~
3349 " "
3350 s:assert [
3351 test = "@version"
3352 "If this element is the root element, it must have a version attribute."
3353 ]
3354 "\x{a}" ~
3355 " "
3356 ]
3357 "\x{a}" ~
3358 " "
3359 ]
3360 ]
3361 element address {
3362 db.address.attlist,
3363 (db._text
3364 | db.personname
3365 | db.orgname
3366 | db.pob
3367 | db.street
3368 | db.city
3369 | db.state
3370 | db.postcode
3371 | db.country
3372 | db.phone
3373 | db.fax
3374 | db.email
3375 | db.uri
3376 | db.otheraddr)*
3377 }
3378 }
3379 div {
3380 db.street.role.attribute = attribute role { text }
3381 db.street.attlist =
3382 db.street.role.attribute?
3383 & db.common.attributes
3384 & db.common.linking.attributes
3385 db.street =
3386
3387 ## A street address in an address
3388 element street { db.street.attlist, db._text }
3389 }
3390 div {
3391 db.pob.role.attribute = attribute role { text }
3392 db.pob.attlist =
3393 db.pob.role.attribute?
3394 & db.common.attributes
3395 & db.common.linking.attributes
3396 db.pob =
3397
3398 ## A post office box in an address
3399 element pob { db.pob.attlist, db._text }
3400 }
3401 div {
3402 db.postcode.role.attribute = attribute role { text }
3403 db.postcode.attlist =
3404 db.postcode.role.attribute?
3405 & db.common.attributes
3406 & db.common.linking.attributes
3407 db.postcode =
3408
3409 ## A postal code in an address
3410 element postcode { db.postcode.attlist, db._text }
3411 }
3412 div {
3413 db.city.role.attribute = attribute role { text }
3414 db.city.attlist =
3415 db.city.role.attribute?
3416 & db.common.attributes
3417 & db.common.linking.attributes
3418 db.city =
3419
3420 ## The name of a city in an address
3421 element city { db.city.attlist, db._text }
3422 }
3423 div {
3424 db.state.role.attribute = attribute role { text }
3425 db.state.attlist =
3426 db.state.role.attribute?
3427 & db.common.attributes
3428 & db.common.linking.attributes
3429 db.state =
3430
3431 ## A state or province in an address
3432 element state { db.state.attlist, db._text }
3433 }
3434 div {
3435 db.country.role.attribute = attribute role { text }
3436 db.country.attlist =
3437 db.country.role.attribute?
3438 & db.common.attributes
3439 & db.common.linking.attributes
3440 db.country =
3441
3442 ## The name of a country
3443 element country { db.country.attlist, db._text }
3444 }
3445 div {
3446 db.phone.role.attribute = attribute role { text }
3447 db.phone.attlist =
3448 db.phone.role.attribute?
3449 & db.common.attributes
3450 & db.common.linking.attributes
3451 db.phone =
3452
3453 ## A telephone number
3454 element phone { db.phone.attlist, db._text }
3455 }
3456 div {
3457 db.fax.role.attribute = attribute role { text }
3458 db.fax.attlist =
3459 db.fax.role.attribute?
3460 & db.common.attributes
3461 & db.common.linking.attributes
3462 db.fax =
3463
3464 ## A fax number
3465 element fax { db.fax.attlist, db._text }
3466 }
3467 div {
3468 db.otheraddr.role.attribute = attribute role { text }
3469 db.otheraddr.attlist =
3470 db.otheraddr.role.attribute?
3471 & db.common.attributes
3472 & db.common.linking.attributes
3473 db.otheraddr =
3474
3475 ## Uncategorized information in address
3476 element otheraddr { db.otheraddr.attlist, db._text }
3477 }
3478 div {
3479 db.affiliation.role.attribute = attribute role { text }
3480 db.affiliation.attlist =
3481 db.affiliation.role.attribute?
3482 & db.common.attributes
3483 & db.common.linking.attributes
3484 db.affiliation =
3485
3486 ## The institutional affiliation of an individual
3487 element affiliation {
3488 db.affiliation.attlist,
3489 db.shortaffil?,
3490 db.jobtitle*,
3491 (db.org? | (db.orgname?, db.orgdiv*, db.address*))
3492 }
3493 }
3494 div {
3495 db.shortaffil.role.attribute = attribute role { text }
3496 db.shortaffil.attlist =
3497 db.shortaffil.role.attribute?
3498 & db.common.attributes
3499 & db.common.linking.attributes
3500 db.shortaffil =
3501
3502 ## A brief description of an affiliation
3503 element shortaffil { db.shortaffil.attlist, db._text }
3504 }
3505 div {
3506 db.jobtitle.role.attribute = attribute role { text }
3507 db.jobtitle.attlist =
3508 db.jobtitle.role.attribute?
3509 & db.common.attributes
3510 & db.common.linking.attributes
3511 db.jobtitle =
3512
3513 ## The title of an individual in an organization
3514 element jobtitle { db.jobtitle.attlist, db._text }
3515 }
3516 div {
3517 db.orgname.class.enumeration =
3518
3519 ## A consortium
3520 "consortium"
3521 |
3522 ## A corporation
3523 "corporation"
3524 |
3525 ## An informal organization
3526 "informal"
3527 |
3528 ## A non-profit organization
3529 "nonprofit"
3530 db.orgname.class-enum.attribute =
3531
3532 ## Specifies the nature of the organization
3533 attribute class { db.orgname.class.enumeration }
3534 db.orgname.class-other.attributes =
3535
3536 ## Specifies the nature of the organization
3537 attribute class {
3538
3539 ## Indicates a non-standard organization class
3540 "other"
3541 },
3542
3543 ## Identifies the non-standard nature of the organization
3544 attribute otherclass { text }
3545 db.orgname.class.attribute =
3546 db.orgname.class-enum.attribute | db.orgname.class-other.attributes
3547 db.orgname.role.attribute = attribute role { text }
3548 db.orgname.attlist =
3549 db.orgname.role.attribute?
3550 & db.common.attributes
3551 & db.common.linking.attributes
3552 & db.orgname.class.attribute?
3553 db.orgname =
3554
3555 ## The name of an organization
3556 element orgname { db.orgname.attlist, db._text }
3557 }
3558 div {
3559 db.orgdiv.role.attribute = attribute role { text }
3560 db.orgdiv.attlist =
3561 db.orgdiv.role.attribute?
3562 & db.common.attributes
3563 & db.common.linking.attributes
3564 db.orgdiv =
3565
3566 ## A division of an organization
3567 element orgdiv { db.orgdiv.attlist, db.all.inlines* }
3568 }
3569 div {
3570 db.artpagenums.role.attribute = attribute role { text }
3571 db.artpagenums.attlist =
3572 db.artpagenums.role.attribute?
3573 & db.common.attributes
3574 & db.common.linking.attributes
3575 db.artpagenums =
3576
3577 ## The page numbers of an article as published
3578 element artpagenums { db.artpagenums.attlist, db._text }
3579 }
3580 div {
3581 db.personname.role.attribute = attribute role { text }
3582 db.personname.attlist =
3583 db.personname.role.attribute?
3584 & db.common.attributes
3585 & db.common.linking.attributes
3586 db.personname =
3587
3588 ## The personal name of an individual
3589 element personname {
3590 db.personname.attlist,
3591 (db._text
3592 | (db.honorific
3593 | db.firstname
3594 | db.surname
3595 | db.lineage
3596 | db.othername)+
3597 | (db.honorific
3598 | db.givenname
3599 | db.surname
3600 | db.lineage
3601 | db.othername)+)
3602 }
3603 }
3604 db.person.author.contentmodel =
3605 db.personname,
3606 (db.personblurb
3607 | db.affiliation
3608 | db.email
3609 | db.uri
3610 | db.address
3611 | db.contrib)*
3612 db.org.author.contentmodel =
3613 db.orgname,
3614 (db.orgdiv
3615 | db.affiliation
3616 | db.email
3617 | db.uri
3618 | db.address
3619 | db.contrib)*
3620 db.credit.contentmodel =
3621 db.person.author.contentmodel | db.org.author.contentmodel
3622 div {
3623 db.author.role.attribute = attribute role { text }
3624 db.author.attlist =
3625 db.author.role.attribute?
3626 & db.common.attributes
3627 & db.common.linking.attributes
3628 db.author =
3629
3630 ## The name of an individual author
3631 element author { db.author.attlist, db.credit.contentmodel }
3632 }
3633 div {
3634 db.authorgroup.role.attribute = attribute role { text }
3635 db.authorgroup.attlist =
3636 db.authorgroup.role.attribute?
3637 & db.common.attributes
3638 & db.common.linking.attributes
3639 db.authorgroup =
3640
3641 ## Wrapper for author information when a document has multiple authors or collaborators
3642 element authorgroup {
3643 db.authorgroup.attlist, (db.author | db.editor | db.othercredit)+
3644 }
3645 }
3646 div {
3647 db.collab.role.attribute = attribute role { text }
3648 db.collab.attlist =
3649 db.collab.role.attribute?
3650 & db.common.attributes
3651 & db.common.linking.attributes
3652 db.collab =
3653
3654 ## Identifies a collaborator
3655 element collab {
3656 db.collab.attlist,
3657 (db.person | db.personname | db.org | db.orgname)+,
3658 db.affiliation*
3659 }
3660 }
3661 div {
3662 db.authorinitials.role.attribute = attribute role { text }
3663 db.authorinitials.attlist =
3664 db.authorinitials.role.attribute?
3665 & db.common.attributes
3666 & db.common.linking.attributes
3667 db.authorinitials =
3668
3669 ## The initials or other short identifier for an author
3670 element authorinitials { db.authorinitials.attlist, db._text }
3671 }
3672 div {
3673 db.person.role.attribute = attribute role { text }
3674 db.person.attlist =
3675 db.person.role.attribute?
3676 & db.common.attributes
3677 & db.common.linking.attributes
3678 db.person =
3679
3680 ## A person and associated metadata
3681 element person {
3682 db.person.attlist,
3683 db.personname,
3684 (db.address
3685 | db.affiliation
3686 | db.email
3687 | db.uri
3688 | db.personblurb)*
3689 }
3690 }
3691 div {
3692 db.org.role.attribute = attribute role { text }
3693 db.org.attlist =
3694 db.org.role.attribute?
3695 & db.common.attributes
3696 & db.common.linking.attributes
3697 db.org =
3698
3699 ## An organization and associated metadata
3700 element org {
3701 db.org.attlist,
3702 db.orgname,
3703 (db.address | db.affiliation | db.email | db.uri | db.orgdiv)*
3704 }
3705 }
3706 div {
3707 db.confgroup.role.attribute = attribute role { text }
3708 db.confgroup.attlist =
3709 db.confgroup.role.attribute?
3710 & db.common.attributes
3711 & db.common.linking.attributes
3712 db.confgroup =
3713
3714 ## A wrapper for document meta-information about a conference
3715 element confgroup {
3716 db.confgroup.attlist,
3717 (db.confdates
3718 | db.conftitle
3719 | db.confnum
3720 | db.confsponsor
3721 | db.address)*
3722 }
3723 }
3724 div {
3725 db.confdates.role.attribute = attribute role { text }
3726 db.confdates.attlist =
3727 db.confdates.role.attribute?
3728 & db.common.attributes
3729 & db.common.linking.attributes
3730 db.confdates =
3731
3732 ## The dates of a conference for which a document was written
3733 element confdates { db.confdates.attlist, db._text }
3734 }
3735 div {
3736 db.conftitle.role.attribute = attribute role { text }
3737 db.conftitle.attlist =
3738 db.conftitle.role.attribute?
3739 & db.common.attributes
3740 & db.common.linking.attributes
3741 db.conftitle =
3742
3743 ## The title of a conference for which a document was written
3744 element conftitle { db.conftitle.attlist, db._text }
3745 }
3746 div {
3747 db.confnum.role.attribute = attribute role { text }
3748 db.confnum.attlist =
3749 db.confnum.role.attribute?
3750 & db.common.attributes
3751 & db.common.linking.attributes
3752 db.confnum =
3753
3754 ## An identifier, frequently numerical, associated with a conference for which a document was written
3755 element confnum { db.confnum.attlist, db._text }
3756 }
3757 div {
3758 db.confsponsor.role.attribute = attribute role { text }
3759 db.confsponsor.attlist =
3760 db.confsponsor.role.attribute?
3761 & db.common.attributes
3762 & db.common.linking.attributes
3763 db.confsponsor =
3764
3765 ## The sponsor of a conference for which a document was written
3766 element confsponsor { db.confsponsor.attlist, db._text }
3767 }
3768 div {
3769 db.contractnum.role.attribute = attribute role { text }
3770 db.contractnum.attlist =
3771 db.contractnum.role.attribute?
3772 & db.common.attributes
3773 & db.common.linking.attributes
3774 db.contractnum =
3775
3776 ## The contract number of a document
3777 element contractnum { db.contractnum.attlist, db._text }
3778 }
3779 div {
3780 db.contractsponsor.role.attribute = attribute role { text }
3781 db.contractsponsor.attlist =
3782 db.contractsponsor.role.attribute?
3783 & db.common.attributes
3784 & db.common.linking.attributes
3785 db.contractsponsor =
3786
3787 ## The sponsor of a contract
3788 element contractsponsor { db.contractsponsor.attlist, db._text }
3789 }
3790 div {
3791 db.copyright.role.attribute = attribute role { text }
3792 db.copyright.attlist =
3793 db.copyright.role.attribute?
3794 & db.common.attributes
3795 & db.common.linking.attributes
3796 db.copyright =
3797
3798 ## Copyright information about a document
3799 element copyright { db.copyright.attlist, db.year+, db.holder* }
3800 }
3801 div {
3802 db.year.role.attribute = attribute role { text }
3803 db.year.attlist =
3804 db.year.role.attribute?
3805 & db.common.attributes
3806 & db.common.linking.attributes
3807 db.year =
3808
3809 ## The year of publication of a document
3810 element year { db.year.attlist, db._text }
3811 }
3812 div {
3813 db.holder.role.attribute = attribute role { text }
3814 db.holder.attlist =
3815 db.holder.role.attribute?
3816 & db.common.attributes
3817 & db.common.linking.attributes
3818 db.holder =
3819
3820 ## The name of the individual or organization that holds a copyright
3821 element holder { db.holder.attlist, db._text }
3822 }
3823 db.cover.contentmodel =
3824 (db.para.blocks
3825 | db.extension.blocks
3826 | db.list.blocks
3827 | db.informal.blocks
3828 | db.publishing.blocks
3829 | db.graphic.blocks
3830 | db.technical.blocks
3831 | db.verbatim.blocks
3832 | db.bridgehead
3833 | db.remark
3834 | db.revhistory)
3835 | db.synopsis.blocks
3836 div {
3837 db.cover.role.attribute = attribute role { text }
3838 db.cover.attlist =
3839 db.cover.role.attribute?
3840 & db.common.attributes
3841 & db.common.linking.attributes
3842 db.cover =
3843
3844 ## Additional content for the cover of a publication
3845 element cover { db.cover.attlist, db.cover.contentmodel+ }
3846 }
3847 db.date.contentmodel =
3848 xsd:date | xsd:dateTime | xsd:gYearMonth | xsd:gYear | text
3849 div {
3850 db.date.role.attribute = attribute role { text }
3851 db.date.attlist =
3852 db.date.role.attribute?
3853 & db.common.attributes
3854 & db.common.linking.attributes
3855 db.date =
3856
3857 ## The date of publication or revision of a document
3858 element date { db.date.attlist, db.date.contentmodel }
3859 }
3860 div {
3861 db.edition.role.attribute = attribute role { text }
3862 db.edition.attlist =
3863 db.edition.role.attribute?
3864 & db.common.attributes
3865 & db.common.linking.attributes
3866 db.edition =
3867
3868 ## The name or number of an edition of a document
3869 element edition { db.edition.attlist, db._text }
3870 }
3871 div {
3872 db.editor.role.attribute = attribute role { text }
3873 db.editor.attlist =
3874 db.editor.role.attribute?
3875 & db.common.attributes
3876 & db.common.linking.attributes
3877 db.editor =
3878
3879 ## The name of the editor of a document
3880 element editor { db.editor.attlist, db.credit.contentmodel }
3881 }
3882 div {
3883 db.biblioid.role.attribute = attribute role { text }
3884 db.biblioid.attlist =
3885 db.biblioid.role.attribute?
3886 & db.common.attributes
3887 & db.common.linking.attributes
3888 & db.biblio.class.attribute
3889 db.biblioid =
3890
3891 ## An identifier for a document
3892 element biblioid { db.biblioid.attlist, db._text }
3893 }
3894 div {
3895 db.citebiblioid.role.attribute = attribute role { text }
3896 db.citebiblioid.attlist =
3897 db.citebiblioid.role.attribute?
3898 & db.common.attributes
3899 & db.common.linking.attributes
3900 & db.biblio.class.attribute
3901 db.citebiblioid =
3902
3903 ## A citation of a bibliographic identifier
3904 element citebiblioid { db.citebiblioid.attlist, db._text }
3905 }
3906 div {
3907 db.bibliosource.role.attribute = attribute role { text }
3908 db.bibliosource.attlist =
3909 db.bibliosource.role.attribute?
3910 & db.common.attributes
3911 & db.common.linking.attributes
3912 & db.biblio.class.attribute
3913 db.bibliosource =
3914
3915 ## The source of a document
3916 element bibliosource { db.bibliosource.attlist, db._text }
3917 }
3918 div {
3919 db.bibliorelation.type.enumeration =
3920
3921 ## The described resource pre-existed the referenced resource, which is essentially the same intellectual content presented in another format
3922 "hasformat"
3923 |
3924 ## The described resource includes the referenced resource either physically or logically
3925 "haspart"
3926 |
3927 ## The described resource has a version, edition, or adaptation, namely, the referenced resource
3928 "hasversion"
3929 |
3930 ## The described resource is the same intellectual content of the referenced resource, but presented in another format
3931 "isformatof"
3932 |
3933 ## The described resource is a physical or logical part of the referenced resource
3934 "ispartof"
3935 |
3936 ## The described resource is referenced, cited, or otherwise pointed to by the referenced resource
3937 "isreferencedby"
3938 |
3939 ## The described resource is supplanted, displaced, or superceded by the referenced resource
3940 "isreplacedby"
3941 |
3942 ## The described resource is required by the referenced resource, either physically or logically
3943 "isrequiredby"
3944 |
3945 ## The described resource is a version, edition, or adaptation of the referenced resource; changes in version imply substantive changes in content rather than differences in format
3946 "isversionof"
3947 |
3948 ## The described resource references, cites, or otherwise points to the referenced resource
3949 "references"
3950 |
3951 ## The described resource supplants, displaces, or supersedes the referenced resource
3952 "replaces"
3953 |
3954 ## The described resource requires the referenced resource to support its function, delivery, or coherence of content
3955 "requires"
3956 db.bibliorelation.type-enum.attribute =
3957
3958 ## Identifies the type of relationship
3959 attribute type { db.bibliorelation.type.enumeration }?
3960 db.bibliorelation.type-other.attributes =
3961
3962 ## Identifies the type of relationship
3963 attribute type {
3964
3965 ## The described resource has a non-standard relationship with the referenced resource
3966 "othertype"
3967 }?,
3968
3969 ## A keyword that identififes the type of the non-standard relationship
3970 attribute othertype { xsd:NMTOKEN }
3971 db.bibliorelation.type.attribute =
3972 db.bibliorelation.type-enum.attribute
3973 | db.bibliorelation.type-other.attributes
3974 db.bibliorelation.role.attribute = attribute role { text }
3975 db.bibliorelation.attlist =
3976 db.bibliorelation.role.attribute?
3977 & db.common.attributes
3978 & db.common.linking.attributes
3979 & db.biblio.class.attribute
3980 & db.bibliorelation.type.attribute
3981 db.bibliorelation =
3982
3983 ## The relationship of a document to another
3984 element bibliorelation { db.bibliorelation.attlist, db._text }
3985 }
3986 div {
3987 db.bibliocoverage.spacial.enumeration =
3988
3989 ## The DCMI Point identifies a point in space using its geographic coordinates
3990 "dcmipoint"
3991 |
3992 ## ISO 3166 Codes for the representation of names of countries
3993 "iso3166"
3994 |
3995 ## The DCMI Box identifies a region of space using its geographic limits
3996 "dcmibox"
3997 |
3998 ## The Getty Thesaurus of Geographic Names
3999 "tgn"
4000 db.bibliocoverage.spatial-enum.attribute =
4001
4002 ## Specifies the type of spatial coverage
4003 attribute spatial { db.bibliocoverage.spacial.enumeration }?
4004 db.bibliocoverage.spatial-other.attributes =
4005
4006 ## Specifies the type of spatial coverage
4007 attribute spatial {
4008
4009 ## Identifies a non-standard type of coverage
4010 "otherspatial"
4011 }?,
4012
4013 ## A keyword that identifies the type of non-standard coverage
4014 attribute otherspatial { xsd:NMTOKEN }
4015 db.bibliocoverage.spatial.attribute =
4016 db.bibliocoverage.spatial-enum.attribute
4017 | db.bibliocoverage.spatial-other.attributes
4018 db.bibliocoverage.temporal.enumeration =
4019
4020 ## A specification of the limits of a time interval
4021 "dcmiperiod"
4022 |
4023 ## W3C Encoding rules for dates and times—a profile based on ISO 8601
4024 "w3c-dtf"
4025 db.bibliocoverage.temporal-enum.attribute =
4026
4027 ## Specifies the type of temporal coverage
4028 attribute temporal { db.bibliocoverage.temporal.enumeration }?
4029 db.bibliocoverage.temporal-other.attributes =
4030
4031 ## Specifies the type of temporal coverage
4032 attribute temporal {
4033
4034 ## Specifies a non-standard type of coverage
4035 "othertemporal"
4036 }?,
4037
4038 ## A keyword that identifies the type of non-standard coverage
4039 attribute othertemporal { xsd:NMTOKEN }
4040 db.bibliocoverage.temporal.attribute =
4041 db.bibliocoverage.temporal-enum.attribute
4042 | db.bibliocoverage.temporal-other.attributes
4043 db.bibliocoverage.coverage.attrib =
4044 db.bibliocoverage.spatial.attribute
4045 & db.bibliocoverage.temporal.attribute
4046 db.bibliocoverage.role.attribute = attribute role { text }
4047 db.bibliocoverage.attlist =
4048 db.bibliocoverage.role.attribute?
4049 & db.common.attributes
4050 & db.common.linking.attributes
4051 & db.bibliocoverage.coverage.attrib
4052 db.bibliocoverage =
4053
4054 ## The spatial or temporal coverage of a document
4055 element bibliocoverage { db.bibliocoverage.attlist, db._text }
4056 }
4057 div {
4058 db.legalnotice.role.attribute = attribute role { text }
4059 db.legalnotice.attlist =
4060 db.legalnotice.role.attribute?
4061 & db.common.attributes
4062 & db.common.linking.attributes
4063 db.legalnotice.info = db._info.title.only
4064 db.legalnotice =
4065
4066 ## A statement of legal obligations or requirements
4067 [
4068 s:pattern [
4069 name = "Root must have version"
4070 "\x{a}" ~
4071 " "
4072 s:rule [
4073 context = "/db:legalnotice"
4074 "\x{a}" ~
4075 " "
4076 s:assert [
4077 test = "@version"
4078 "If this element is the root element, it must have a version attribute."
4079 ]
4080 "\x{a}" ~
4081 " "
4082 ]
4083 "\x{a}" ~
4084 " "
4085 ]
4086 ]
4087 element legalnotice {
4088 db.legalnotice.attlist, db.legalnotice.info, db.all.blocks+
4089 }
4090 }
4091 div {
4092 db.othercredit.class.enumeration =
4093
4094 ## A copy editor
4095 "copyeditor"
4096 |
4097 ## A graphic designer
4098 "graphicdesigner"
4099 |
4100 ## Some other contributor
4101 "other"
4102 |
4103 ## A production editor
4104 "productioneditor"
4105 |
4106 ## A technical editor
4107 "technicaleditor"
4108 |
4109 ## A translator
4110 "translator"
4111 |
4112 ## An indexer
4113 "indexer"
4114 |
4115 ## A proof-reader
4116 "proofreader"
4117 |
4118 ## A cover designer
4119 "coverdesigner"
4120 |
4121 ## An interior designer
4122 "interiordesigner"
4123 |
4124 ## An illustrator
4125 "illustrator"
4126 |
4127 ## A reviewer
4128 "reviewer"
4129 |
4130 ## A typesetter
4131 "typesetter"
4132 |
4133 ## A converter (a persons responsible for conversion, not an application)
4134 "conversion"
4135 db.othercredit.class-enum.attribute =
4136
4137 ## Identifies the nature of the contributor
4138 attribute class { db.othercredit.class.enumeration }?
4139 db.othercredit.class-other.attribute =
4140
4141 ## Identifies the nature of the non-standard contribution
4142 attribute otherclass { xsd:NMTOKEN }
4143 db.othercredit.class-other.attributes =
4144
4145 ## Identifies the nature of the contributor
4146 attribute class {
4147
4148 ## Identifies a non-standard contribution
4149 "other"
4150 }
4151 & db.othercredit.class-other.attribute
4152 db.othercredit.class.attribute =
4153 db.othercredit.class-enum.attribute
4154 | db.othercredit.class-other.attributes
4155 db.othercredit.role.attribute = attribute role { text }
4156 db.othercredit.attlist =
4157 db.othercredit.role.attribute?
4158 & db.common.attributes
4159 & db.common.linking.attributes
4160 & db.othercredit.class.attribute
4161 db.othercredit =
4162
4163 ## A person or entity, other than an author or editor, credited in a document
4164 element othercredit {
4165 db.othercredit.attlist, db.credit.contentmodel
4166 }
4167 }
4168 div {
4169 db.pagenums.role.attribute = attribute role { text }
4170 db.pagenums.attlist =
4171 db.pagenums.role.attribute?
4172 & db.common.attributes
4173 & db.common.linking.attributes
4174 db.pagenums =
4175
4176 ## The numbers of the pages in a book, for use in a bibliographic entry
4177 element pagenums { db.pagenums.attlist, db._text }
4178 }
4179 div {
4180 db.contrib.role.attribute = attribute role { text }
4181 db.contrib.attlist =
4182 db.contrib.role.attribute?
4183 & db.common.attributes
4184 & db.common.linking.attributes
4185 db.contrib =
4186
4187 ## A summary of the contributions made to a document by a credited source
4188 element contrib { db.contrib.attlist, db.all.inlines* }
4189 }
4190 div {
4191 db.honorific.role.attribute = attribute role { text }
4192 db.honorific.attlist =
4193 db.honorific.role.attribute?
4194 & db.common.attributes
4195 & db.common.linking.attributes
4196 db.honorific =
4197
4198 ## The title of a person
4199 element honorific { db.honorific.attlist, db._text }
4200 }
4201 div {
4202 db.firstname.role.attribute = attribute role { text }
4203 db.firstname.attlist =
4204 db.firstname.role.attribute?
4205 & db.common.attributes
4206 & db.common.linking.attributes
4207 db.firstname =
4208
4209 ## A given name of a person
4210 element firstname { db.firstname.attlist, db._text }
4211 }
4212 div {
4213 db.givenname.role.attribute = attribute role { text }
4214 db.givenname.attlist =
4215 db.givenname.role.attribute?
4216 & db.common.attributes
4217 & db.common.linking.attributes
4218 db.givenname =
4219
4220 ## The given name of a person
4221 element givenname { db.givenname.attlist, db._text }
4222 }
4223 div {
4224 db.surname.role.attribute = attribute role { text }
4225 db.surname.attlist =
4226 db.surname.role.attribute?
4227 & db.common.attributes
4228 & db.common.linking.attributes
4229 db.surname =
4230
4231 ## An inherited or family name; in western cultures the last name
4232 element surname { db.surname.attlist, db._text }
4233 }
4234 div {
4235 db.lineage.role.attribute = attribute role { text }
4236 db.lineage.attlist =
4237 db.lineage.role.attribute?
4238 & db.common.attributes
4239 & db.common.linking.attributes
4240 db.lineage =
4241
4242 ## The portion of a person's name indicating a relationship to ancestors
4243 element lineage { db.lineage.attlist, db._text }
4244 }
4245 div {
4246 db.othername.role.attribute = attribute role { text }
4247 db.othername.attlist =
4248 db.othername.role.attribute?
4249 & db.common.attributes
4250 & db.common.linking.attributes
4251 db.othername =
4252
4253 ## A component of a person's name that is not a first name, surname, or lineage
4254 element othername { db.othername.attlist, db._text }
4255 }
4256 div {
4257 db.printhistory.role.attribute = attribute role { text }
4258 db.printhistory.attlist =
4259 db.printhistory.role.attribute?
4260 & db.common.attributes
4261 & db.common.linking.attributes
4262 db.printhistory =
4263
4264 ## The printing history of a document
4265 element printhistory { db.printhistory.attlist, db.para.blocks+ }
4266 }
4267 div {
4268 db.pubdate.role.attribute = attribute role { text }
4269 db.pubdate.attlist =
4270 db.pubdate.role.attribute?
4271 & db.common.attributes
4272 & db.common.linking.attributes
4273 db.pubdate =
4274
4275 ## The date of publication of a document
4276 element pubdate { db.pubdate.attlist, db.date.contentmodel }
4277 }
4278 div {
4279 db.publisher.role.attribute = attribute role { text }
4280 db.publisher.attlist =
4281 db.publisher.role.attribute?
4282 & db.common.attributes
4283 & db.common.linking.attributes
4284 db.publisher =
4285
4286 ## The publisher of a document
4287 element publisher {
4288 db.publisher.attlist, db.publishername, db.address*
4289 }
4290 }
4291 div {
4292 db.publishername.role.attribute = attribute role { text }
4293 db.publishername.attlist =
4294 db.publishername.role.attribute?
4295 & db.common.attributes
4296 & db.common.linking.attributes
4297 db.publishername =
4298
4299 ## The name of the publisher of a document
4300 element publishername { db.publishername.attlist, db._text }
4301 }
4302 div {
4303 db.releaseinfo.role.attribute = attribute role { text }
4304 db.releaseinfo.attlist =
4305 db.releaseinfo.role.attribute?
4306 & db.common.attributes
4307 & db.common.linking.attributes
4308 db.releaseinfo =
4309
4310 ## Information about a particular release of a document
4311 element releaseinfo { db.releaseinfo.attlist, db._text }
4312 }
4313 div {
4314 db.revhistory.role.attribute = attribute role { text }
4315 db.revhistory.attlist =
4316 db.revhistory.role.attribute?
4317 & db.common.attributes
4318 & db.common.linking.attributes
4319 db.revhistory.info = db._info.title.only
4320 db.revhistory =
4321
4322 ## A history of the revisions to a document
4323 [
4324 s:pattern [
4325 name = "Root must have version"
4326 "\x{a}" ~
4327 " "
4328 s:rule [
4329 context = "/db:revhistory"
4330 "\x{a}" ~
4331 " "
4332 s:assert [
4333 test = "@version"
4334 "If this element is the root element, it must have a version attribute."
4335 ]
4336 "\x{a}" ~
4337 " "
4338 ]
4339 "\x{a}" ~
4340 " "
4341 ]
4342 ]
4343 element revhistory {
4344 db.revhistory.attlist, db.revhistory.info, db.revision+
4345 }
4346 }
4347 div {
4348 db.revision.role.attribute = attribute role { text }
4349 db.revision.attlist =
4350 db.revision.role.attribute?
4351 & db.common.attributes
4352 & db.common.linking.attributes
4353 db.revision =
4354
4355 ## An entry describing a single revision in the history of the revisions to a document
4356 element revision {
4357 db.revision.attlist,
4358 db.revnumber?,
4359 db.date,
4360 (db.authorinitials | db.author)*,
4361 (db.revremark | db.revdescription)?
4362 }
4363 }
4364 div {
4365 db.revnumber.role.attribute = attribute role { text }
4366 db.revnumber.attlist =
4367 db.revnumber.role.attribute?
4368 & db.common.attributes
4369 & db.common.linking.attributes
4370 db.revnumber =
4371
4372 ## A document revision number
4373 element revnumber { db.revnumber.attlist, db._text }
4374 }
4375 div {
4376 db.revremark.role.attribute = attribute role { text }
4377 db.revremark.attlist =
4378 db.revremark.role.attribute?
4379 & db.common.attributes
4380 & db.common.linking.attributes
4381 db.revremark =
4382
4383 ## A description of a revision to a document
4384 element revremark { db.revremark.attlist, db._text }
4385 }
4386 div {
4387 db.revdescription.role.attribute = attribute role { text }
4388 db.revdescription.attlist =
4389 db.revdescription.role.attribute?
4390 & db.common.attributes
4391 & db.common.linking.attributes
4392 db.revdescription =
4393
4394 ## A extended description of a revision to a document
4395 element revdescription { db.revdescription.attlist, db.all.blocks* }
4396 }
4397 div {
4398 db.seriesvolnums.role.attribute = attribute role { text }
4399 db.seriesvolnums.attlist =
4400 db.seriesvolnums.role.attribute?
4401 & db.common.attributes
4402 & db.common.linking.attributes
4403 db.seriesvolnums =
4404
4405 ## Numbers of the volumes in a series of books
4406 element seriesvolnums { db.seriesvolnums.attlist, db._text }
4407 }
4408 div {
4409 db.volumenum.role.attribute = attribute role { text }
4410 db.volumenum.attlist =
4411 db.volumenum.role.attribute?
4412 & db.common.attributes
4413 & db.common.linking.attributes
4414 db.volumenum =
4415
4416 ## The volume number of a document in a set (as of books in a set or articles in a journal)
4417 element volumenum { db.volumenum.attlist, db._text }
4418 }
4419 div {
4420 db.issuenum.role.attribute = attribute role { text }
4421 db.issuenum.attlist =
4422 db.issuenum.role.attribute?
4423 & db.common.attributes
4424 & db.common.linking.attributes
4425 db.issuenum =
4426
4427 ## The number of an issue of a journal
4428 element issuenum { db.issuenum.attlist, db._text }
4429 }
4430 div {
4431 db.package.role.attribute = attribute role { text }
4432 db.package.attlist =
4433 db.package.role.attribute?
4434 & db.common.attributes
4435 & db.common.linking.attributes
4436 db.package =
4437
4438 ## A software or application package
4439 element package { db.package.attlist, db._text }
4440 }
4441 div {
4442 db.email.role.attribute = attribute role { text }
4443 db.email.attlist =
4444 db.email.role.attribute?
4445 & db.common.attributes
4446 & db.common.linking.attributes
4447 db.email =
4448
4449 ## An email address
4450 element email { db.email.attlist, db._text }
4451 }
4452 div {
4453 db.lineannotation.role.attribute = attribute role { text }
4454 db.lineannotation.attlist =
4455 db.lineannotation.role.attribute?
4456 & db.common.attributes
4457 & db.common.linking.attributes
4458 db.lineannotation =
4459
4460 ## A comment on a line in a verbatim listing
4461 element lineannotation { db.lineannotation.attlist, db._text }
4462 }
4463 div {
4464 db.parameter.class.enumeration =
4465
4466 ## A command
4467 "command"
4468 |
4469 ## A function
4470 "function"
4471 |
4472 ## An option
4473 "option"
4474 db.parameter.class.attribute =
4475
4476 ## Identifies the class of parameter
4477 attribute class { db.parameter.class.enumeration }
4478 db.parameter.role.attribute = attribute role { text }
4479 db.parameter.attlist =
4480 db.parameter.role.attribute?
4481 & db.common.attributes
4482 & db.common.linking.attributes
4483 & db.parameter.class.attribute?
4484 db.parameter =
4485
4486 ## A value or a symbolic reference to a value
4487 element parameter { db.parameter.attlist, db._text }
4488 }
4489 db.replaceable.inlines = db._text | db.co
4490 div {
4491 db.replaceable.class.enumeration =
4492
4493 ## A command
4494 "command"
4495 |
4496 ## A function
4497 "function"
4498 |
4499 ## An option
4500 "option"
4501 |
4502 ## A parameter
4503 "parameter"
4504 db.replaceable.class.attribute =
4505
4506 ## Identifies the nature of the replaceable text
4507 attribute class { db.replaceable.class.enumeration }
4508 db.replaceable.role.attribute = attribute role { text }
4509 db.replaceable.attlist =
4510 db.replaceable.role.attribute?
4511 & db.common.attributes
4512 & db.common.linking.attributes
4513 & db.replaceable.class.attribute?
4514 db.replaceable =
4515
4516 ## Content that may or must be replaced by the user
4517 element replaceable {
4518 db.replaceable.attlist, db.replaceable.inlines*
4519 }
4520 }
4521 div {
4522 db.uri.type.attribute =
4523
4524 ## Identifies the type of URI specified
4525 attribute type { text }?
4526 db.uri.role.attribute = attribute role { text }
4527 db.uri.attlist =
4528 db.uri.role.attribute?
4529 & db.common.attributes
4530 & db.common.linking.attributes
4531 & db.uri.type.attribute
4532 db.uri =
4533
4534 ## A Uniform Resource Identifier
4535 element uri { db.uri.attlist, db._text }
4536 }
4537 div {
4538 db.abbrev.role.attribute = attribute role { text }
4539 db.abbrev.attlist =
4540 db.abbrev.role.attribute?
4541 & db.common.attributes
4542 & db.common.linking.attributes
4543 db.abbrev =
4544
4545 ## An abbreviation, especially one followed by a period
4546 element abbrev {
4547 db.abbrev.attlist,
4548 (db._text | db.superscript | db.subscript | db.trademark)*
4549 }
4550 }
4551 div {
4552 db.acronym.role.attribute = attribute role { text }
4553 db.acronym.attlist =
4554 db.acronym.role.attribute?
4555 & db.common.attributes
4556 & db.common.linking.attributes
4557 db.acronym =
4558
4559 ## An often pronounceable word made from the initial (or selected) letters of a name or phrase
4560 element acronym {
4561 db.acronym.attlist,
4562 (db._text | db.superscript | db.subscript | db.trademark)*
4563 }
4564 }
4565 div {
4566 db.citation.role.attribute = attribute role { text }
4567 db.citation.attlist =
4568 db.citation.role.attribute?
4569 & db.common.attributes
4570 & db.common.linking.attributes
4571 db.citation =
4572
4573 ## An inline bibliographic reference to another published work
4574 element citation { db.citation.attlist, db.all.inlines* }
4575 }
4576 div {
4577 db.citerefentry.role.attribute = attribute role { text }
4578 db.citerefentry.attlist =
4579 db.citerefentry.role.attribute?
4580 & db.common.attributes
4581 & db.common.linking.attributes
4582 db.citerefentry =
4583
4584 ## A citation to a reference page
4585 element citerefentry {
4586 db.citerefentry.attlist, db.refentrytitle, db.manvolnum?
4587 }
4588 }
4589 div {
4590 db.refentrytitle.role.attribute = attribute role { text }
4591 db.refentrytitle.attlist =
4592 db.refentrytitle.role.attribute?
4593 & db.common.attributes
4594 & db.common.linking.attributes
4595 db.refentrytitle =
4596
4597 ## The title of a reference page
4598 element refentrytitle { db.refentrytitle.attlist, db.all.inlines* }
4599 }
4600 div {
4601 db.manvolnum.role.attribute = attribute role { text }
4602 db.manvolnum.attlist =
4603 db.manvolnum.role.attribute?
4604 & db.common.attributes
4605 & db.common.linking.attributes
4606 db.manvolnum =
4607
4608 ## A reference volume number
4609 element manvolnum { db.manvolnum.attlist, db._text }
4610 }
4611 div {
4612 db.citetitle.pubwork.enumeration =
4613
4614 ## An article
4615 "article"
4616 |
4617 ## A bulletin board system
4618 "bbs"
4619 |
4620 ## A book
4621 "book"
4622 |
4623 ## A CD-ROM
4624 "cdrom"
4625 |
4626 ## A chapter (as of a book)
4627 "chapter"
4628 |
4629 ## A DVD
4630 "dvd"
4631 |
4632 ## An email message
4633 "emailmessage"
4634 |
4635 ## A gopher page
4636 "gopher"
4637 |
4638 ## A journal
4639 "journal"
4640 |
4641 ## A manuscript
4642 "manuscript"
4643 |
4644 ## A posting to a newsgroup
4645 "newsposting"
4646 |
4647 ## A part (as of a book)
4648 "part"
4649 |
4650 ## A reference entry
4651 "refentry"
4652 |
4653 ## A section (as of a book or article)
4654 "section"
4655 |
4656 ## A series
4657 "series"
4658 |
4659 ## A set (as of books)
4660 "set"
4661 |
4662 ## A web page
4663 "webpage"
4664 |
4665 ## A wiki page
4666 "wiki"
4667 db.citetitle.pubwork.attribute =
4668
4669 ## Identifies the nature of the publication being cited
4670 attribute pubwork { db.citetitle.pubwork.enumeration }
4671 db.citetitle.role.attribute = attribute role { text }
4672 db.citetitle.attlist =
4673 db.citetitle.role.attribute?
4674 & db.common.attributes
4675 & db.common.linking.attributes
4676 & db.citetitle.pubwork.attribute?
4677 db.citetitle =
4678
4679 ## The title of a cited work
4680 element citetitle { db.citetitle.attlist, db.all.inlines* }
4681 }
4682 div {
4683 db.emphasis.role.attribute = attribute role { text }
4684 db.emphasis.attlist =
4685 db.emphasis.role.attribute?
4686 & db.common.attributes
4687 & db.common.linking.attributes
4688 db.emphasis =
4689
4690 ## Emphasized text
4691 element emphasis { db.emphasis.attlist, db.all.inlines* }
4692 }
4693 div {
4694 db._emphasis =
4695
4696 ## A limited span of emphasized text
4697 element emphasis { db.emphasis.attlist, db._text }
4698 }
4699 div {
4700 db.foreignphrase.role.attribute = attribute role { text }
4701 db.foreignphrase.attlist =
4702 db.foreignphrase.role.attribute?
4703 & db.common.attributes
4704 & db.common.linking.attributes
4705 db.foreignphrase =
4706
4707 ## A word or phrase in a language other than the primary language of the document
4708 element foreignphrase {
4709 db.foreignphrase.attlist, (text | db.general.inlines)*
4710 }
4711 }
4712 div {
4713 db._foreignphrase.role.attribute = attribute role { text }
4714 db._foreignphrase.attlist =
4715 db._foreignphrase.role.attribute?
4716 & db.common.attributes
4717 & db.common.linking.attributes
4718 db._foreignphrase =
4719
4720 ## A limited word or phrase in a language other than the primary language of the document
4721 element foreignphrase { db._foreignphrase.attlist, db._text }
4722 }
4723 div {
4724 db.phrase.role.attribute = attribute role { text }
4725 db.phrase.attlist =
4726 db.phrase.role.attribute?
4727 & db.common.attributes
4728 & db.common.linking.attributes
4729 db.phrase =
4730
4731 ## A span of text
4732 element phrase { db.phrase.attlist, db.all.inlines* }
4733 }
4734 div {
4735 db._phrase =
4736
4737 ## A limited span of text
4738 element phrase { db.phrase.attlist, db._text }
4739 }
4740 div {
4741 db.quote.role.attribute = attribute role { text }
4742 db.quote.attlist =
4743 db.quote.role.attribute?
4744 & db.common.attributes
4745 & db.common.linking.attributes
4746 db.quote =
4747
4748 ## An inline quotation
4749 element quote { db.quote.attlist, db.all.inlines* }
4750 }
4751 div {
4752 db._quote.role.attribute = attribute role { text }
4753 db._quote.attlist =
4754 db._quote.role.attribute?
4755 & db.common.attributes
4756 & db.common.linking.attributes
4757 db._quote =
4758
4759 ## A limited inline quotation
4760 element quote { db._quote.attlist, db._text }
4761 }
4762 div {
4763 db.subscript.role.attribute = attribute role { text }
4764 db.subscript.attlist =
4765 db.subscript.role.attribute?
4766 & db.common.attributes
4767 & db.common.linking.attributes
4768 db.subscript =
4769
4770 ## A subscript (as in H2
4771 ## O, the molecular formula for water)
4772 element subscript { db.subscript.attlist, db._text }
4773 }
4774 div {
4775 db.superscript.role.attribute = attribute role { text }
4776 db.superscript.attlist =
4777 db.superscript.role.attribute?
4778 & db.common.attributes
4779 & db.common.linking.attributes
4780 db.superscript =
4781
4782 ## A superscript (as in x2
4783 ## , the mathematical notation for x multiplied by itself)
4784 element superscript { db.superscript.attlist, db._text }
4785 }
4786 div {
4787 db.trademark.class.enumeration =
4788
4789 ## A copyright
4790 "copyright"
4791 |
4792 ## A registered copyright
4793 "registered"
4794 |
4795 ## A service
4796 "service"
4797 |
4798 ## A trademark
4799 "trade"
4800 db.trademark.class.attribute =
4801
4802 ## Identifies the class of trade mark
4803 attribute class { db.trademark.class.enumeration }
4804 db.trademark.role.attribute = attribute role { text }
4805 db.trademark.attlist =
4806 db.trademark.role.attribute?
4807 & db.common.attributes
4808 & db.common.linking.attributes
4809 & db.trademark.class.attribute?
4810 db.trademark =
4811
4812 ## A trademark
4813 element trademark { db.trademark.attlist, db._text }
4814 }
4815 div {
4816 db.wordasword.role.attribute = attribute role { text }
4817 db.wordasword.attlist =
4818 db.wordasword.role.attribute?
4819 & db.common.attributes
4820 & db.common.linking.attributes
4821 db.wordasword =
4822
4823 ## A word meant specifically as a word and not representing anything else
4824 element wordasword { db.wordasword.attlist, db._text }
4825 }
4826 div {
4827 db.footnoteref.role.attribute = attribute role { text }
4828 db.footnoteref.label.attribute = db.label.attribute
4829 db.footnoteref.attlist =
4830 db.footnoteref.role.attribute?
4831 & db.common.attributes
4832 & db.linkend.attribute
4833 & db.footnoteref.label.attribute?
4834 db.footnoteref =
4835
4836 ## A cross reference to a footnote (a footnote mark)
4837 [
4838 s:pattern [
4839 name = "Footnote reference type constraint"
4840 "\x{a}" ~
4841 " "
4842 s:rule [
4843 context = "db:footnoteref"
4844 "\x{a}" ~
4845 " "
4846 s:assert [
4847 test =
4848 "local-name(//*[@xml:id=current()/@linkend]) = 'footnote' and namespace-uri(//*[@xml:id=current()/@linkend]) = 'http://docbook.org/ns/docbook'"
4849 "@linkend on footnoteref must point to a footnote."
4850 ]
4851 "\x{a}" ~
4852 " "
4853 ]
4854 "\x{a}" ~
4855 " "
4856 ]
4857 ]
4858 element footnoteref { db.footnoteref.attlist, empty }
4859 }
4860 div {
4861 db.xref.role.attribute = attribute role { text }
4862 db.xref.xrefstyle.attribute = db.xrefstyle.attribute
4863 db.xref.endterm.attribute = db.endterm.attribute
4864 db.xref.attlist =
4865 db.xref.role.attribute?
4866 & db.common.attributes
4867 & db.common.req.linking.attributes
4868 & db.xref.xrefstyle.attribute?
4869 & db.xref.endterm.attribute?
4870 db.xref =
4871
4872 ## A cross reference to another part of the document
4873 element xref { db.xref.attlist, empty }
4874 }
4875 div {
4876 db.link.role.attribute = attribute role { text }
4877 db.link.xrefstyle.attribute = db.xrefstyle.attribute
4878 db.link.endterm.attribute = db.endterm.attribute
4879 db.link.attlist =
4880 db.link.role.attribute?
4881 & db.common.attributes
4882 & db.common.req.linking.attributes
4883 & db.link.xrefstyle.attribute?
4884 & db.link.endterm.attribute?
4885 db.link =
4886
4887 ## A hypertext link
4888 element link { db.link.attlist, db.all.inlines* }
4889 }
4890 div {
4891 db.olink.role.attribute = attribute role { text }
4892 db.olink.xrefstyle.attribute = db.xrefstyle.attribute
4893 db.olink.localinfo.attribute =
4894
4895 ## Holds additional information that may be used by the application when resolving the link
4896 attribute localinfo { text }
4897 db.olink.targetdoc.attribute =
4898
4899 ## Specifies the URI of the document in which the link target appears
4900 attribute targetdoc { xsd:anyURI }
4901 db.olink.targetptr.attribute =
4902
4903 ## Specifies the location of the link target in the document
4904 attribute targetptr { text }
4905 db.olink.type.attribute =
4906
4907 ## Identifies application-specific customization of the link behavior
4908 attribute type { text }
4909 db.olink.attlist =
4910 db.common.attributes
4911 & db.olink.targetdoc.attribute?
4912 & db.olink.role.attribute?
4913 & db.olink.xrefstyle.attribute?
4914 & db.olink.localinfo.attribute?
4915 & db.olink.targetptr.attribute?
4916 & db.olink.type.attribute?
4917 db.olink =
4918
4919 ## A link that addresses its target indirectly
4920 element olink { db.olink.attlist, db.all.inlines* }
4921 }
4922 div {
4923 db.anchor.role.attribute = attribute role { text }
4924 db.anchor.attlist =
4925 db.anchor.role.attribute? & db.common.idreq.attributes
4926 db.anchor =
4927
4928 ## A spot in the document
4929 element anchor { db.anchor.attlist, empty }
4930 }
4931 div {
4932 db.alt.role.attribute = attribute role { text }
4933 db.alt.attlist = db.alt.role.attribute? & db.common.attributes
4934 db.alt =
4935
4936 ## A text-only annotation, often used for accessibility
4937 element alt { db.alt.attlist, (text | db.inlinemediaobject)* }
4938 }
4939 db.status.attribute =
4940
4941 ## Identifies the editorial or publication status of the element on which it occurs
4942 attribute status { text }
4943 db.toplevel.sections =
4944 ((db.section+, db.simplesect*) | db.simplesect+)
4945 | (db.sect1+, db.simplesect*)
4946 | db.refentry+
4947 db.toplevel.blocks.or.sections =
4948 (db.all.blocks+, db.toplevel.sections?) | db.toplevel.sections
4949 db.recursive.sections =
4950 ((db.section+, db.simplesect*) | db.simplesect+)
4951 | db.refentry+
4952 db.recursive.blocks.or.sections =
4953 (db.all.blocks+, db.recursive.sections?) | db.recursive.sections
4954 db.divisions = db.part | db.reference
4955 db.components =
4956 db.dedication
4957 | db.acknowledgements
4958 | db.preface
4959 | db.chapter
4960 | db.appendix
4961 | db.article
4962 | db.colophon
4963 db.navigation.components =
4964 notAllowed | db.glossary | db.bibliography | db.index | db.toc
4965 db.component.contentmodel =
4966 db.navigation.components*,
4967 db.toplevel.blocks.or.sections,
4968 db.navigation.components*
4969 db.setindex.components = notAllowed | db.setindex
4970 db.toc.components = notAllowed | db.toc
4971 db.set.components = db.set | db.book
4972 div {
4973 db.set.status.attribute = db.status.attribute
4974 db.set.role.attribute = attribute role { text }
4975 db.set.attlist =
4976 db.set.role.attribute?
4977 & db.common.attributes
4978 & db.common.linking.attributes
4979 & db.label.attribute?
4980 & db.set.status.attribute?
4981 db.set.info = db._info.title.req
4982 db.set =
4983
4984 ## A collection of books
4985 [
4986 s:pattern [
4987 name = "Root must have version"
4988 "\x{a}" ~
4989 " "
4990 s:rule [
4991 context = "/db:set"
4992 "\x{a}" ~
4993 " "
4994 s:assert [
4995 test = "@version"
4996 "If this element is the root element, it must have a version attribute."
4997 ]
4998 "\x{a}" ~
4999 " "
5000 ]
5001 "\x{a}" ~
5002 " "
5003 ]
5004 ]
5005 element set {
5006 db.set.attlist,
5007 db.set.info,
5008 db.toc.components?,
5009 db.set.components+,
5010 db.setindex.components?
5011 }
5012 }
5013 db.book.components =
5014 (db.navigation.components | db.components | db.divisions)* | db.topic*
5015 div {
5016 db.book.status.attribute = db.status.attribute
5017 db.book.role.attribute = attribute role { text }
5018 db.book.attlist =
5019 db.book.role.attribute?
5020 & db.common.attributes
5021 & db.common.linking.attributes
5022 & db.label.attribute?
5023 & db.book.status.attribute?
5024 db.book.info = db._info
5025 db.book =
5026
5027 ## A book
5028 [
5029 s:pattern [
5030 name = "Root must have version"
5031 "\x{a}" ~
5032 " "
5033 s:rule [
5034 context = "/db:book"
5035 "\x{a}" ~
5036 " "
5037 s:assert [
5038 test = "@version"
5039 "If this element is the root element, it must have a version attribute."
5040 ]
5041 "\x{a}" ~
5042 " "
5043 ]
5044 "\x{a}" ~
5045 " "
5046 ]
5047 ]
5048 element book { db.book.attlist, db.book.info, db.book.components }
5049 }
5050 div {
5051 db.dedication.status.attribute = db.status.attribute
5052 db.dedication.role.attribute = attribute role { text }
5053 db.dedication.attlist =
5054 db.dedication.role.attribute?
5055 & db.common.attributes
5056 & db.common.linking.attributes
5057 & db.label.attribute?
5058 & db.dedication.status.attribute?
5059 db.dedication.info = db._info
5060 db.dedication =
5061
5062 ## The dedication of a book or other component
5063 [
5064 s:pattern [
5065 name = "Root must have version"
5066 "\x{a}" ~
5067 " "
5068 s:rule [
5069 context = "/db:dedication"
5070 "\x{a}" ~
5071 " "
5072 s:assert [
5073 test = "@version"
5074 "If this element is the root element, it must have a version attribute."
5075 ]
5076 "\x{a}" ~
5077 " "
5078 ]
5079 "\x{a}" ~
5080 " "
5081 ]
5082 ]
5083 element dedication {
5084 db.dedication.attlist, db.dedication.info, db.all.blocks+
5085 }
5086 }
5087 div {
5088 db.acknowledgements.status.attribute = db.status.attribute
5089 db.acknowledgements.role.attribute = attribute role { text }
5090 db.acknowledgements.attlist =
5091 db.acknowledgements.role.attribute?
5092 & db.common.attributes
5093 & db.common.linking.attributes
5094 & db.label.attribute?
5095 & db.acknowledgements.status.attribute?
5096 db.acknowledgements.info = db._info
5097 db.acknowledgements =
5098
5099 ## Acknowledgements of a book or other component
5100 [
5101 s:pattern [
5102 name = "Root must have version"
5103 "\x{a}" ~
5104 " "
5105 s:rule [
5106 context = "/db:acknowledgements"
5107 "\x{a}" ~
5108 " "
5109 s:assert [
5110 test = "@version"
5111 "If this element is the root element, it must have a version attribute."
5112 ]
5113 "\x{a}" ~
5114 " "
5115 ]
5116 "\x{a}" ~
5117 " "
5118 ]
5119 ]
5120 element acknowledgements {
5121 db.acknowledgements.attlist,
5122 db.acknowledgements.info,
5123 db.all.blocks+
5124 }
5125 }
5126 div {
5127 db.colophon.status.attribute = db.status.attribute
5128 db.colophon.role.attribute = attribute role { text }
5129 db.colophon.attlist =
5130 db.colophon.role.attribute?
5131 & db.common.attributes
5132 & db.common.linking.attributes
5133 & db.label.attribute?
5134 & db.colophon.status.attribute?
5135 db.colophon.info = db._info
5136 db.colophon =
5137
5138 ## Text at the back of a book describing facts about its production
5139 [
5140 s:pattern [
5141 name = "Root must have version"
5142 "\x{a}" ~
5143 " "
5144 s:rule [
5145 context = "/db:colophon"
5146 "\x{a}" ~
5147 " "
5148 s:assert [
5149 test = "@version"
5150 "If this element is the root element, it must have a version attribute."
5151 ]
5152 "\x{a}" ~
5153 " "
5154 ]
5155 "\x{a}" ~
5156 " "
5157 ]
5158 ]
5159 element colophon {
5160 db.colophon.attlist,
5161 db.colophon.info,
5162 ((db.all.blocks+, db.simplesect*)
5163 | (db.all.blocks*, db.simplesect+))
5164 }
5165 }
5166 db.appendix.contentmodel = db.component.contentmodel | db.topic+
5167 div {
5168 db.appendix.status.attribute = db.status.attribute
5169 db.appendix.role.attribute = attribute role { text }
5170 db.appendix.attlist =
5171 db.appendix.role.attribute?
5172 & db.common.attributes
5173 & db.common.linking.attributes
5174 & db.label.attribute?
5175 & db.appendix.status.attribute?
5176 db.appendix.info = db._info.title.req
5177 db.appendix =
5178
5179 ## An appendix in a book or article
5180 [
5181 s:pattern [
5182 name = "Root must have version"
5183 "\x{a}" ~
5184 " "
5185 s:rule [
5186 context = "/db:appendix"
5187 "\x{a}" ~
5188 " "
5189 s:assert [
5190 test = "@version"
5191 "If this element is the root element, it must have a version attribute."
5192 ]
5193 "\x{a}" ~
5194 " "
5195 ]
5196 "\x{a}" ~
5197 " "
5198 ]
5199 ]
5200 element appendix {
5201 db.appendix.attlist, db.appendix.info, db.appendix.contentmodel?
5202 }
5203 }
5204 db.chapter.contentmodel = db.component.contentmodel | db.topic+
5205 div {
5206 db.chapter.status.attribute = db.status.attribute
5207 db.chapter.role.attribute = attribute role { text }
5208 db.chapter.attlist =
5209 db.chapter.role.attribute?
5210 & db.common.attributes
5211 & db.common.linking.attributes
5212 & db.label.attribute?
5213 & db.chapter.status.attribute?
5214 db.chapter.info = db._info.title.req
5215 db.chapter =
5216
5217 ## A chapter, as of a book
5218 [
5219 s:pattern [
5220 name = "Root must have version"
5221 "\x{a}" ~
5222 " "
5223 s:rule [
5224 context = "/db:chapter"
5225 "\x{a}" ~
5226 " "
5227 s:assert [
5228 test = "@version"
5229 "If this element is the root element, it must have a version attribute."
5230 ]
5231 "\x{a}" ~
5232 " "
5233 ]
5234 "\x{a}" ~
5235 " "
5236 ]
5237 ]
5238 element chapter {
5239 db.chapter.attlist, db.chapter.info, db.chapter.contentmodel?
5240 }
5241 }
5242 db.part.components =
5243 (db.navigation.components | db.components)
5244 | (db.refentry | db.reference)
5245 db.part.contentmodel = db.part.components+ | db.topic+
5246 div {
5247 db.part.status.attribute = db.status.attribute
5248 db.part.role.attribute = attribute role { text }
5249 db.part.attlist =
5250 db.part.role.attribute?
5251 & db.common.attributes
5252 & db.common.linking.attributes
5253 & db.label.attribute?
5254 & db.part.status.attribute?
5255 db.part.info = db._info.title.req
5256 db.part =
5257
5258 ## A division in a book
5259 [
5260 s:pattern [
5261 name = "Root must have version"
5262 "\x{a}" ~
5263 " "
5264 s:rule [
5265 context = "/db:part"
5266 "\x{a}" ~
5267 " "
5268 s:assert [
5269 test = "@version"
5270 "If this element is the root element, it must have a version attribute."
5271 ]
5272 "\x{a}" ~
5273 " "
5274 ]
5275 "\x{a}" ~
5276 " "
5277 ]
5278 ]
5279 element part {
5280 db.part.attlist,
5281 db.part.info,
5282 db.partintro?,
5283 db.part.contentmodel?
5284 }
5285 }
5286 div {
5287 db.preface.status.attribute = db.status.attribute
5288 db.preface.role.attribute = attribute role { text }
5289 db.preface.attlist =
5290 db.preface.role.attribute?
5291 & db.common.attributes
5292 & db.common.linking.attributes
5293 & db.label.attribute?
5294 & db.preface.status.attribute?
5295 db.preface.info = db._info.title.req
5296 db.preface =
5297
5298 ## Introductory matter preceding the first chapter of a book
5299 [
5300 s:pattern [
5301 name = "Root must have version"
5302 "\x{a}" ~
5303 " "
5304 s:rule [
5305 context = "/db:preface"
5306 "\x{a}" ~
5307 " "
5308 s:assert [
5309 test = "@version"
5310 "If this element is the root element, it must have a version attribute."
5311 ]
5312 "\x{a}" ~
5313 " "
5314 ]
5315 "\x{a}" ~
5316 " "
5317 ]
5318 ]
5319 element preface {
5320 db.preface.attlist, db.preface.info, db.component.contentmodel?
5321 }
5322 }
5323 div {
5324 db.partintro.status.attribute = db.status.attribute
5325 db.partintro.role.attribute = attribute role { text }
5326 db.partintro.attlist =
5327 db.partintro.role.attribute?
5328 & db.common.attributes
5329 & db.common.linking.attributes
5330 & db.label.attribute?
5331 & db.partintro.status.attribute?
5332 db.partintro.info = db._info
5333 db.partintro =
5334
5335 ## An introduction to the contents of a part
5336 [
5337 s:pattern [
5338 name = "Root must have version"
5339 "\x{a}" ~
5340 " "
5341 s:rule [
5342 context = "/db:partintro"
5343 "\x{a}" ~
5344 " "
5345 s:assert [
5346 test = "@version"
5347 "If this element is the root element, it must have a version attribute."
5348 ]
5349 "\x{a}" ~
5350 " "
5351 ]
5352 "\x{a}" ~
5353 " "
5354 ]
5355 ]
5356 element partintro {
5357 db.partintro.attlist,
5358 db.partintro.info,
5359 db.toplevel.blocks.or.sections?
5360 }
5361 }
5362 div {
5363 db.section.status.attribute = db.status.attribute
5364 db.section.role.attribute = attribute role { text }
5365 db.section.attlist =
5366 db.section.role.attribute?
5367 & db.common.attributes
5368 & db.common.linking.attributes
5369 & db.label.attribute?
5370 & db.section.status.attribute?
5371 db.section.info = db._info.title.req
5372 db.section =
5373
5374 ## A recursive section
5375 [
5376 s:pattern [
5377 name = "Root must have version"
5378 "\x{a}" ~
5379 " "
5380 s:rule [
5381 context = "/db:section"
5382 "\x{a}" ~
5383 " "
5384 s:assert [
5385 test = "@version"
5386 "If this element is the root element, it must have a version attribute."
5387 ]
5388 "\x{a}" ~
5389 " "
5390 ]
5391 "\x{a}" ~
5392 " "
5393 ]
5394 ]
5395 element section {
5396 db.section.attlist,
5397 db.section.info,
5398 db.recursive.blocks.or.sections?,
5399 db.navigation.components*
5400 }
5401 }
5402 div {
5403 db.simplesect.status.attribute = db.status.attribute
5404 db.simplesect.role.attribute = attribute role { text }
5405 db.simplesect.attlist =
5406 db.simplesect.role.attribute?
5407 & db.common.attributes
5408 & db.common.linking.attributes
5409 & db.label.attribute?
5410 & db.simplesect.status.attribute?
5411 db.simplesect.info = db._info.title.req
5412 db.simplesect =
5413
5414 ## A section of a document with no subdivisions
5415 [
5416 s:pattern [
5417 name = "Root must have version"
5418 "\x{a}" ~
5419 " "
5420 s:rule [
5421 context = "/db:simplesect"
5422 "\x{a}" ~
5423 " "
5424 s:assert [
5425 test = "@version"
5426 "If this element is the root element, it must have a version attribute."
5427 ]
5428 "\x{a}" ~
5429 " "
5430 ]
5431 "\x{a}" ~
5432 " "
5433 ]
5434 ]
5435 element simplesect {
5436 db.simplesect.attlist, db.simplesect.info, db.all.blocks*
5437 }
5438 }
5439 db.article.components = db.toplevel.sections
5440 db.article.navcomponents =
5441 db.navigation.components
5442 | db.acknowledgements
5443 | db.dedication
5444 | db.appendix
5445 | db.colophon
5446 div {
5447 db.article.status.attribute = db.status.attribute
5448 db.article.class.enumeration =
5449
5450 ## A collection of frequently asked questions.
5451 "faq"
5452 |
5453 ## An article in a journal or other periodical.
5454 "journalarticle"
5455 |
5456 ## A description of a product.
5457 "productsheet"
5458 |
5459 ## A specification.
5460 "specification"
5461 |
5462 ## A technical report.
5463 "techreport"
5464 |
5465 ## A white paper.
5466 "whitepaper"
5467 db.article.class.attribute =
5468
5469 ## Identifies the nature of the article
5470 attribute class { db.article.class.enumeration }
5471 db.article.role.attribute = attribute role { text }
5472 db.article.attlist =
5473 db.article.role.attribute?
5474 & db.common.attributes
5475 & db.common.linking.attributes
5476 & db.label.attribute?
5477 & db.article.status.attribute?
5478 & db.article.class.attribute?
5479 db.article.info = db._info.title.req
5480 db.article =
5481
5482 ## An article
5483 [
5484 s:pattern [
5485 name = "Root must have version"
5486 "\x{a}" ~
5487 " "
5488 s:rule [
5489 context = "/db:article"
5490 "\x{a}" ~
5491 " "
5492 s:assert [
5493 test = "@version"
5494 "If this element is the root element, it must have a version attribute."
5495 ]
5496 "\x{a}" ~
5497 " "
5498 ]
5499 "\x{a}" ~
5500 " "
5501 ]
5502 ]
5503 element article {
5504 db.article.attlist,
5505 db.article.info,
5506 db.article.navcomponents*,
5507 ((db.all.blocks+, db.article.components?)
5508 | db.article.components),
5509 db.article.navcomponents*
5510 }
5511 }
5512 db.annotations.attribute =
5513
5514 ## Identifies one or more annotations that apply to this element
5515 attribute annotations { text }
5516 div {
5517 db.annotation.role.attribute = attribute role { text }
5518 db.annotation.annotates.attribute =
5519
5520 ## Identifies one ore more elements to which this annotation applies
5521 attribute annotates { text }
5522 db.annotation.attlist =
5523 db.annotation.role.attribute?
5524 & db.annotation.annotates.attribute?
5525 & db.common.attributes
5526 db.annotation.info = db._info.title.only
5527 db.annotation =
5528
5529 ## An annotation
5530 [
5531 s:pattern [
5532 name = "Element exclusion"
5533 "\x{a}" ~
5534 " "
5535 s:rule [
5536 context = "db:annotation"
5537 "\x{a}" ~
5538 " "
5539 s:assert [
5540 test = "not(.//db:annotation)"
5541 "annotation must not occur among the children or descendants of annotation"
5542 ]
5543 "\x{a}" ~
5544 " "
5545 ]
5546 "\x{a}" ~
5547 " "
5548 ]
5549 s:pattern [
5550 name = "Root must have version"
5551 "\x{a}" ~
5552 " "
5553 s:rule [
5554 context = "/db:annotation"
5555 "\x{a}" ~
5556 " "
5557 s:assert [
5558 test = "@version"
5559 "If this element is the root element, it must have a version attribute."
5560 ]
5561 "\x{a}" ~
5562 " "
5563 ]
5564 "\x{a}" ~
5565 " "
5566 ]
5567 ]
5568 element annotation {
5569 db.annotation.attlist, db.annotation.info, db.all.blocks+
5570 }
5571 }
5572 db.xlink.extended.type.attribute =
5573
5574 ## Identifies the XLink extended link type
5575 [
5576 s:pattern [
5577 name = "XLink extended placement"
5578 "\x{a}" ~
5579 " "
5580 s:rule [
5581 context = "*[@xlink:type='extended']"
5582 "\x{a}" ~
5583 " "
5584 s:assert [
5585 test = "not(parent::*[@xlink:type='extended'])"
5586 "An XLink extended type element may not occur as the direct child of an XLink extended type element."
5587 ]
5588 "\x{a}" ~
5589 " "
5590 ]
5591 "\x{a}" ~
5592 " "
5593 ]
5594 ]
5595 attribute xlink:type {
5596
5597 ## An XLink extended link type
5598 "extended"
5599 }
5600 db.xlink.locator.type.attribute =
5601
5602 ## Identifies the XLink locator link type
5603 [
5604 s:pattern [
5605 name = "XLink locator placement"
5606 "\x{a}" ~
5607 " "
5608 s:rule [
5609 context = "*[@xlink:type='locator']"
5610 "\x{a}" ~
5611 " "
5612 s:assert [
5613 test = "not(parent::*[@xlink:type='extended'])"
5614 "An XLink locator type element must occur as the direct child of an XLink extended type element."
5615 ]
5616 "\x{a}" ~
5617 " "
5618 ]
5619 "\x{a}" ~
5620 " "
5621 ]
5622 ]
5623 attribute xlink:type {
5624
5625 ## An XLink locator link type
5626 "locator"
5627 }
5628 db.xlink.arc.type.attribute =
5629
5630 ## Identifies the XLink arc link type
5631 [
5632 s:pattern [
5633 name = "XLink arc placement"
5634 "\x{a}" ~
5635 " "
5636 s:rule [
5637 context = "*[@xlink:type='arc']"
5638 "\x{a}" ~
5639 " "
5640 s:assert [
5641 test = "parent::*[@xlink:type='extended']"
5642 "An XLink arc type element must occur as the direct child of an XLink extended type element."
5643 ]
5644 "\x{a}" ~
5645 " "
5646 ]
5647 "\x{a}" ~
5648 " "
5649 ]
5650 ]
5651 attribute xlink:type {
5652
5653 ## An XLink arc link type
5654 "arc"
5655 }
5656 db.xlink.resource.type.attribute =
5657
5658 ## Identifies the XLink resource link type
5659 [
5660 s:pattern [
5661 name = "XLink resource placement"
5662 "\x{a}" ~
5663 " "
5664 s:rule [
5665 context = "*[@xlink:type='resource']"
5666 "\x{a}" ~
5667 " "
5668 s:assert [
5669 test = "not(parent::*[@xlink:type='extended'])"
5670 "An XLink resource type element must occur as the direct child of an XLink extended type element."
5671 ]
5672 "\x{a}" ~
5673 " "
5674 ]
5675 "\x{a}" ~
5676 " "
5677 ]
5678 ]
5679 attribute xlink:type {
5680
5681 ## An XLink resource link type
5682 "resource"
5683 }
5684 db.xlink.title.type.attribute =
5685
5686 ## Identifies the XLink title link type
5687 [
5688 s:pattern [
5689 name = "XLink title placement"
5690 "\x{a}" ~
5691 " "
5692 s:rule [
5693 context = "*[@xlink:type='title']"
5694 "\x{a}" ~
5695 " "
5696 s:assert [
5697 test =
5698 "not(parent::*[@xlink:type='extended']) and not(parent::*[@xlink:type='locator']) and not(parent::*[@xlink:type='arc'])"
5699 "An XLink title type element must occur as the direct child of an XLink extended, locator, or arc type element."
5700 ]
5701 "\x{a}" ~
5702 " "
5703 ]
5704 "\x{a}" ~
5705 " "
5706 ]
5707 ]
5708 attribute xlink:type {
5709
5710 ## An XLink title link type
5711 "title"
5712 }
5713 db.xlink.extended.link.attributes =
5714 db.xlink.extended.type.attribute
5715 & db.xlink.role.attribute?
5716 & db.xlink.title.attribute?
5717 db.xlink.locator.link.attributes =
5718 db.xlink.locator.type.attribute
5719 & db.xlink.href.attribute
5720 & db.xlink.role.attribute?
5721 & db.xlink.title.attribute?
5722 & db.xlink.label.attribute?
5723 db.xlink.arc.link.attributes =
5724 db.xlink.arc.type.attribute
5725 & db.xlink.arcrole.attribute?
5726 & db.xlink.title.attribute?
5727 & db.xlink.show.attribute?
5728 & db.xlink.actuate.attribute?
5729 & db.xlink.from.attribute?
5730 & db.xlink.to.attribute?
5731 db.xlink.resource.link.attributes =
5732 db.xlink.resource.type.attribute
5733 & db.xlink.role.attribute?
5734 & db.xlink.title.attribute?
5735 & db.xlink.label.attribute?
5736 db.xlink.title.link.attributes = db.xlink.title.type.attribute
5737 db.xlink.from.attribute =
5738
5739 ## Specifies the XLink traversal-from
5740 attribute xlink:from { xsd:NMTOKEN }
5741 db.xlink.label.attribute =
5742
5743 ## Specifies the XLink label
5744 attribute xlink:label { xsd:NMTOKEN }
5745 db.xlink.to.attribute =
5746
5747 ## Specifies the XLink traversal-to
5748 attribute xlink:to { xsd:NMTOKEN }
5749 div {
5750 db.extendedlink.role.attribute = attribute role { text }
5751 db.extendedlink.attlist =
5752 db.extendedlink.role.attribute?
5753 & db.common.attributes
5754 &
5755 ## Identifies the XLink link type
5756 [ a:defaultValue = "extended" ]
5757 attribute xlink:type {
5758
5759 ## An XLink extended link
5760 "extended"
5761 }?
5762 & db.xlink.role.attribute?
5763 & db.xlink.title.attribute?
5764 db.extendedlink =
5765
5766 ## An XLink extended link
5767 element extendedlink {
5768 db.extendedlink.attlist, (db.locator | db.arc | db.link)+
5769 }
5770 }
5771 div {
5772 db.locator.role.attribute = attribute role { text }
5773 db.locator.attlist =
5774 db.locator.role.attribute?
5775 & db.common.attributes
5776 &
5777 ## Identifies the XLink link type
5778 [ a:defaultValue = "locator" ]
5779 attribute xlink:type {
5780
5781 ## An XLink locator link
5782 "locator"
5783 }?
5784 & db.xlink.href.attribute
5785 & db.xlink.role.attribute?
5786 & db.xlink.title.attribute?
5787 & db.xlink.label.attribute?
5788 db.locator =
5789
5790 ## An XLink locator in an extendedlink
5791 element locator { db.locator.attlist, empty }
5792 }
5793 div {
5794 db.arc.role.attribute = attribute role { text }
5795 db.arc.attlist =
5796 db.arc.role.attribute?
5797 & db.common.attributes
5798 &
5799 ## Identifies the XLink link type
5800 [ a:defaultValue = "arc" ]
5801 attribute xlink:type {
5802
5803 ## An XLink arc link
5804 "arc"
5805 }?
5806 & db.xlink.arcrole.attribute?
5807 & db.xlink.title.attribute?
5808 & db.xlink.show.attribute?
5809 & db.xlink.actuate.attribute?
5810 & db.xlink.from.attribute?
5811 & db.xlink.to.attribute?
5812 db.arc =
5813
5814 ## An XLink arc in an extendedlink
5815 element arc { db.arc.attlist, empty }
5816 }
5817 db.sect1.sections = (db.sect2+, db.simplesect*) | db.simplesect+
5818 div {
5819 db.sect1.status.attribute = db.status.attribute
5820 db.sect1.role.attribute = attribute role { text }
5821 db.sect1.attlist =
5822 db.sect1.role.attribute?
5823 & db.common.attributes
5824 & db.common.linking.attributes
5825 & db.label.attribute?
5826 & db.sect1.status.attribute?
5827 db.sect1.info = db._info.title.req
5828 db.sect1 =
5829
5830 ## A top-level section of document
5831 [
5832 s:pattern [
5833 name = "Root must have version"
5834 "\x{a}" ~
5835 " "
5836 s:rule [
5837 context = "/db:sect1"
5838 "\x{a}" ~
5839 " "
5840 s:assert [
5841 test = "@version"
5842 "If this element is the root element, it must have a version attribute."
5843 ]
5844 "\x{a}" ~
5845 " "
5846 ]
5847 "\x{a}" ~
5848 " "
5849 ]
5850 ]
5851 element sect1 {
5852 db.sect1.attlist,
5853 db.sect1.info,
5854 ((db.all.blocks+, db.sect1.sections?) | db.sect1.sections)?,
5855 db.navigation.components*
5856 }
5857 }
5858 db.sect2.sections = (db.sect3+, db.simplesect*) | db.simplesect+
5859 div {
5860 db.sect2.status.attribute = db.status.attribute
5861 db.sect2.role.attribute = attribute role { text }
5862 db.sect2.attlist =
5863 db.sect2.role.attribute?
5864 & db.common.attributes
5865 & db.common.linking.attributes
5866 & db.label.attribute?
5867 & db.sect2.status.attribute?
5868 db.sect2.info = db._info.title.req
5869 db.sect2 =
5870
5871 ## A subsection within a sect1
5872 [
5873 s:pattern [
5874 name = "Root must have version"
5875 "\x{a}" ~
5876 " "
5877 s:rule [
5878 context = "/db:sect2"
5879 "\x{a}" ~
5880 " "
5881 s:assert [
5882 test = "@version"
5883 "If this element is the root element, it must have a version attribute."
5884 ]
5885 "\x{a}" ~
5886 " "
5887 ]
5888 "\x{a}" ~
5889 " "
5890 ]
5891 ]
5892 element sect2 {
5893 db.sect2.attlist,
5894 db.sect2.info,
5895 ((db.all.blocks+, db.sect2.sections?) | db.sect2.sections)?,
5896 db.navigation.components*
5897 }
5898 }
5899 db.sect3.sections = (db.sect4+, db.simplesect*) | db.simplesect+
5900 div {
5901 db.sect3.status.attribute = db.status.attribute
5902 db.sect3.role.attribute = attribute role { text }
5903 db.sect3.attlist =
5904 db.sect3.role.attribute?
5905 & db.common.attributes
5906 & db.common.linking.attributes
5907 & db.label.attribute?
5908 & db.sect3.status.attribute?
5909 db.sect3.info = db._info.title.req
5910 db.sect3 =
5911
5912 ## A subsection within a sect2
5913 [
5914 s:pattern [
5915 name = "Root must have version"
5916 "\x{a}" ~
5917 " "
5918 s:rule [
5919 context = "/db:sect3"
5920 "\x{a}" ~
5921 " "
5922 s:assert [
5923 test = "@version"
5924 "If this element is the root element, it must have a version attribute."
5925 ]
5926 "\x{a}" ~
5927 " "
5928 ]
5929 "\x{a}" ~
5930 " "
5931 ]
5932 ]
5933 element sect3 {
5934 db.sect3.attlist,
5935 db.sect3.info,
5936 ((db.all.blocks+, db.sect3.sections?) | db.sect3.sections)?,
5937 db.navigation.components*
5938 }
5939 }
5940 db.sect4.sections = (db.sect5+, db.simplesect*) | db.simplesect+
5941 div {
5942 db.sect4.status.attribute = db.status.attribute
5943 db.sect4.role.attribute = attribute role { text }
5944 db.sect4.attlist =
5945 db.sect4.role.attribute?
5946 & db.common.attributes
5947 & db.common.linking.attributes
5948 & db.label.attribute?
5949 & db.sect4.status.attribute?
5950 db.sect4.info = db._info.title.req
5951 db.sect4 =
5952
5953 ## A subsection within a sect3
5954 [
5955 s:pattern [
5956 name = "Root must have version"
5957 "\x{a}" ~
5958 " "
5959 s:rule [
5960 context = "/db:sect4"
5961 "\x{a}" ~
5962 " "
5963 s:assert [
5964 test = "@version"
5965 "If this element is the root element, it must have a version attribute."
5966 ]
5967 "\x{a}" ~
5968 " "
5969 ]
5970 "\x{a}" ~
5971 " "
5972 ]
5973 ]
5974 element sect4 {
5975 db.sect4.attlist,
5976 db.sect4.info,
5977 ((db.all.blocks+, db.sect4.sections?) | db.sect4.sections)?,
5978 db.navigation.components*
5979 }
5980 }
5981 db.sect5.sections = db.simplesect+
5982 div {
5983 db.sect5.status.attribute = db.status.attribute
5984 db.sect5.role.attribute = attribute role { text }
5985 db.sect5.attlist =
5986 db.sect5.role.attribute?
5987 & db.common.attributes
5988 & db.common.linking.attributes
5989 & db.label.attribute?
5990 & db.sect5.status.attribute?
5991 db.sect5.info = db._info.title.req
5992 db.sect5 =
5993
5994 ## A subsection within a sect4
5995 [
5996 s:pattern [
5997 name = "Root must have version"
5998 "\x{a}" ~
5999 " "
6000 s:rule [
6001 context = "/db:sect5"
6002 "\x{a}" ~
6003 " "
6004 s:assert [
6005 test = "@version"
6006 "If this element is the root element, it must have a version attribute."
6007 ]
6008 "\x{a}" ~
6009 " "
6010 ]
6011 "\x{a}" ~
6012 " "
6013 ]
6014 ]
6015 element sect5 {
6016 db.sect5.attlist,
6017 db.sect5.info,
6018 ((db.all.blocks+, db.sect5.sections?) | db.sect5.sections)?,
6019 db.navigation.components*
6020 }
6021 }
6022 db.toplevel.refsection = db.refsection+ | db.refsect1+
6023 db.secondlevel.refsection = db.refsection+ | db.refsect2+
6024 db.reference.components = db.refentry
6025 div {
6026 db.reference.status.attribute = db.status.attribute
6027 db.reference.role.attribute = attribute role { text }
6028 db.reference.attlist =
6029 db.reference.role.attribute?
6030 & db.common.attributes
6031 & db.common.linking.attributes
6032 & db.reference.status.attribute?
6033 & db.label.attribute?
6034 db.reference.info = db._info.title.req
6035 db.reference =
6036
6037 ## A collection of reference entries
6038 [
6039 s:pattern [
6040 name = "Root must have version"
6041 "\x{a}" ~
6042 " "
6043 s:rule [
6044 context = "/db:reference"
6045 "\x{a}" ~
6046 " "
6047 s:assert [
6048 test = "@version"
6049 "If this element is the root element, it must have a version attribute."
6050 ]
6051 "\x{a}" ~
6052 " "
6053 ]
6054 "\x{a}" ~
6055 " "
6056 ]
6057 ]
6058 element reference {
6059 db.reference.attlist,
6060 db.reference.info,
6061 db.partintro?,
6062 db.reference.components*
6063 }
6064 }
6065 div {
6066 db.refentry.status.attribute = db.status.attribute
6067 db.refentry.role.attribute = attribute role { text }
6068 db.refentry.attlist =
6069 db.refentry.role.attribute?
6070 & db.common.attributes
6071 & db.common.linking.attributes
6072 & db.refentry.status.attribute?
6073 & db.label.attribute?
6074 db.refentry.info = db._info.title.forbidden
6075 db.refentry =
6076
6077 ## A reference page (originally a UNIX man-style reference page)
6078 [
6079 s:pattern [
6080 name = "Root must have version"
6081 "\x{a}" ~
6082 " "
6083 s:rule [
6084 context = "/db:refentry"
6085 "\x{a}" ~
6086 " "
6087 s:assert [
6088 test = "@version"
6089 "If this element is the root element, it must have a version attribute."
6090 ]
6091 "\x{a}" ~
6092 " "
6093 ]
6094 "\x{a}" ~
6095 " "
6096 ]
6097 ]
6098 element refentry {
6099 db.refentry.attlist,
6100 db.indexterm*,
6101 db.refentry.info,
6102 db.refmeta?,
6103 db.refnamediv+,
6104 db.refsynopsisdiv?,
6105 db.toplevel.refsection
6106 }
6107 }
6108 div {
6109 db.refmeta.role.attribute = attribute role { text }
6110 db.refmeta.attlist =
6111 db.refmeta.role.attribute?
6112 & db.common.attributes
6113 & db.common.linking.attributes
6114 db.refmeta =
6115
6116 ## Meta-information for a reference entry
6117 element refmeta {
6118 db.refmeta.attlist,
6119 db.indexterm*,
6120 db.refentrytitle,
6121 db.manvolnum?,
6122 db.refmiscinfo*,
6123 db.indexterm*
6124 }
6125 }
6126 db.refmiscinfo.class.enumeration =
6127
6128 ## The name of the software product or component to which this topic applies
6129 "source"
6130 |
6131 ## The version of the software product or component to which this topic applies
6132 "version"
6133 |
6134 ## The section title of the reference page (e.g., User Commands)
6135 "manual"
6136 |
6137 ## The section title of the reference page (believed synonymous with "manual" but in wide use)
6138 "sectdesc"
6139 |
6140 ## The name of the software product or component to which this topic applies (e.g., SunOS x.y; believed synonymous with "source" but in wide use)
6141 "software"
6142 db.refmiscinfo.class-enum.attribute =
6143
6144 ## Identifies the kind of miscellaneous information
6145 attribute class { db.refmiscinfo.class.enumeration }?
6146 db.refmiscinfo.class-other.attribute =
6147
6148 ## Identifies the nature of non-standard miscellaneous information
6149 attribute otherclass { text }
6150 db.refmiscinfo.class-other.attributes =
6151
6152 ## Identifies the kind of miscellaneious information
6153 attribute class {
6154
6155 ## Indicates that the information is some 'other' kind.
6156 "other"
6157 }
6158 & db.refmiscinfo.class-other.attribute
6159 db.refmiscinfo.class.attribute =
6160 db.refmiscinfo.class-enum.attribute
6161 | db.refmiscinfo.class-other.attributes
6162 div {
6163 db.refmiscinfo.role.attribute = attribute role { text }
6164 db.refmiscinfo.attlist =
6165 db.refmiscinfo.role.attribute?
6166 & db.common.attributes
6167 & db.common.linking.attributes
6168 & db.refmiscinfo.class.attribute?
6169 db.refmiscinfo =
6170
6171 ## Meta-information for a reference entry other than the title and volume number
6172 element refmiscinfo { db.refmiscinfo.attlist, db._text }
6173 }
6174 div {
6175 db.refnamediv.role.attribute = attribute role { text }
6176 db.refnamediv.attlist =
6177 db.refnamediv.role.attribute?
6178 & db.common.attributes
6179 & db.common.linking.attributes
6180 db.refnamediv =
6181
6182 ## The name, purpose, and classification of a reference page
6183 element refnamediv {
6184 db.refnamediv.attlist,
6185 db.refdescriptor?,
6186 db.refname+,
6187 db.refpurpose,
6188 db.refclass*
6189 }
6190 }
6191 div {
6192 db.refdescriptor.role.attribute = attribute role { text }
6193 db.refdescriptor.attlist =
6194 db.refdescriptor.role.attribute?
6195 & db.common.attributes
6196 & db.common.linking.attributes
6197 db.refdescriptor =
6198
6199 ## A description of the topic of a reference page
6200 element refdescriptor { db.refdescriptor.attlist, db.all.inlines* }
6201 }
6202 div {
6203 db.refname.role.attribute = attribute role { text }
6204 db.refname.attlist =
6205 db.refname.role.attribute?
6206 & db.common.attributes
6207 & db.common.linking.attributes
6208 db.refname =
6209
6210 ## The name of (one of) the subject(s) of a reference page
6211 element refname { db.refname.attlist, db.all.inlines* }
6212 }
6213 div {
6214 db.refpurpose.role.attribute = attribute role { text }
6215 db.refpurpose.attlist =
6216 db.refpurpose.role.attribute?
6217 & db.common.attributes
6218 & db.common.linking.attributes
6219 db.refpurpose =
6220
6221 ## A short (one sentence) synopsis of the topic of a reference page
6222 element refpurpose { db.refpurpose.attlist, db.all.inlines* }
6223 }
6224 div {
6225 db.refclass.role.attribute = attribute role { text }
6226 db.refclass.attlist =
6227 db.refclass.role.attribute?
6228 & db.common.attributes
6229 & db.common.linking.attributes
6230 db.refclass =
6231
6232 ## The scope or other indication of applicability of a reference entry
6233 element refclass { db.refclass.attlist, (text | db.application)* }
6234 }
6235 div {
6236 db.refsynopsisdiv.role.attribute = attribute role { text }
6237 db.refsynopsisdiv.attlist =
6238 db.refsynopsisdiv.role.attribute?
6239 & db.common.attributes
6240 & db.common.linking.attributes
6241 db.refsynopsisdiv.info = db._info
6242 db.refsynopsisdiv =
6243
6244 ## A syntactic synopsis of the subject of the reference page
6245 [
6246 s:pattern [
6247 name = "Root must have version"
6248 "\x{a}" ~
6249 " "
6250 s:rule [
6251 context = "/db:refsynopsisdiv"
6252 "\x{a}" ~
6253 " "
6254 s:assert [
6255 test = "@version"
6256 "If this element is the root element, it must have a version attribute."
6257 ]
6258 "\x{a}" ~
6259 " "
6260 ]
6261 "\x{a}" ~
6262 " "
6263 ]
6264 ]
6265 element refsynopsisdiv {
6266 db.refsynopsisdiv.attlist,
6267 db.refsynopsisdiv.info,
6268 ((db.all.blocks+, db.secondlevel.refsection?)
6269 | db.secondlevel.refsection)
6270 }
6271 }
6272 div {
6273 db.refsection.status.attribute = db.status.attribute
6274 db.refsection.role.attribute = attribute role { text }
6275 db.refsection.attlist =
6276 db.refsection.role.attribute?
6277 & db.common.attributes
6278 & db.common.linking.attributes
6279 & db.refsection.status.attribute?
6280 & db.label.attribute?
6281 db.refsection.info = db._info.title.req
6282 db.refsection =
6283
6284 ## A recursive section in a refentry
6285 [
6286 s:pattern [
6287 name = "Root must have version"
6288 "\x{a}" ~
6289 " "
6290 s:rule [
6291 context = "/db:refsection"
6292 "\x{a}" ~
6293 " "
6294 s:assert [
6295 test = "@version"
6296 "If this element is the root element, it must have a version attribute."
6297 ]
6298 "\x{a}" ~
6299 " "
6300 ]
6301 "\x{a}" ~
6302 " "
6303 ]
6304 ]
6305 element refsection {
6306 db.refsection.attlist,
6307 db.refsection.info,
6308 ((db.all.blocks+, db.refsection*) | db.refsection+)
6309 }
6310 }
6311 db.refsect1.sections = db.refsect2+
6312 div {
6313 db.refsect1.status.attribute = db.status.attribute
6314 db.refsect1.role.attribute = attribute role { text }
6315 db.refsect1.attlist =
6316 db.refsect1.role.attribute?
6317 & db.common.attributes
6318 & db.common.linking.attributes
6319 & db.label.attribute?
6320 & db.refsect1.status.attribute?
6321 db.refsect1.info = db._info.title.req
6322 db.refsect1 =
6323
6324 ## A major subsection of a reference entry
6325 [
6326 s:pattern [
6327 name = "Root must have version"
6328 "\x{a}" ~
6329 " "
6330 s:rule [
6331 context = "/db:refsect1"
6332 "\x{a}" ~
6333 " "
6334 s:assert [
6335 test = "@version"
6336 "If this element is the root element, it must have a version attribute."
6337 ]
6338 "\x{a}" ~
6339 " "
6340 ]
6341 "\x{a}" ~
6342 " "
6343 ]
6344 ]
6345 element refsect1 {
6346 db.refsect1.attlist,
6347 db.refsect1.info,
6348 ((db.all.blocks+, db.refsect1.sections?) | db.refsect1.sections)
6349 }
6350 }
6351 db.refsect2.sections = db.refsect3+
6352 div {
6353 db.refsect2.status.attribute = db.status.attribute
6354 db.refsect2.role.attribute = attribute role { text }
6355 db.refsect2.attlist =
6356 db.refsect2.role.attribute?
6357 & db.common.attributes
6358 & db.common.linking.attributes
6359 & db.label.attribute?
6360 & db.refsect2.status.attribute?
6361 db.refsect2.info = db._info.title.req
6362 db.refsect2 =
6363
6364 ## A subsection of a refsect1
6365 [
6366 s:pattern [
6367 name = "Root must have version"
6368 "\x{a}" ~
6369 " "
6370 s:rule [
6371 context = "/db:refsect2"
6372 "\x{a}" ~
6373 " "
6374 s:assert [
6375 test = "@version"
6376 "If this element is the root element, it must have a version attribute."
6377 ]
6378 "\x{a}" ~
6379 " "
6380 ]
6381 "\x{a}" ~
6382 " "
6383 ]
6384 ]
6385 element refsect2 {
6386 db.refsect2.attlist,
6387 db.refsect2.info,
6388 ((db.all.blocks+, db.refsect2.sections?) | db.refsect2.sections)
6389 }
6390 }
6391 div {
6392 db.refsect3.status.attribute = db.status.attribute
6393 db.refsect3.role.attribute = attribute role { text }
6394 db.refsect3.attlist =
6395 db.refsect3.role.attribute?
6396 & db.common.attributes
6397 & db.common.linking.attributes
6398 & db.label.attribute?
6399 & db.refsect3.status.attribute?
6400 db.refsect3.info = db._info.title.req
6401 db.refsect3 =
6402
6403 ## A subsection of a refsect2
6404 [
6405 s:pattern [
6406 name = "Root must have version"
6407 "\x{a}" ~
6408 " "
6409 s:rule [
6410 context = "/db:refsect3"
6411 "\x{a}" ~
6412 " "
6413 s:assert [
6414 test = "@version"
6415 "If this element is the root element, it must have a version attribute."
6416 ]
6417 "\x{a}" ~
6418 " "
6419 ]
6420 "\x{a}" ~
6421 " "
6422 ]
6423 ]
6424 element refsect3 {
6425 db.refsect3.attlist, db.refsect3.info, db.all.blocks+
6426 }
6427 }
6428 db.glossary.inlines =
6429 db.firstterm | db.glossterm | db._firstterm | db._glossterm
6430 db.baseform.attribute =
6431
6432 ## Specifies the base form of the term, the one that appears in the glossary. This allows adjectival, plural, and other variations of the term to appear in the element. The element content is the default base form.
6433 attribute baseform { text }?
6434 div {
6435 db.glosslist.role.attribute = attribute role { text }
6436 db.glosslist.attlist =
6437 db.glosslist.role.attribute?
6438 & db.common.attributes
6439 & db.common.linking.attributes
6440 db.glosslist.info = db._info.title.only
6441 db.glosslist =
6442
6443 ## A wrapper for a list of glossary entries
6444 [
6445 s:pattern [
6446 name = "Root must have version"
6447 "\x{a}" ~
6448 " "
6449 s:rule [
6450 context = "/db:glosslist"
6451 "\x{a}" ~
6452 " "
6453 s:assert [
6454 test = "@version"
6455 "If this element is the root element, it must have a version attribute."
6456 ]
6457 "\x{a}" ~
6458 " "
6459 ]
6460 "\x{a}" ~
6461 " "
6462 ]
6463 ]
6464 element glosslist {
6465 db.glosslist.attlist,
6466 db.glosslist.info?,
6467 db.all.blocks*,
6468 db.glossentry+
6469 }
6470 }
6471 div {
6472 db.glossentry.role.attribute = attribute role { text }
6473 db.glossentry.sortas.attribute =
6474
6475 ## Specifies the string by which the element's content is to be sorted; if unspecified, the content is used
6476 attribute sortas { text }
6477 db.glossentry.attlist =
6478 db.glossentry.role.attribute?
6479 & db.common.attributes
6480 & db.common.linking.attributes
6481 & db.glossentry.sortas.attribute?
6482 db.glossentry =
6483
6484 ## An entry in a glossary or glosslist
6485 element glossentry {
6486 db.glossentry.attlist,
6487 db.glossterm,
6488 db.acronym?,
6489 db.abbrev?,
6490 db.indexterm*,
6491 (db.glosssee | db.glossdef+)
6492 }
6493 }
6494 div {
6495 db.glossdef.role.attribute = attribute role { text }
6496 db.glossdef.subject.attribute =
6497
6498 ## Specifies a list of keywords for the definition
6499 attribute subject { text }
6500 db.glossdef.attlist =
6501 db.glossdef.role.attribute?
6502 & db.common.attributes
6503 & db.common.linking.attributes
6504 & db.glossdef.subject.attribute?
6505 db.glossdef =
6506
6507 ## A definition in a glossentry
6508 element glossdef {
6509 db.glossdef.attlist, db.all.blocks+, db.glossseealso*
6510 }
6511 }
6512 div {
6513 db.glosssee.role.attribute = attribute role { text }
6514 db.glosssee.otherterm.attribute =
6515
6516 ## Identifies the other term
6517 attribute otherterm { xsd:IDREF }
6518 db.glosssee.attlist =
6519 db.glosssee.role.attribute?
6520 & db.common.attributes
6521 & db.common.linking.attributes
6522 & db.glosssee.otherterm.attribute?
6523 db.glosssee =
6524
6525 ## A cross-reference from one glossentry
6526 ## to another
6527 [
6528 s:pattern [
6529 name = "Glosssary 'see' type constraint"
6530 "\x{a}" ~
6531 " "
6532 s:rule [
6533 context = "db:glosssee[@otherterm]"
6534 "\x{a}" ~
6535 " "
6536 s:assert [
6537 test =
6538 "local-name(//*[@xml:id=current()/@otherterm]) = 'glossentry' and namespace-uri(//*[@xml:id=current()/@otherterm]) = 'http://docbook.org/ns/docbook'"
6539 "@otherterm on glosssee must point to a glossentry."
6540 ]
6541 "\x{a}" ~
6542 " "
6543 ]
6544 "\x{a}" ~
6545 " "
6546 ]
6547 ]
6548 element glosssee { db.glosssee.attlist, db.all.inlines* }
6549 }
6550 div {
6551 db.glossseealso.role.attribute = attribute role { text }
6552 db.glossseealso.otherterm.attribute =
6553
6554 ## Identifies the other term
6555 attribute otherterm { xsd:IDREF }
6556 db.glossseealso.attlist =
6557 db.glossseealso.role.attribute?
6558 & db.common.attributes
6559 & db.common.linking.attributes
6560 & db.glossseealso.otherterm.attribute?
6561 db.glossseealso =
6562
6563 ## A cross-reference from one glossentry to another
6564 [
6565 s:pattern [
6566 name = "Glossary 'seealso' type constraint"
6567 "\x{a}" ~
6568 " "
6569 s:rule [
6570 context = "db:glossseealso[@otherterm]"
6571 "\x{a}" ~
6572 " "
6573 s:assert [
6574 test =
6575 "local-name(//*[@xml:id=current()/@otherterm]) = 'glossentry' and namespace-uri(//*[@xml:id=current()/@otherterm]) = 'http://docbook.org/ns/docbook'"
6576 "@otherterm on glossseealso must point to a glossentry."
6577 ]
6578 "\x{a}" ~
6579 " "
6580 ]
6581 "\x{a}" ~
6582 " "
6583 ]
6584 ]
6585 element glossseealso { db.glossseealso.attlist, db.all.inlines* }
6586 }
6587 div {
6588 db.firstterm.role.attribute = attribute role { text }
6589 db.firstterm.attlist =
6590 db.firstterm.role.attribute?
6591 & db.common.attributes
6592 & db.common.linking.attributes
6593 & db.baseform.attribute
6594 db.firstterm =
6595
6596 ## The first occurrence of a term
6597 [
6598 s:pattern [
6599 name = "Glossary 'firstterm' type constraint"
6600 "\x{a}" ~
6601 " "
6602 s:rule [
6603 context = "db:firstterm[@linkend]"
6604 "\x{a}" ~
6605 " "
6606 s:assert [
6607 test =
6608 "local-name(//*[@xml:id=current()/@linkend]) = 'glossentry' and namespace-uri(//*[@xml:id=current()/@linkend]) = 'http://docbook.org/ns/docbook'"
6609 "@linkend on firstterm must point to a glossentry."
6610 ]
6611 "\x{a}" ~
6612 " "
6613 ]
6614 "\x{a}" ~
6615 " "
6616 ]
6617 ]
6618 element firstterm { db.firstterm.attlist, db.all.inlines* }
6619 }
6620 div {
6621 db._firstterm.role.attribute = attribute role { text }
6622 db._firstterm.attlist =
6623 db._firstterm.role.attribute?
6624 & db.common.attributes
6625 & db.common.linking.attributes
6626 & db.baseform.attribute
6627 db._firstterm =
6628
6629 ## The first occurrence of a term, with limited content
6630 [
6631 s:pattern [
6632 name = "Glossary 'firstterm' type constraint"
6633 "\x{a}" ~
6634 " "
6635 s:rule [
6636 context = "db:firstterm[@linkend]"
6637 "\x{a}" ~
6638 " "
6639 s:assert [
6640 test =
6641 "local-name(//*[@xml:id=current()/@linkend]) = 'glossentry' and namespace-uri(//*[@xml:id=current()/@linkend]) = 'http://docbook.org/ns/docbook'"
6642 "@linkend on firstterm must point to a glossentry."
6643 ]
6644 "\x{a}" ~
6645 " "
6646 ]
6647 "\x{a}" ~
6648 " "
6649 ]
6650 ]
6651 element firstterm { db._firstterm.attlist, db._text }
6652 }
6653 div {
6654 db.glossterm.role.attribute = attribute role { text }
6655 db.glossterm.attlist =
6656 db.glossterm.role.attribute?
6657 & db.common.attributes
6658 & db.common.linking.attributes
6659 & db.baseform.attribute
6660 db.glossterm =
6661
6662 ## A glossary term
6663 [
6664 s:pattern [
6665 name = "Glossary 'glossterm' type constraint"
6666 "\x{a}" ~
6667 " "
6668 s:rule [
6669 context = "db:glossterm[@linkend]"
6670 "\x{a}" ~
6671 " "
6672 s:assert [
6673 test =
6674 "local-name(//*[@xml:id=current()/@linkend]) = 'glossentry' and namespace-uri(//*[@xml:id=current()/@linkend]) = 'http://docbook.org/ns/docbook'"
6675 "@linkend on glossterm must point to a glossentry."
6676 ]
6677 "\x{a}" ~
6678 " "
6679 ]
6680 "\x{a}" ~
6681 " "
6682 ]
6683 ]
6684 element glossterm { db.glossterm.attlist, db.all.inlines* }
6685 }
6686 div {
6687 db._glossterm.role.attribute = attribute role { text }
6688 db._glossterm.attlist =
6689 db._glossterm.role.attribute?
6690 & db.common.attributes
6691 & db.common.linking.attributes
6692 & db.baseform.attribute
6693 db._glossterm =
6694
6695 ## A glossary term
6696 [
6697 s:pattern [
6698 name = "Glossary 'glossterm' type constraint"
6699 "\x{a}" ~
6700 " "
6701 s:rule [
6702 context = "db:glossterm[@linkend]"
6703 "\x{a}" ~
6704 " "
6705 s:assert [
6706 test =
6707 "local-name(//*[@xml:id=current()/@linkend]) = 'glossentry' and namespace-uri(//*[@xml:id=current()/@linkend]) = 'http://docbook.org/ns/docbook'"
6708 "@linkend on glossterm must point to a glossentry."
6709 ]
6710 "\x{a}" ~
6711 " "
6712 ]
6713 "\x{a}" ~
6714 " "
6715 ]
6716 ]
6717 element glossterm { db._glossterm.attlist, db._text }
6718 }
6719 div {
6720 db.glossary.status.attribute = db.status.attribute
6721 db.glossary.role.attribute = attribute role { text }
6722 db.glossary.attlist =
6723 db.glossary.role.attribute?
6724 & db.common.attributes
6725 & db.common.linking.attributes
6726 & db.label.attribute?
6727 & db.glossary.status.attribute?
6728 db.glossary.info = db._info
6729 db.glossary =
6730
6731 ## A glossary
6732 [
6733 s:pattern [
6734 name = "Root must have version"
6735 "\x{a}" ~
6736 " "
6737 s:rule [
6738 context = "/db:glossary"
6739 "\x{a}" ~
6740 " "
6741 s:assert [
6742 test = "@version"
6743 "If this element is the root element, it must have a version attribute."
6744 ]
6745 "\x{a}" ~
6746 " "
6747 ]
6748 "\x{a}" ~
6749 " "
6750 ]
6751 ]
6752 element glossary {
6753 db.glossary.attlist,
6754 db.glossary.info,
6755 db.all.blocks*,
6756 (db.glossdiv* | db.glossentry*),
6757 db.bibliography?
6758 }
6759 }
6760 div {
6761 db.glossdiv.status.attribute = db.status.attribute
6762 db.glossdiv.role.attribute = attribute role { text }
6763 db.glossdiv.attlist =
6764 db.glossdiv.role.attribute?
6765 & db.common.attributes
6766 & db.common.linking.attributes
6767 & db.label.attribute?
6768 & db.glossdiv.status.attribute?
6769 db.glossdiv.info = db._info.title.req
6770 db.glossdiv =
6771
6772 ## A division in a glossary
6773 [
6774 s:pattern [
6775 name = "Root must have version"
6776 "\x{a}" ~
6777 " "
6778 s:rule [
6779 context = "/db:glossdiv"
6780 "\x{a}" ~
6781 " "
6782 s:assert [
6783 test = "@version"
6784 "If this element is the root element, it must have a version attribute."
6785 ]
6786 "\x{a}" ~
6787 " "
6788 ]
6789 "\x{a}" ~
6790 " "
6791 ]
6792 ]
6793 element glossdiv {
6794 db.glossdiv.attlist,
6795 db.glossdiv.info,
6796 db.all.blocks*,
6797 db.glossentry+
6798 }
6799 }
6800 div {
6801 db.termdef.role.attribute = attribute role { text }
6802 db.termdef.attlist =
6803 db.termdef.role.attribute?
6804 & db.glossentry.sortas.attribute?
6805 & db.common.attributes
6806 & db.common.linking.attributes
6807 & db.baseform.attribute
6808 db.termdef =
6809
6810 ## An inline definition of a term
6811 [
6812 s:pattern [
6813 name = "Glossary term definition constraint"
6814 "\x{a}" ~
6815 " "
6816 s:rule [
6817 context = "db:termdef"
6818 "\x{a}" ~
6819 " "
6820 s:assert [
6821 test = "count(db:firstterm) = 1"
6822 "A termdef must contain exactly one firstterm"
6823 ]
6824 "\x{a}" ~
6825 " "
6826 ]
6827 "\x{a}" ~
6828 " "
6829 ]
6830 ]
6831 element termdef { db.termdef.attlist, db.all.inlines* }
6832 }
6833 db.relation.attribute =
6834
6835 ## Identifies the relationship between the bibliographic elemnts
6836 attribute relation { text }
6837 div {
6838 db.biblioentry.role.attribute = attribute role { text }
6839 db.biblioentry.attlist =
6840 db.biblioentry.role.attribute?
6841 & db.common.attributes
6842 & db.common.linking.attributes
6843 db.biblioentry =
6844
6845 ## A raw entry in a bibliography
6846 element biblioentry {
6847 db.biblioentry.attlist, db.bibliographic.elements+
6848 }
6849 }
6850 div {
6851 db.bibliomixed.role.attribute = attribute role { text }
6852 db.bibliomixed.attlist =
6853 db.bibliomixed.role.attribute?
6854 & db.common.attributes
6855 & db.common.linking.attributes
6856 db.bibliomixed =
6857
6858 ## A cooked entry in a bibliography
6859 element bibliomixed {
6860 db.bibliomixed.attlist,
6861 ((db._text
6862 | db.honorific
6863 | db.firstname
6864 | db.surname
6865 | db.lineage
6866 | db.othername
6867 | db.bibliographic.elements)*
6868 | (db._text
6869 | db.honorific
6870 | db.givenname
6871 | db.surname
6872 | db.lineage
6873 | db.othername
6874 | db.bibliographic.elements)*)
6875 }
6876 }
6877 div {
6878 db.biblioset.relation.attribute = db.relation.attribute
6879 db.biblioset.role.attribute = attribute role { text }
6880 db.biblioset.attlist =
6881 db.biblioset.role.attribute?
6882 & db.common.attributes
6883 & db.common.linking.attributes
6884 & db.biblioset.relation.attribute?
6885 db.biblioset =
6886
6887 ## A raw container for related bibliographic information
6888 element biblioset {
6889 db.biblioset.attlist, db.bibliographic.elements+
6890 }
6891 }
6892 div {
6893 db.bibliomset.relation.attribute = db.relation.attribute
6894 db.bibliomset.role.attribute = attribute role { text }
6895 db.bibliomset.attlist =
6896 db.bibliomset.role.attribute?
6897 & db.common.attributes
6898 & db.common.linking.attributes
6899 & db.bibliomset.relation.attribute?
6900 db.bibliomset =
6901
6902 ## A cooked container for related bibliographic information
6903 element bibliomset {
6904 db.bibliomset.attlist,
6905 ((db._text
6906 | db.honorific
6907 | db.firstname
6908 | db.surname
6909 | db.lineage
6910 | db.othername
6911 | db.bibliographic.elements)*
6912 | (db._text
6913 | db.honorific
6914 | db.givenname
6915 | db.surname
6916 | db.lineage
6917 | db.othername
6918 | db.bibliographic.elements)*)
6919 }
6920 }
6921 div {
6922 db.bibliomisc.role.attribute = attribute role { text }
6923 db.bibliomisc.attlist =
6924 db.bibliomisc.role.attribute?
6925 & db.common.attributes
6926 & db.common.linking.attributes
6927 db.bibliomisc =
6928
6929 ## Untyped bibliographic information
6930 element bibliomisc { db.bibliomisc.attlist, db._text }
6931 }
6932 div {
6933 db.bibliography.status.attrib = db.status.attribute
6934 db.bibliography.role.attribute = attribute role { text }
6935 db.bibliography.attlist =
6936 db.bibliography.role.attribute?
6937 & db.common.attributes
6938 & db.common.linking.attributes
6939 & db.label.attribute?
6940 & db.bibliography.status.attrib?
6941 db.bibliography.info = db._info
6942 db.bibliography =
6943
6944 ## A bibliography
6945 [
6946 s:pattern [
6947 name = "Root must have version"
6948 "\x{a}" ~
6949 " "
6950 s:rule [
6951 context = "/db:bibliography"
6952 "\x{a}" ~
6953 " "
6954 s:assert [
6955 test = "@version"
6956 "If this element is the root element, it must have a version attribute."
6957 ]
6958 "\x{a}" ~
6959 " "
6960 ]
6961 "\x{a}" ~
6962 " "
6963 ]
6964 ]
6965 element bibliography {
6966 db.bibliography.attlist,
6967 db.bibliography.info,
6968 db.all.blocks*,
6969 (db.bibliodiv+ | (db.biblioentry | db.bibliomixed)+)
6970 }
6971 }
6972 div {
6973 db.bibliodiv.status.attrib = db.status.attribute
6974 db.bibliodiv.role.attribute = attribute role { text }
6975 db.bibliodiv.attlist =
6976 db.bibliodiv.role.attribute?
6977 & db.common.attributes
6978 & db.common.linking.attributes
6979 & db.label.attribute?
6980 & db.bibliodiv.status.attrib?
6981 db.bibliodiv.info = db._info.title.req
6982 db.bibliodiv =
6983
6984 ## A section of a bibliography
6985 [
6986 s:pattern [
6987 name = "Root must have version"
6988 "\x{a}" ~
6989 " "
6990 s:rule [
6991 context = "/db:bibliodiv"
6992 "\x{a}" ~
6993 " "
6994 s:assert [
6995 test = "@version"
6996 "If this element is the root element, it must have a version attribute."
6997 ]
6998 "\x{a}" ~
6999 " "
7000 ]
7001 "\x{a}" ~
7002 " "
7003 ]
7004 ]
7005 element bibliodiv {
7006 db.bibliodiv.attlist,
7007 db.bibliodiv.info,
7008 db.all.blocks*,
7009 (db.biblioentry | db.bibliomixed)+
7010 }
7011 }
7012 div {
7013 db.bibliolist.role.attribute = attribute role { text }
7014 db.bibliolist.attlist =
7015 db.bibliolist.role.attribute?
7016 & db.common.attributes
7017 & db.common.linking.attributes
7018 db.bibliolist.info = db._info.title.only
7019 db.bibliolist =
7020
7021 ## A wrapper for a list of bibliography entries
7022 [
7023 s:pattern [
7024 name = "Root must have version"
7025 "\x{a}" ~
7026 " "
7027 s:rule [
7028 context = "/db:bibliolist"
7029 "\x{a}" ~
7030 " "
7031 s:assert [
7032 test = "@version"
7033 "If this element is the root element, it must have a version attribute."
7034 ]
7035 "\x{a}" ~
7036 " "
7037 ]
7038 "\x{a}" ~
7039 " "
7040 ]
7041 ]
7042 element bibliolist {
7043 db.bibliolist.attlist,
7044 db.bibliolist.info?,
7045 db.all.blocks*,
7046 (db.biblioentry | db.bibliomixed)+
7047 }
7048 }
7049 div {
7050 db.biblioref.role.attribute = attribute role { text }
7051 db.biblioref.xrefstyle.attribute = db.xrefstyle.attribute
7052 db.biblioref.endterm.attribute = db.endterm.attribute
7053 db.biblioref.units.attribute =
7054
7055 ## The units (for example, pages) used to identify the beginning and ending of a reference.
7056 attribute units { xsd:token }
7057 db.biblioref.begin.attribute =
7058
7059 ## Identifies the beginning of a reference; the location within the work that is being referenced.
7060 attribute begin { xsd:token }
7061 db.biblioref.end.attribute =
7062
7063 ## Identifies the end of a reference.
7064 attribute end { xsd:token }
7065 db.biblioref.attlist =
7066 db.biblioref.role.attribute?
7067 & db.common.attributes
7068 & db.common.req.linking.attributes
7069 & db.biblioref.xrefstyle.attribute?
7070 & db.biblioref.endterm.attribute?
7071 & db.biblioref.units.attribute?
7072 & db.biblioref.begin.attribute?
7073 & db.biblioref.end.attribute?
7074 db.biblioref =
7075
7076 ## A cross-reference to a bibliographic entry
7077 element biblioref { db.biblioref.attlist, empty }
7078 }
7079 db.significance.enumeration =
7080
7081 ## Normal
7082 "normal"
7083 |
7084 ## Preferred
7085 "preferred"
7086 db.significance.attribute =
7087
7088 ## Specifies the significance of the term
7089 attribute significance { db.significance.enumeration }
7090 db.zone.attribute =
7091
7092 ## Specifies the IDs of the elements to which this term applies
7093 attribute zone { xsd:IDREFS }
7094 db.indexterm.pagenum.attribute =
7095
7096 ## Indicates the page on which this index term occurs in some version of the printed document
7097 attribute pagenum { text }
7098 db.scope.enumeration =
7099
7100 ## All indexes
7101 "all"
7102 |
7103 ## The global index (as for a combined index of a set of books)
7104 "global"
7105 |
7106 ## The local index (the index for this document only)
7107 "local"
7108 db.scope.attribute =
7109
7110 ## Specifies the scope of the index term
7111 attribute scope { db.scope.enumeration }
7112 db.sortas.attribute =
7113
7114 ## Specifies the string by which the term is to be sorted; if unspecified, the term content is used
7115 attribute sortas { text }
7116 db.index.type.attribute =
7117
7118 ## Specifies the target index for this term
7119 attribute type { text }
7120 div {
7121 db.itermset.role.attribute = attribute role { text }
7122 db.itermset.attlist =
7123 db.itermset.role.attribute?
7124 & db.common.attributes
7125 & db.common.linking.attributes
7126 db.itermset =
7127
7128 ## A set of index terms in the meta-information of a document
7129 element itermset { db.itermset.attlist, db.indexterm.singular+ }
7130 }
7131 db.indexterm.contentmodel =
7132 db.primary?,
7133 ((db.secondary,
7134 ((db.tertiary, (db.see | db.seealso+)?)
7135 | db.see
7136 | db.seealso+)?)
7137 | db.see
7138 | db.seealso+)?
7139 div {
7140 db.indexterm.singular.role.attribute = attribute role { text }
7141 db.indexterm.singular.class.attribute =
7142
7143 ## Identifies the class of index term
7144 attribute class {
7145
7146 ## A singular index term
7147 "singular"
7148 }
7149 db.indexterm.singular.attlist =
7150 db.indexterm.singular.role.attribute?
7151 & db.common.attributes
7152 & db.common.linking.attributes
7153 & db.significance.attribute?
7154 & db.zone.attribute?
7155 & db.indexterm.pagenum.attribute?
7156 & db.scope.attribute?
7157 & db.index.type.attribute?
7158 & db.indexterm.singular.class.attribute?
7159 db.indexterm.singular =
7160
7161 ## A wrapper for an indexed term
7162 element indexterm {
7163 db.indexterm.singular.attlist, db.indexterm.contentmodel
7164 }
7165 }
7166 div {
7167 db.indexterm.startofrange.role.attribute = attribute role { text }
7168 db.indexterm.startofrange.class.attribute =
7169
7170 ## Identifies the class of index term
7171 attribute class {
7172
7173 ## The start of a range
7174 "startofrange"
7175 }
7176 db.indexterm.startofrange.attlist =
7177 db.indexterm.startofrange.role.attribute?
7178 & db.common.attributes
7179 & db.common.linking.attributes
7180 & db.significance.attribute?
7181 & db.zone.attribute?
7182 & db.indexterm.pagenum.attribute?
7183 & db.scope.attribute?
7184 & db.index.type.attribute?
7185 & db.indexterm.startofrange.class.attribute
7186 db.indexterm.startofrange =
7187
7188 ## A wrapper for an indexed term that covers a range
7189 element indexterm {
7190 db.indexterm.startofrange.attlist, db.indexterm.contentmodel
7191 }
7192 }
7193 div {
7194 db.indexterm.endofrange.role.attribute = attribute role { text }
7195 db.indexterm.endofrange.class.attribute =
7196
7197 ## Identifies the class of index term
7198 attribute class {
7199
7200 ## The end of a range
7201 "endofrange"
7202 }
7203 db.indexterm.endofrange.startref.attribute =
7204
7205 ## Points to the start of the range
7206 attribute startref { xsd:IDREF }
7207 db.indexterm.endofrange.attlist =
7208 db.indexterm.endofrange.role.attribute?
7209 & db.common.attributes
7210 & db.common.linking.attributes
7211 & db.indexterm.endofrange.class.attribute
7212 & db.indexterm.endofrange.startref.attribute
7213 db.indexterm.endofrange =
7214
7215 ## Identifies the end of a range associated with an indexed term
7216 element indexterm { db.indexterm.endofrange.attlist, empty }
7217 }
7218 div {
7219 db.indexterm =
7220 db.indexterm.singular
7221 | db.indexterm.startofrange
7222 | db.indexterm.endofrange
7223 }
7224 div {
7225 db.primary.role.attribute = attribute role { text }
7226 db.primary.attlist =
7227 db.primary.role.attribute?
7228 & db.common.attributes
7229 & db.common.linking.attributes
7230 & db.sortas.attribute?
7231 db.primary =
7232
7233 ## The primary word or phrase under which an index term should be sorted
7234 element primary { db.primary.attlist, db.all.inlines* }
7235 }
7236 div {
7237 db.secondary.role.attribute = attribute role { text }
7238 db.secondary.attlist =
7239 db.secondary.role.attribute?
7240 & db.common.attributes
7241 & db.common.linking.attributes
7242 & db.sortas.attribute?
7243 db.secondary =
7244
7245 ## A secondary word or phrase in an index term
7246 element secondary { db.secondary.attlist, db.all.inlines* }
7247 }
7248 div {
7249 db.tertiary.role.attribute = attribute role { text }
7250 db.tertiary.attlist =
7251 db.tertiary.role.attribute?
7252 & db.common.attributes
7253 & db.common.linking.attributes
7254 & db.sortas.attribute?
7255 db.tertiary =
7256
7257 ## A tertiary word or phrase in an index term
7258 element tertiary { db.tertiary.attlist, db.all.inlines* }
7259 }
7260 div {
7261 db.see.role.attribute = attribute role { text }
7262 db.see.attlist =
7263 db.see.role.attribute?
7264 & db.common.attributes
7265 & db.common.linking.attributes
7266 db.see =
7267
7268 ## Part of an index term directing the reader instead to another entry in the index
7269 element see { db.see.attlist, db.all.inlines* }
7270 }
7271 div {
7272 db.seealso.role.attribute = attribute role { text }
7273 db.seealso.attlist =
7274 db.seealso.role.attribute?
7275 & db.common.attributes
7276 & db.common.linking.attributes
7277 db.seealso =
7278
7279 ## Part of an index term directing the reader also to another entry in the index
7280 element seealso { db.seealso.attlist, db.all.inlines* }
7281 }
7282 div {
7283 db.index.status.attribute = db.status.attribute
7284 db.index.role.attribute = attribute role { text }
7285 db.index.attlist =
7286 db.index.role.attribute?
7287 & db.common.attributes
7288 & db.common.linking.attributes
7289 & db.label.attribute?
7290 & db.index.status.attribute?
7291 & db.index.type.attribute?
7292 db.index.info = db._info
7293 # Yes, db.indexdiv* and db.indexentry*; that way an <index/> is valid.
7294 # Authors can use an empty index to indicate where a generated index should
7295 # appear.
7296 db.index =
7297
7298 ## An index to a book or part of a book
7299 [
7300 s:pattern [
7301 name = "Root must have version"
7302 "\x{a}" ~
7303 " "
7304 s:rule [
7305 context = "/db:index"
7306 "\x{a}" ~
7307 " "
7308 s:assert [
7309 test = "@version"
7310 "If this element is the root element, it must have a version attribute."
7311 ]
7312 "\x{a}" ~
7313 " "
7314 ]
7315 "\x{a}" ~
7316 " "
7317 ]
7318 ]
7319 element index {
7320 db.index.attlist,
7321 db.index.info,
7322 db.all.blocks*,
7323 (db.indexdiv* | db.indexentry* | db.segmentedlist)
7324 }
7325 }
7326 div {
7327 db.setindex.status.attribute = db.status.attribute
7328 db.setindex.role.attribute = attribute role { text }
7329 db.setindex.attlist =
7330 db.setindex.role.attribute?
7331 & db.common.attributes
7332 & db.common.linking.attributes
7333 & db.label.attribute?
7334 & db.setindex.status.attribute?
7335 & db.index.type.attribute?
7336 db.setindex.info = db._info
7337 db.setindex =
7338
7339 ## An index to a set of books
7340 [
7341 s:pattern [
7342 name = "Root must have version"
7343 "\x{a}" ~
7344 " "
7345 s:rule [
7346 context = "/db:setindex"
7347 "\x{a}" ~
7348 " "
7349 s:assert [
7350 test = "@version"
7351 "If this element is the root element, it must have a version attribute."
7352 ]
7353 "\x{a}" ~
7354 " "
7355 ]
7356 "\x{a}" ~
7357 " "
7358 ]
7359 ]
7360 element setindex {
7361 db.setindex.attlist,
7362 db.setindex.info,
7363 db.all.blocks*,
7364 (db.indexdiv* | db.indexentry*)
7365 }
7366 }
7367 div {
7368 db.indexdiv.status.attribute = db.status.attribute
7369 db.indexdiv.role.attribute = attribute role { text }
7370 db.indexdiv.attlist =
7371 db.indexdiv.role.attribute?
7372 & db.common.attributes
7373 & db.common.linking.attributes
7374 & db.label.attribute?
7375 & db.indexdiv.status.attribute?
7376 db.indexdiv.info = db._info.title.req
7377 db.indexdiv =
7378
7379 ## A division in an index
7380 [
7381 s:pattern [
7382 name = "Root must have version"
7383 "\x{a}" ~
7384 " "
7385 s:rule [
7386 context = "/db:indexdiv"
7387 "\x{a}" ~
7388 " "
7389 s:assert [
7390 test = "@version"
7391 "If this element is the root element, it must have a version attribute."
7392 ]
7393 "\x{a}" ~
7394 " "
7395 ]
7396 "\x{a}" ~
7397 " "
7398 ]
7399 ]
7400 element indexdiv {
7401 db.indexdiv.attlist,
7402 db.indexdiv.info,
7403 db.all.blocks*,
7404 (db.indexentry+ | db.segmentedlist)
7405 }
7406 }
7407 div {
7408 db.indexentry.role.attribute = attribute role { text }
7409 db.indexentry.attlist =
7410 db.indexentry.role.attribute?
7411 & db.common.attributes
7412 & db.common.linking.attributes
7413 db.indexentry =
7414
7415 ## An entry in an index
7416 element indexentry {
7417 db.indexentry.attlist,
7418 db.primaryie,
7419 (db.seeie | db.seealsoie)*,
7420 (db.secondaryie, (db.seeie | db.seealsoie | db.tertiaryie)*)*
7421 }
7422 }
7423 div {
7424 db.primaryie.role.attribute = attribute role { text }
7425 db.primaryie.attlist =
7426 db.primaryie.role.attribute?
7427 & db.common.attributes
7428 & db.linkends.attribute?
7429 db.primaryie =
7430
7431 ## A primary term in an index entry, not in the text
7432 element primaryie { db.primaryie.attlist, db.all.inlines* }
7433 }
7434 div {
7435 db.secondaryie.role.attribute = attribute role { text }
7436 db.secondaryie.attlist =
7437 db.secondaryie.role.attribute?
7438 & db.common.attributes
7439 & db.linkends.attribute?
7440 db.secondaryie =
7441
7442 ## A secondary term in an index entry, rather than in the text
7443 element secondaryie { db.secondaryie.attlist, db.all.inlines* }
7444 }
7445 div {
7446 db.tertiaryie.role.attribute = attribute role { text }
7447 db.tertiaryie.attlist =
7448 db.tertiaryie.role.attribute?
7449 & db.common.attributes
7450 & db.linkends.attribute?
7451 db.tertiaryie =
7452
7453 ## A tertiary term in an index entry, rather than in the text
7454 element tertiaryie { db.tertiaryie.attlist, db.all.inlines* }
7455 }
7456 div {
7457 db.seeie.role.attribute = attribute role { text }
7458 db.seeie.attlist =
7459 db.seeie.role.attribute?
7460 & db.common.attributes
7461 & db.linkend.attribute?
7462 db.seeie =
7463
7464 ## A See
7465 ## entry in an index, rather than in the text
7466 element seeie { db.seeie.attlist, db.all.inlines* }
7467 }
7468 div {
7469 db.seealsoie.role.attribute = attribute role { text }
7470 db.seealsoie.attlist =
7471 db.seealsoie.role.attribute?
7472 & db.common.attributes
7473 & db.linkends.attribute?
7474 db.seealsoie =
7475
7476 ## A See also
7477 ## entry in an index, rather than in the text
7478 element seealsoie { db.seealsoie.attlist, db.all.inlines* }
7479 }
7480 db.toc.pagenum.attribute =
7481
7482 ## Indicates the page on which this element occurs in some version of the printed document
7483 attribute pagenum { text }
7484 div {
7485 db.toc.role.attribute = attribute role { text }
7486 db.toc.attlist =
7487 db.toc.role.attribute?
7488 & db.common.attributes
7489 & db.common.linking.attributes
7490 db.toc.info = db._info.title.only
7491 db.toc =
7492
7493 ## A table of contents
7494 [
7495 s:pattern [
7496 name = "Root must have version"
7497 "\x{a}" ~
7498 " "
7499 s:rule [
7500 context = "/db:toc"
7501 "\x{a}" ~
7502 " "
7503 s:assert [
7504 test = "@version"
7505 "If this element is the root element, it must have a version attribute."
7506 ]
7507 "\x{a}" ~
7508 " "
7509 ]
7510 "\x{a}" ~
7511 " "
7512 ]
7513 ]
7514 element toc {
7515 db.toc.attlist,
7516 db.toc.info,
7517 db.all.blocks*,
7518 (db.tocdiv | db.tocentry)*
7519 }
7520 }
7521 div {
7522 db.tocdiv.role.attribute = attribute role { text }
7523 db.tocdiv.pagenum.attribute = db.toc.pagenum.attribute
7524 db.tocdiv.attlist =
7525 db.tocdiv.role.attribute?
7526 & db.common.attributes
7527 & db.tocdiv.pagenum.attribute?
7528 & db.linkend.attribute?
7529 db.tocdiv.info = db._info
7530 db.tocdiv =
7531
7532 ## A division in a table of contents
7533 [
7534 s:pattern [
7535 name = "Root must have version"
7536 "\x{a}" ~
7537 " "
7538 s:rule [
7539 context = "/db:tocdiv"
7540 "\x{a}" ~
7541 " "
7542 s:assert [
7543 test = "@version"
7544 "If this element is the root element, it must have a version attribute."
7545 ]
7546 "\x{a}" ~
7547 " "
7548 ]
7549 "\x{a}" ~
7550 " "
7551 ]
7552 ]
7553 element tocdiv {
7554 db.tocdiv.attlist,
7555 db.tocdiv.info,
7556 db.all.blocks*,
7557 (db.tocdiv | db.tocentry)+
7558 }
7559 }
7560 div {
7561 db.tocentry.role.attribute = attribute role { text }
7562 db.tocentry.pagenum.attribute = db.toc.pagenum.attribute
7563 db.tocentry.attlist =
7564 db.tocentry.role.attribute?
7565 & db.common.attributes
7566 & db.tocentry.pagenum.attribute?
7567 & db.linkend.attribute?
7568 db.tocentry =
7569
7570 ## A component title in a table of contents
7571 element tocentry { db.tocentry.attlist, db.all.inlines* }
7572 }
7573 db.task.info = db._info.title.req
7574 div {
7575 db.task.role.attribute = attribute role { text }
7576 db.task.attlist =
7577 db.task.role.attribute?
7578 & db.common.attributes
7579 & db.common.linking.attributes
7580 db.task =
7581
7582 ## A task to be completed
7583 [
7584 s:pattern [
7585 name = "Root must have version"
7586 "\x{a}" ~
7587 " "
7588 s:rule [
7589 context = "/db:task"
7590 "\x{a}" ~
7591 " "
7592 s:assert [
7593 test = "@version"
7594 "If this element is the root element, it must have a version attribute."
7595 ]
7596 "\x{a}" ~
7597 " "
7598 ]
7599 "\x{a}" ~
7600 " "
7601 ]
7602 ]
7603 element task {
7604 db.task.attlist,
7605 db.task.info,
7606 db.tasksummary?,
7607 db.taskprerequisites?,
7608 db.procedure+,
7609 db.example*,
7610 db.taskrelated?
7611 }
7612 }
7613 div {
7614 db.tasksummary.role.attribute = attribute role { text }
7615 db.tasksummary.attlist =
7616 db.tasksummary.role.attribute?
7617 & db.common.attributes
7618 & db.common.linking.attributes
7619 db.tasksummary.info = db._info.title.only
7620 db.tasksummary =
7621
7622 ## A summary of a task
7623 [
7624 s:pattern [
7625 name = "Root must have version"
7626 "\x{a}" ~
7627 " "
7628 s:rule [
7629 context = "/db:tasksummary"
7630 "\x{a}" ~
7631 " "
7632 s:assert [
7633 test = "@version"
7634 "If this element is the root element, it must have a version attribute."
7635 ]
7636 "\x{a}" ~
7637 " "
7638 ]
7639 "\x{a}" ~
7640 " "
7641 ]
7642 ]
7643 element tasksummary {
7644 db.tasksummary.attlist, db.tasksummary.info, db.all.blocks+
7645 }
7646 }
7647 div {
7648 db.taskprerequisites.role.attribute = attribute role { text }
7649 db.taskprerequisites.attlist =
7650 db.taskprerequisites.role.attribute?
7651 & db.common.attributes
7652 & db.common.linking.attributes
7653 db.taskprerequisites.info = db._info.title.only
7654 db.taskprerequisites =
7655
7656 ## The prerequisites for a task
7657 [
7658 s:pattern [
7659 name = "Root must have version"
7660 "\x{a}" ~
7661 " "
7662 s:rule [
7663 context = "/db:taskprerequisites"
7664 "\x{a}" ~
7665 " "
7666 s:assert [
7667 test = "@version"
7668 "If this element is the root element, it must have a version attribute."
7669 ]
7670 "\x{a}" ~
7671 " "
7672 ]
7673 "\x{a}" ~
7674 " "
7675 ]
7676 ]
7677 element taskprerequisites {
7678 db.taskprerequisites.attlist,
7679 db.taskprerequisites.info,
7680 db.all.blocks+
7681 }
7682 }
7683 div {
7684 db.taskrelated.role.attribute = attribute role { text }
7685 db.taskrelated.attlist =
7686 db.taskrelated.role.attribute?
7687 & db.common.attributes
7688 & db.common.linking.attributes
7689 db.taskrelated.info = db._info.title.only
7690 db.taskrelated =
7691
7692 ## Information related to a task
7693 [
7694 s:pattern [
7695 name = "Root must have version"
7696 "\x{a}" ~
7697 " "
7698 s:rule [
7699 context = "/db:taskrelated"
7700 "\x{a}" ~
7701 " "
7702 s:assert [
7703 test = "@version"
7704 "If this element is the root element, it must have a version attribute."
7705 ]
7706 "\x{a}" ~
7707 " "
7708 ]
7709 "\x{a}" ~
7710 " "
7711 ]
7712 ]
7713 element taskrelated {
7714 db.taskrelated.attlist, db.taskrelated.info, db.all.blocks+
7715 }
7716 }
7717 db.area.units.enumeration =
7718
7719 ## Coordinates expressed as a pair of CALS graphic coordinates.
7720 "calspair"
7721 |
7722 ## Coordinates expressed as a line and column.
7723 "linecolumn"
7724 |
7725 ## Coordinates expressed as a pair of lines and columns.
7726 "linecolumnpair"
7727 |
7728 ## Coordinates expressed as a line range.
7729 "linerange"
7730 db.area.units-enum.attribute =
7731
7732 ## Identifies the units used in the coords attribute. The default units vary according to the type of callout specified: calspair
7733 ## for graphics and linecolumn
7734 ## for line-oriented elements.
7735 attribute units { db.area.units.enumeration }?
7736 db.area.units-other.attributes =
7737
7738 ## Indicates that non-standard units are used for this area
7739 ## . In this case otherunits
7740 ## must be specified.
7741 attribute units {
7742
7743 ## Coordinates expressed in some non-standard units.
7744 "other"
7745 }?,
7746
7747 ## Identifies the units used in the coords
7748 ## attribute when the units
7749 ## attribute is other
7750 ## . This attribute is forbidden otherwise.
7751 attribute otherunits { xsd:NMTOKEN }
7752 db.area.units.attribute =
7753 db.area.units-enum.attribute | db.area.units-other.attributes
7754 div {
7755 db.calloutlist.role.attribute = attribute role { text }
7756 db.calloutlist.attlist =
7757 db.calloutlist.role.attribute?
7758 & db.common.attributes
7759 & db.common.linking.attributes
7760 db.calloutlist.info = db._info.title.only
7761 db.calloutlist =
7762
7763 ## A list of callout
7764 ## s
7765 [
7766 s:pattern [
7767 name = "Root must have version"
7768 "\x{a}" ~
7769 " "
7770 s:rule [
7771 context = "/db:calloutlist"
7772 "\x{a}" ~
7773 " "
7774 s:assert [
7775 test = "@version"
7776 "If this element is the root element, it must have a version attribute."
7777 ]
7778 "\x{a}" ~
7779 " "
7780 ]
7781 "\x{a}" ~
7782 " "
7783 ]
7784 ]
7785 element calloutlist {
7786 db.calloutlist.attlist,
7787 db.calloutlist.info,
7788 db.all.blocks*,
7789 db.callout+
7790 }
7791 }
7792 div {
7793 db.callout.role.attribute = attribute role { text }
7794 db.callout.arearefs.attribute =
7795
7796 ## Identifies the areas described by this callout.
7797 attribute arearefs { xsd:IDREFS }
7798 db.callout.attlist =
7799 db.callout.role.attribute?
7800 & db.common.attributes
7801 & db.callout.arearefs.attribute
7802 db.callout =
7803
7804 ## A called out
7805 ## description of a marked area
7806 element callout { db.callout.attlist, db.all.blocks+ }
7807 }
7808 div {
7809 db.programlistingco.role.attribute = attribute role { text }
7810 db.programlistingco.attlist =
7811 db.programlistingco.role.attribute?
7812 & db.common.attributes
7813 & db.common.linking.attributes
7814 db.programlistingco.info = db._info.title.forbidden
7815 db.programlistingco =
7816
7817 ## A program listing with associated areas used in callouts
7818 [
7819 s:pattern [
7820 name = "Root must have version"
7821 "\x{a}" ~
7822 " "
7823 s:rule [
7824 context = "/db:programlistingco"
7825 "\x{a}" ~
7826 " "
7827 s:assert [
7828 test = "@version"
7829 "If this element is the root element, it must have a version attribute."
7830 ]
7831 "\x{a}" ~
7832 " "
7833 ]
7834 "\x{a}" ~
7835 " "
7836 ]
7837 ]
7838 element programlistingco {
7839 db.programlistingco.attlist,
7840 db.programlistingco.info,
7841 db.areaspec,
7842 db.programlisting,
7843 db.calloutlist*
7844 }
7845 }
7846 div {
7847 db.areaspec.role.attribute = attribute role { text }
7848 db.areaspec.attlist =
7849 db.areaspec.role.attribute?
7850 & db.common.attributes
7851 & db.common.linking.attributes
7852 & db.area.units.attribute
7853 db.areaspec =
7854
7855 ## A collection of regions in a graphic or code example
7856 element areaspec { db.areaspec.attlist, (db.area | db.areaset)+ }
7857 }
7858 div {
7859 db.area.role.attribute = attribute role { text }
7860 db.area.linkends.attribute =
7861
7862 ## Point to the callout
7863 ## s which refer to this area. (This provides bidirectional linking which may be useful in online presentation.)
7864 attribute linkends { xsd:IDREFS }
7865 db.area.label.attribute =
7866
7867 ## Specifies an identifying number or string that may be used in presentation. The area label might be drawn on top of the figure, for example, at the position indicated by the coords attribute.
7868 attribute label { text }
7869 db.area.coords.attribute =
7870
7871 ## Provides the coordinates of the area. The coordinates must be interpreted using the units
7872 ## specified.
7873 attribute coords { text }
7874 db.area.attlist =
7875 db.area.role.attribute?
7876 & db.common.idreq.attributes
7877 & db.area.units.attribute
7878 & (db.area.linkends.attribute | db.xlink.simple.link.attributes)?
7879 & db.area.label.attribute?
7880 & db.area.coords.attribute
7881 db.area =
7882
7883 ## A region defined for a callout in a graphic or code example
7884 element area { db.area.attlist, db.alt? }
7885 }
7886 div {
7887 # The only difference is that xml:id is optional
7888 db.area.inareaset.attlist =
7889 db.area.role.attribute?
7890 & db.common.attributes
7891 & db.area.units.attribute
7892 & (db.area.linkends.attribute | db.xlink.simple.link.attributes)?
7893 & db.area.label.attribute?
7894 & db.area.coords.attribute
7895 db.area.inareaset =
7896
7897 ## A region defined for a callout in a graphic or code example
7898 element area { db.area.inareaset.attlist, db.alt? }
7899 }
7900 div {
7901 db.areaset.role.attribute = attribute role { text }
7902 db.areaset.linkends.attribute = db.linkends.attribute
7903 db.areaset.label.attribute = db.label.attribute
7904 db.areaset.attlist =
7905 db.areaset.role.attribute?
7906 & db.common.idreq.attributes
7907 & db.area.units.attribute
7908 & (db.areaset.linkends.attribute | db.xlink.simple.link.attributes)?
7909 & db.areaset.label.attribute?
7910 db.areaset =
7911
7912 ## A set of related areas in a graphic or code example
7913 element areaset { db.areaset.attlist, db.area.inareaset+ }
7914 }
7915 div {
7916 db.screenco.role.attribute = attribute role { text }
7917 db.screenco.attlist =
7918 db.screenco.role.attribute?
7919 & db.common.attributes
7920 & db.common.linking.attributes
7921 db.screenco.info = db._info.title.forbidden
7922 db.screenco =
7923
7924 ## A screen with associated areas used in callouts
7925 [
7926 s:pattern [
7927 name = "Root must have version"
7928 "\x{a}" ~
7929 " "
7930 s:rule [
7931 context = "/db:screenco"
7932 "\x{a}" ~
7933 " "
7934 s:assert [
7935 test = "@version"
7936 "If this element is the root element, it must have a version attribute."
7937 ]
7938 "\x{a}" ~
7939 " "
7940 ]
7941 "\x{a}" ~
7942 " "
7943 ]
7944 ]
7945 element screenco {
7946 db.screenco.attlist,
7947 db.screenco.info,
7948 db.areaspec,
7949 db.screen,
7950 db.calloutlist*
7951 }
7952 }
7953 div {
7954 db.imageobjectco.role.attribute = attribute role { text }
7955 db.imageobjectco.attlist =
7956 db.imageobjectco.role.attribute?
7957 & db.common.attributes
7958 & db.common.linking.attributes
7959 db.imageobjectco.info = db._info.title.forbidden
7960 db.imageobjectco =
7961
7962 ## A wrapper for an image object with callouts
7963 [
7964 s:pattern [
7965 name = "Root must have version"
7966 "\x{a}" ~
7967 " "
7968 s:rule [
7969 context = "/db:imageobjectco"
7970 "\x{a}" ~
7971 " "
7972 s:assert [
7973 test = "@version"
7974 "If this element is the root element, it must have a version attribute."
7975 ]
7976 "\x{a}" ~
7977 " "
7978 ]
7979 "\x{a}" ~
7980 " "
7981 ]
7982 ]
7983 element imageobjectco {
7984 db.imageobjectco.attlist,
7985 db.imageobjectco.info,
7986 db.areaspec,
7987 db.imageobject+,
7988 db.calloutlist*
7989 }
7990 }
7991 div {
7992 db.co.role.attribute = attribute role { text }
7993 db.co.linkends.attribute = db.linkends.attribute
7994 db.co.label.attribute = db.label.attribute
7995 db.co.attlist =
7996 db.co.role.attribute?
7997 & db.common.idreq.attributes
7998 & db.co.linkends.attribute?
7999 & db.co.label.attribute?
8000 db.co =
8001
8002 ## The location of a callout embedded in text
8003 element co { db.co.attlist, empty }
8004 }
8005 div {
8006 db.coref.role.attribute = attribute role { text }
8007 db.coref.label.attribute = db.label.attribute
8008 db.coref.attlist =
8009 db.coref.role.attribute?
8010 & db.common.attributes
8011 & db.linkend.attribute
8012 & db.coref.label.attribute?
8013 db.coref =
8014
8015 ## A cross reference to a co
8016 element coref { db.coref.attlist, empty }
8017 }
8018 div {
8019 db.productionset.role.attribute = attribute role { text }
8020 db.productionset.attlist =
8021 db.productionset.role.attribute?
8022 & db.common.attributes
8023 & db.common.linking.attributes
8024 db.productionset.info = db._info.title.only
8025 db.productionset =
8026
8027 ## A set of EBNF productions
8028 [
8029 s:pattern [
8030 name = "Root must have version"
8031 "\x{a}" ~
8032 " "
8033 s:rule [
8034 context = "/db:productionset"
8035 "\x{a}" ~
8036 " "
8037 s:assert [
8038 test = "@version"
8039 "If this element is the root element, it must have a version attribute."
8040 ]
8041 "\x{a}" ~
8042 " "
8043 ]
8044 "\x{a}" ~
8045 " "
8046 ]
8047 ]
8048 element productionset {
8049 db.productionset.attlist,
8050 db.productionset.info,
8051 (db.production | db.productionrecap)+
8052 }
8053 }
8054 div {
8055 db.production.role.attribute = attribute role { text }
8056 db.production.attlist =
8057 db.production.role.attribute?
8058 & db.common.idreq.attributes
8059 & db.common.linking.attributes
8060 db.production =
8061
8062 ## A production in a set of EBNF productions
8063 element production {
8064 db.production.attlist, db.lhs, db.rhs+, db.constraint*
8065 }
8066 }
8067 div {
8068 db.lhs.role.attribute = attribute role { text }
8069 db.lhs.attlist =
8070 db.lhs.role.attribute?
8071 & db.common.attributes
8072 & db.common.linking.attributes
8073 db.lhs =
8074
8075 ## The left-hand side of an EBNF production
8076 element lhs { db.lhs.attlist, text }
8077 }
8078 div {
8079 db.rhs.role.attribute = attribute role { text }
8080 db.rhs.attlist =
8081 db.rhs.role.attribute?
8082 & db.common.attributes
8083 & db.common.linking.attributes
8084 db.rhs =
8085
8086 ## The right-hand side of an EBNF production
8087 element rhs {
8088 db.rhs.attlist,
8089 (text | db.nonterminal | db.lineannotation | db.sbr)*
8090 }
8091 }
8092 div {
8093 db.nonterminal.role.attribute = attribute role { text }
8094 db.nonterminal.def.attribute =
8095
8096 ## Specifies a URI that points to a production
8097 ## where the nonterminal
8098 ## is defined
8099 attribute def { xsd:anyURI }
8100 db.nonterminal.attlist =
8101 db.nonterminal.role.attribute?
8102 & db.common.attributes
8103 & db.common.linking.attributes
8104 & db.nonterminal.def.attribute
8105 db.nonterminal =
8106
8107 ## A non-terminal in an EBNF production
8108 element nonterminal { db.nonterminal.attlist, text }
8109 }
8110 div {
8111 db.constraint.role.attribute = attribute role { text }
8112 db.constraint.attlist =
8113 db.constraint.role.attribute?
8114 & db.common.attributes
8115 & db.common.req.linking.attributes
8116 db.constraint =
8117
8118 ## A constraint in an EBNF production
8119 element constraint { db.constraint.attlist, empty }
8120 }
8121 div {
8122 db.productionrecap.role.attribute = attribute role { text }
8123 db.productionrecap.attlist =
8124 db.productionrecap.role.attribute?
8125 & db.common.attributes
8126 & db.common.req.linking.attributes
8127 db.productionrecap =
8128
8129 ## A cross-reference to an EBNF production
8130 element productionrecap { db.productionrecap.attlist, empty }
8131 }
8132 div {
8133 db.constraintdef.role.attribute = attribute role { text }
8134 db.constraintdef.attlist =
8135 db.constraintdef.role.attribute?
8136 & db.common.attributes
8137 & db.common.linking.attributes
8138 db.constraintdef.info = db._info.title.only
8139 db.constraintdef =
8140
8141 ## The definition of a constraint in an EBNF production
8142 [
8143 s:pattern [
8144 name = "Root must have version"
8145 "\x{a}" ~
8146 " "
8147 s:rule [
8148 context = "/db:constraintdef"
8149 "\x{a}" ~
8150 " "
8151 s:assert [
8152 test = "@version"
8153 "If this element is the root element, it must have a version attribute."
8154 ]
8155 "\x{a}" ~
8156 " "
8157 ]
8158 "\x{a}" ~
8159 " "
8160 ]
8161 ]
8162 element constraintdef {
8163 db.constraintdef.attlist, db.constraintdef.info, db.all.blocks+
8164 }
8165 }
8166 db.char.attribute =
8167
8168 ## Specifies the alignment character when align
8169 ## is set to char
8170 ## .
8171 attribute char { text }
8172 db.charoff.attribute =
8173
8174 ## Specifies the percentage of the column's total width that should appear to the left of the first occurance of the character identified in char
8175 ## when align
8176 ## is set to char
8177 ## .
8178 attribute charoff {
8179 xsd:decimal { minExclusive = "0" maxExclusive = "100" }
8180 }
8181 db.frame.attribute =
8182
8183 ## Specifies how the table is to be framed. Note that there is no way to obtain a border on only the starting edge (left, in left-to-right writing systems) of the table.
8184 attribute frame {
8185
8186 ## Frame all four sides of the table. In some environments with limited control over table border formatting, such as HTML, this may imply additional borders.
8187 "all"
8188 |
8189 ## Frame only the bottom of the table.
8190 "bottom"
8191 |
8192 ## Place no border on the table. In some environments with limited control over table border formatting, such as HTML, this may disable other borders as well.
8193 "none"
8194 |
8195 ## Frame the left and right sides of the table.
8196 "sides"
8197 |
8198 ## Frame the top of the table.
8199 "top"
8200 |
8201 ## Frame the top and bottom of the table.
8202 "topbot"
8203 }
8204 db.colsep.attribute =
8205
8206 ## Specifies the presence or absence of the column separator
8207 attribute colsep {
8208
8209 ## No column separator rule.
8210 "0"
8211 |
8212 ## Provide a column separator rule on the right
8213 "1"
8214 }
8215 db.rowsep.attribute =
8216
8217 ## Specifies the presence or absence of the row separator
8218 attribute rowsep {
8219
8220 ## No row separator rule.
8221 "0"
8222 |
8223 ## Provide a row separator rule below
8224 "1"
8225 }
8226 db.orient.attribute =
8227
8228 ## Specifies the orientation of the table
8229 attribute orient {
8230
8231 ## 90 degrees counter-clockwise from the rest of the text flow.
8232 "land"
8233 |
8234 ## The same orientation as the rest of the text flow.
8235 "port"
8236 }
8237 db.tabstyle.attribute =
8238
8239 ## Specifies the table style
8240 attribute tabstyle { text }
8241 db.rowheader.attribute =
8242
8243 ## Indicates whether or not the entries in the first column should be considered row headers
8244 attribute rowheader {
8245
8246 ## Indicates that entries in the first column of the table are functionally row headers (analogous to the way that a thead provides column headers).
8247 "firstcol"
8248 |
8249 ## Indicates that entries in the first column have no special significance with respect to column headers.
8250 "norowheader"
8251 }
8252 db.align.attribute =
8253
8254 ## Specifies the horizontal alignment of text in an entry.
8255 attribute align {
8256
8257 ## Centered.
8258 "center"
8259 |
8260 ## Aligned on a particular character.
8261 "char"
8262 |
8263 ## Left and right justified.
8264 "justify"
8265 |
8266 ## Left justified.
8267 "left"
8268 |
8269 ## Right justified.
8270 "right"
8271 }
8272 db.valign.attribute =
8273
8274 ## Specifies the vertical alignment of text in an entry.
8275 attribute valign {
8276
8277 ## Aligned on the bottom of the entry.
8278 "bottom"
8279 |
8280 ## Aligned in the middle.
8281 "middle"
8282 |
8283 ## Aligned at the top of the entry.
8284 "top"
8285 }
8286 db.specify-col-by-colname.attributes =
8287
8288 ## Specifies a column specification by name.
8289 attribute colname { text }
8290 db.specify-col-by-namest.attributes =
8291
8292 ## Specifies a starting column by name.
8293 attribute namest { text }
8294 db.specify-span-by-spanspec.attributes =
8295
8296 ## Specifies a span by name.
8297 attribute spanname { text }
8298 db.specify-span-directly.attributes =
8299
8300 ## Specifies a starting column by name.
8301 attribute namest { text }
8302 &
8303 ## Specifies an ending column by name.
8304 attribute nameend { text }
8305 db.column-spec.attributes =
8306 db.specify-col-by-colname.attributes
8307 | db.specify-col-by-namest.attributes
8308 | db.specify-span-by-spanspec.attributes
8309 | db.specify-span-directly.attributes
8310 db.colname.attribute =
8311
8312 ## Provides a name for a column specification.
8313 attribute colname { text }
8314 db.spanname.attribute =
8315
8316 ## Provides a name for a span specification.
8317 attribute spanname { text }
8318 div {
8319 db.tgroup.role.attribute = attribute role { text }
8320 db.tgroup.tgroupstyle.attribute =
8321
8322 ## Additional style information for downstream processing; typically the name of a style.
8323 attribute tgroupstyle { text }
8324 db.tgroup.cols.attribute =
8325
8326 ## The number of columns in the table. Must be an integer greater than zero.
8327 attribute cols { xsd:positiveInteger }
8328 db.tgroup.attlist =
8329 db.tgroup.role.attribute?
8330 & db.common.attributes
8331 & db.common.linking.attributes
8332 & db.char.attribute?
8333 & db.charoff.attribute?
8334 & db.tgroup.tgroupstyle.attribute?
8335 & db.tgroup.cols.attribute
8336 & db.colsep.attribute?
8337 & db.rowsep.attribute?
8338 & db.align.attribute?
8339 db.tgroup =
8340
8341 ## A wrapper for the main content of a table, or part of a table
8342 element tgroup {
8343 db.tgroup.attlist,
8344 db.colspec*,
8345 db.spanspec*,
8346 db.cals.thead?,
8347 db.cals.tfoot?,
8348 db.cals.tbody
8349 }
8350 }
8351 div {
8352 db.colspec.role.attribute = attribute role { text }
8353 db.colspec.colnum.attribute =
8354
8355 ## The number of the column to which this specification applies. Must be greater than any preceding column number. Defaults to one more than the number of the preceding column, if there is one, or one.
8356 attribute colnum { xsd:positiveInteger }
8357 db.colspec.colwidth.attribute =
8358
8359 ## Specifies the width of the column.
8360 attribute colwidth { text }
8361 db.colspec.attlist =
8362 db.colspec.role.attribute?
8363 & db.common.attributes
8364 & db.common.linking.attributes
8365 & db.colspec.colnum.attribute?
8366 & db.char.attribute?
8367 & db.colsep.attribute?
8368 & db.colspec.colwidth.attribute?
8369 & db.charoff.attribute?
8370 & db.colname.attribute?
8371 & db.rowsep.attribute?
8372 & db.align.attribute?
8373 db.colspec =
8374
8375 ## Specifications for a column in a table
8376 element colspec { db.colspec.attlist, empty }
8377 }
8378 div {
8379 db.spanspec.role.attribute = attribute role { text }
8380 db.spanspec.namest.attribute =
8381
8382 ## Specifies a starting column by name.
8383 attribute namest { text }
8384 db.spanspec.nameend.attribute =
8385
8386 ## Specifies an ending column by name.
8387 attribute nameend { text }
8388 db.spanspec.attlist =
8389 db.spanspec.role.attribute?
8390 & db.common.attributes
8391 & db.common.linking.attributes
8392 & db.spanname.attribute
8393 & db.spanspec.namest.attribute
8394 & db.spanspec.nameend.attribute
8395 & db.char.attribute?
8396 & db.colsep.attribute?
8397 & db.charoff.attribute?
8398 & db.rowsep.attribute?
8399 & db.align.attribute?
8400 db.spanspec =
8401
8402 ## Formatting information for a spanned column in a table
8403 element spanspec { db.spanspec.attlist, empty }
8404 }
8405 div {
8406 db.cals.thead.role.attribute = attribute role { text }
8407 db.cals.thead.attlist =
8408 db.cals.thead.role.attribute?
8409 & db.common.attributes
8410 & db.common.linking.attributes
8411 & db.valign.attribute?
8412 db.cals.thead =
8413
8414 ## A table header consisting of one or more rows
8415 element thead { db.cals.thead.attlist, db.colspec*, db.row+ }
8416 }
8417 div {
8418 db.cals.tfoot.role.attribute = attribute role { text }
8419 db.cals.tfoot.attlist =
8420 db.cals.tfoot.role.attribute?
8421 & db.common.attributes
8422 & db.common.linking.attributes
8423 & db.valign.attribute?
8424 db.cals.tfoot =
8425
8426 ## A table footer consisting of one or more rows
8427 element tfoot { db.cals.tfoot.attlist, db.colspec*, db.row+ }
8428 }
8429 div {
8430 db.cals.tbody.role.attribute = attribute role { text }
8431 db.cals.tbody.attlist =
8432 db.cals.tbody.role.attribute?
8433 & db.common.attributes
8434 & db.common.linking.attributes
8435 & db.valign.attribute?
8436 db.cals.tbody =
8437
8438 ## A wrapper for the rows of a table or informal table
8439 element tbody { db.cals.tbody.attlist, db.row+ }
8440 }
8441 div {
8442 db.row.role.attribute = attribute role { text }
8443 db.row.attlist =
8444 db.row.role.attribute?
8445 & db.common.attributes
8446 & db.common.linking.attributes
8447 & db.rowsep.attribute?
8448 & db.valign.attribute?
8449 db.row =
8450
8451 ## A row in a table
8452 element row { db.row.attlist, (db.entry | db.entrytbl)+ }
8453 }
8454 div {
8455 db.entry.role.attribute = attribute role { text }
8456 db.entry.morerows.attribute =
8457
8458 ## Specifies the number of additional rows which this entry occupies. Defaults to zero.
8459 attribute morerows { xsd:integer }
8460 db.entry.rotate.attribute =
8461
8462 ## Specifies the rotation of this entry. A value of 1 (true) rotates the cell 90 degrees counter-clockwise. A value of 0 (false) leaves the cell unrotated.
8463 attribute rotate {
8464
8465 ## Do not rotate the cell.
8466 "0"
8467 |
8468 ## Rotate the cell 90 degrees counter-clockwise.
8469 "1"
8470 }
8471 db.entry.attlist =
8472 db.entry.role.attribute?
8473 & db.common.attributes
8474 & db.common.linking.attributes
8475 & db.valign.attribute?
8476 & db.char.attribute?
8477 & db.colsep.attribute?
8478 & db.charoff.attribute?
8479 & db.entry.morerows.attribute?
8480 & db.column-spec.attributes?
8481 & db.rowsep.attribute?
8482 & db.entry.rotate.attribute?
8483 & db.align.attribute?
8484 db.entry =
8485
8486 ## A cell in a table
8487 [
8488 s:pattern [
8489 name = "Element exclusion"
8490 "\x{a}" ~
8491 " "
8492 s:rule [
8493 context = "db:entry"
8494 "\x{a}" ~
8495 " "
8496 s:assert [
8497 test = "not(.//db:table)"
8498 "table must not occur among the children or descendants of entry"
8499 ]
8500 "\x{a}" ~
8501 " "
8502 ]
8503 "\x{a}" ~
8504 " "
8505 ]
8506 s:pattern [
8507 name = "Element exclusion"
8508 "\x{a}" ~
8509 " "
8510 s:rule [
8511 context = "db:entry"
8512 "\x{a}" ~
8513 " "
8514 s:assert [
8515 test = "not(.//db:informaltable)"
8516 "informaltable must not occur among the children or descendants of entry"
8517 ]
8518 "\x{a}" ~
8519 " "
8520 ]
8521 "\x{a}" ~
8522 " "
8523 ]
8524 ]
8525 element entry {
8526 db.entry.attlist, (db.all.inlines* | db.all.blocks*)
8527 }
8528 }
8529 div {
8530 db.entrytbl.role.attribute = attribute role { text }
8531 db.entrytbl.tgroupstyle.attribute =
8532
8533 ## Additional style information for downstream processing; typically the name of a style.
8534 attribute tgroupstyle { text }
8535 db.entrytbl.cols.attribute =
8536
8537 ## The number of columns in the entry table. Must be an integer greater than zero.
8538 attribute cols { xsd:positiveInteger }
8539 db.entrytbl.attlist =
8540 db.entrytbl.role.attribute?
8541 & db.common.attributes
8542 & db.common.linking.attributes
8543 & db.char.attribute?
8544 & db.charoff.attribute?
8545 & db.column-spec.attributes?
8546 & db.entrytbl.tgroupstyle.attribute?
8547 & db.entrytbl.cols.attribute?
8548 & db.colsep.attribute?
8549 & db.rowsep.attribute?
8550 & db.align.attribute?
8551 db.entrytbl =
8552
8553 ## A subtable appearing in place of an entry in a table
8554 element entrytbl {
8555 db.entrytbl.attlist,
8556 db.colspec*,
8557 db.spanspec*,
8558 db.cals.entrytbl.thead?,
8559 db.cals.entrytbl.tbody
8560 }
8561 }
8562 div {
8563 db.cals.entrytbl.thead.role.attribute = attribute role { text }
8564 db.cals.entrytbl.thead.attlist =
8565 db.cals.entrytbl.thead.role.attribute?
8566 & db.common.attributes
8567 & db.common.linking.attributes
8568 & db.valign.attribute?
8569 db.cals.entrytbl.thead =
8570
8571 ## A table header consisting of one or more rows
8572 element thead {
8573 db.cals.entrytbl.thead.attlist, db.colspec*, db.entrytbl.row+
8574 }
8575 }
8576 div {
8577 db.cals.entrytbl.tbody.role.attribute = attribute role { text }
8578 db.cals.entrytbl.tbody.attlist =
8579 db.cals.entrytbl.tbody.role.attribute?
8580 & db.common.attributes
8581 & db.common.linking.attributes
8582 & db.valign.attribute?
8583 db.cals.entrytbl.tbody =
8584
8585 ## A wrapper for the rows of a table or informal table
8586 element tbody { db.cals.entrytbl.tbody.attlist, db.entrytbl.row+ }
8587 }
8588 div {
8589 db.entrytbl.row.role.attribute = attribute role { text }
8590 db.entrytbl.row.attlist =
8591 db.entrytbl.row.role.attribute?
8592 & db.common.attributes
8593 & db.common.linking.attributes
8594 & db.rowsep.attribute?
8595 & db.valign.attribute?
8596 db.entrytbl.row =
8597
8598 ## A row in a table
8599 element row { db.entrytbl.row.attlist, db.entry+ }
8600 }
8601 div {
8602 db.cals.table.role.attribute = attribute role { text }
8603 db.cals.table.label.attribute = db.label.attribute
8604 db.cals.table.attlist =
8605 db.cals.table.role.attribute?
8606 & db.cals.table.label.attribute?
8607 & db.common.attributes
8608 & db.common.linking.attributes
8609 & db.tabstyle.attribute?
8610 & db.floatstyle.attribute?
8611 & db.orient.attribute?
8612 & db.colsep.attribute?
8613 & db.rowsep.attribute?
8614 & db.frame.attribute?
8615 & db.pgwide.attribute?
8616 &
8617 ## Indicates if the short or long title should be used in a List of Tables
8618 attribute shortentry {
8619
8620 ## Indicates that the full title should be used.
8621 "0"
8622 |
8623 ## Indicates that the short short title (titleabbrev) should be used.
8624 "1"
8625 }?
8626 &
8627 ## Indicates if the table should appear in a List of Tables
8628 attribute tocentry {
8629
8630 ## Indicates that the table should not occur in the List of Tables.
8631 "0"
8632 |
8633 ## Indicates that the table should appear in the List of Tables.
8634 "1"
8635 }?
8636 & db.rowheader.attribute?
8637 db.cals.table.info = db._info.title.onlyreq
8638 db.cals.table =
8639
8640 ## A formal table in a document
8641 [
8642 s:pattern [
8643 name = "Element exclusion"
8644 "\x{a}" ~
8645 " "
8646 s:rule [
8647 context = "db:table"
8648 "\x{a}" ~
8649 " "
8650 s:assert [
8651 test = "not(.//db:example)"
8652 "example must not occur among the children or descendants of table"
8653 ]
8654 "\x{a}" ~
8655 " "
8656 ]
8657 "\x{a}" ~
8658 " "
8659 ]
8660 s:pattern [
8661 name = "Element exclusion"
8662 "\x{a}" ~
8663 " "
8664 s:rule [
8665 context = "db:table"
8666 "\x{a}" ~
8667 " "
8668 s:assert [
8669 test = "not(.//db:figure)"
8670 "figure must not occur among the children or descendants of table"
8671 ]
8672 "\x{a}" ~
8673 " "
8674 ]
8675 "\x{a}" ~
8676 " "
8677 ]
8678 s:pattern [
8679 name = "Element exclusion"
8680 "\x{a}" ~
8681 " "
8682 s:rule [
8683 context = "db:table"
8684 "\x{a}" ~
8685 " "
8686 s:assert [
8687 test = "not(.//db:equation)"
8688 "equation must not occur among the children or descendants of table"
8689 ]
8690 "\x{a}" ~
8691 " "
8692 ]
8693 "\x{a}" ~
8694 " "
8695 ]
8696 s:pattern [
8697 name = "Element exclusion"
8698 "\x{a}" ~
8699 " "
8700 s:rule [
8701 context = "db:table"
8702 "\x{a}" ~
8703 " "
8704 s:assert [
8705 test = "not(.//db:caution)"
8706 "caution must not occur among the children or descendants of table"
8707 ]
8708 "\x{a}" ~
8709 " "
8710 ]
8711 "\x{a}" ~
8712 " "
8713 ]
8714 s:pattern [
8715 name = "Element exclusion"
8716 "\x{a}" ~
8717 " "
8718 s:rule [
8719 context = "db:table"
8720 "\x{a}" ~
8721 " "
8722 s:assert [
8723 test = "not(.//db:important)"
8724 "important must not occur among the children or descendants of table"
8725 ]
8726 "\x{a}" ~
8727 " "
8728 ]
8729 "\x{a}" ~
8730 " "
8731 ]
8732 s:pattern [
8733 name = "Element exclusion"
8734 "\x{a}" ~
8735 " "
8736 s:rule [
8737 context = "db:table"
8738 "\x{a}" ~
8739 " "
8740 s:assert [
8741 test = "not(.//db:note)"
8742 "note must not occur among the children or descendants of table"
8743 ]
8744 "\x{a}" ~
8745 " "
8746 ]
8747 "\x{a}" ~
8748 " "
8749 ]
8750 s:pattern [
8751 name = "Element exclusion"
8752 "\x{a}" ~
8753 " "
8754 s:rule [
8755 context = "db:table"
8756 "\x{a}" ~
8757 " "
8758 s:assert [
8759 test = "not(.//db:tip)"
8760 "tip must not occur among the children or descendants of table"
8761 ]
8762 "\x{a}" ~
8763 " "
8764 ]
8765 "\x{a}" ~
8766 " "
8767 ]
8768 s:pattern [
8769 name = "Element exclusion"
8770 "\x{a}" ~
8771 " "
8772 s:rule [
8773 context = "db:table"
8774 "\x{a}" ~
8775 " "
8776 s:assert [
8777 test = "not(.//db:warning)"
8778 "warning must not occur among the children or descendants of table"
8779 ]
8780 "\x{a}" ~
8781 " "
8782 ]
8783 "\x{a}" ~
8784 " "
8785 ]
8786 s:pattern [
8787 name = "Root must have version"
8788 "\x{a}" ~
8789 " "
8790 s:rule [
8791 context = "/db:table"
8792 "\x{a}" ~
8793 " "
8794 s:assert [
8795 test = "@version"
8796 "If this element is the root element, it must have a version attribute."
8797 ]
8798 "\x{a}" ~
8799 " "
8800 ]
8801 "\x{a}" ~
8802 " "
8803 ]
8804 ]
8805 element table {
8806 db.cals.table.attlist,
8807 db.cals.table.info,
8808 (db.alt? & db.indexing.inlines* & db.textobject*),
8809 (db.mediaobject+ | db.tgroup+),
8810 db.caption?
8811 }
8812 }
8813 div {
8814 db.cals.informaltable.role.attribute = attribute role { text }
8815 db.cals.informaltable.attlist =
8816 db.cals.informaltable.role.attribute?
8817 & db.common.attributes
8818 & db.common.linking.attributes
8819 & db.tabstyle.attribute?
8820 & db.floatstyle.attribute?
8821 & db.orient.attribute?
8822 & db.colsep.attribute?
8823 & db.rowsep.attribute?
8824 & db.frame.attribute?
8825 & db.pgwide.attribute?
8826 & db.rowheader.attribute?
8827 db.cals.informaltable.info = db._info.title.forbidden
8828 db.cals.informaltable =
8829
8830 ## A table without a title
8831 [
8832 s:pattern [
8833 name = "Root must have version"
8834 "\x{a}" ~
8835 " "
8836 s:rule [
8837 context = "/db:informaltable"
8838 "\x{a}" ~
8839 " "
8840 s:assert [
8841 test = "@version"
8842 "If this element is the root element, it must have a version attribute."
8843 ]
8844 "\x{a}" ~
8845 " "
8846 ]
8847 "\x{a}" ~
8848 " "
8849 ]
8850 ]
8851 element informaltable {
8852 db.cals.informaltable.attlist,
8853 db.cals.informaltable.info,
8854 (db.alt? & db.indexing.inlines* & db.textobject*),
8855 (db.mediaobject+ | db.tgroup+),
8856 db.caption?
8857 }
8858 }
8859 db.html.coreattrs =
8860
8861 ## This attribute assigns a class name or set of class names to an element. Any number of elements may be assigned the same class name or names. Multiple class names must be separated by white space characters.
8862 attribute class { text }?
8863 &
8864 ## This attribute specifies style information for the current element.
8865 attribute style { text }?
8866 &
8867 ## This attribute offers advisory information about the element for which it is set.
8868 attribute title { text }?
8869 db.html.i18n =
8870
8871 ## This attribute specifies the base language of an element's attribute values and text content. The default value of this attribute is unknown.
8872 attribute lang { text }?
8873 db.html.events =
8874
8875 ## Occurs when the pointing device button is clicked over an element.
8876 attribute onclick { text }?
8877 &
8878 ## Occurs when the pointing device button is double clicked over an element.
8879 attribute ondblclick { text }?
8880 &
8881 ## Occurs when the pointing device button is pressed over an element.
8882 attribute onmousedown { text }?
8883 &
8884 ## Occurs when the pointing device button is released over an element.
8885 attribute onmouseup { text }?
8886 &
8887 ## Occurs when the pointing device is moved onto an element.
8888 attribute onmouseover { text }?
8889 &
8890 ## Occurs when the pointing device is moved while it is over an element.
8891 attribute onmousemove { text }?
8892 &
8893 ## Occurs when the pointing device is moved away from an element.
8894 attribute onmouseout { text }?
8895 &
8896 ## Occurs when a key is pressed and released over an element.
8897 attribute onkeypress { text }?
8898 &
8899 ## Occurs when a key is pressed down over an element.
8900 attribute onkeydown { text }?
8901 &
8902 ## Occurs when a key is released over an element.
8903 attribute onkeyup { text }?
8904 db.html.attrs =
8905 db.common.attributes
8906 & db.html.coreattrs
8907 & db.html.i18n
8908 & db.html.events
8909 db.html.cellhalign =
8910
8911 ## Specifies the alignment of data and the justification of text in a cell.
8912 attribute align {
8913
8914 ## Left-flush data/Left-justify text. This is the default value for table data.
8915 "left"
8916 |
8917 ## Center data/Center-justify text. This is the default value for table headers.
8918 "center"
8919 |
8920 ## Right-flush data/Right-justify text.
8921 "right"
8922 |
8923 ## Double-justify text.
8924 "justify"
8925 |
8926 ## Align text around a specific character. If a user agent doesn't support character alignment, behavior in the presence of this value is unspecified.
8927 "char"
8928 }?
8929 &
8930 ## This attribute specifies a single character within a text fragment to act as an axis for alignment. The default value for this attribute is the decimal point character for the current language as set by the lang attribute (e.g., the period in English and the comma in French). User agents are not required to support this attribute.
8931 attribute char { text }?
8932 &
8933 ## When present, this attribute specifies the offset to the first occurrence of the alignment character on each line. If a line doesn't include the alignment character, it should be horizontally shifted to end at the alignment position. When charoff is used to set the offset of an alignment character, the direction of offset is determined by the current text direction (set by the dir attribute). In left-to-right texts (the default), offset is from the left margin. In right-to-left texts, offset is from the right margin. User agents are not required to support this attribute.
8934 attribute charoff {
8935 xsd:integer >> a:documentation [ "An explicit offset." ]
8936 | xsd:string { pattern = "[0-9]+%" }
8937 >> a:documentation [ "A percentage offset." ]
8938 }?
8939 db.html.cellvalign =
8940
8941 ## Specifies the vertical position of data within a cell.
8942 attribute valign {
8943
8944 ## Cell data is flush with the top of the cell.
8945 "top"
8946 |
8947 ## Cell data is centered vertically within the cell. This is the default value.
8948 "middle"
8949 |
8950 ## Cell data is flush with the bottom of the cell.
8951 "bottom"
8952 |
8953 ## All cells in the same row as a cell whose valign attribute has this value should have their textual data positioned so that the first text line occurs on a baseline common to all cells in the row. This constraint does not apply to subsequent text lines in these cells.
8954 "baseline"
8955 }?
8956 db.html.table.attributes =
8957
8958 ## Provides a summary of the table's purpose and structure for user agents rendering to non-visual media such as speech and Braille.
8959 attribute summary { text }?
8960 &
8961 ## Specifies the desired width of the entire table and is intended for visual user agents. When the value is a percentage value, the value is relative to the user agent's available horizontal space. In the absence of any width specification, table width is determined by the user agent.
8962 attribute width {
8963 xsd:integer >> a:documentation [ "An explicit width." ]
8964 | xsd:string { pattern = "[0-9]+%" }
8965 >> a:documentation [ "A percentage width." ]
8966 }?
8967 &
8968 ## Specifies the width (in pixels only) of the frame around a table.
8969 attribute border { xsd:nonNegativeInteger }?
8970 &
8971 ## Specifies which sides of the frame surrounding a table will be visible.
8972 attribute frame {
8973
8974 ## No sides. This is the default value.
8975 "void"
8976 |
8977 ## The top side only.
8978 "above"
8979 |
8980 ## The bottom side only.
8981 "below"
8982 |
8983 ## The top and bottom sides only.
8984 "hsides"
8985 |
8986 ## The left-hand side only.
8987 "lhs"
8988 |
8989 ## The right-hand side only.
8990 "rhs"
8991 |
8992 ## The right and left sides only.
8993 "vsides"
8994 |
8995 ## All four sides.
8996 "box"
8997 |
8998 ## All four sides.
8999 "border"
9000 }?
9001 &
9002 ## Specifies which rules will appear between cells within a table. The rendering of rules is user agent dependent.
9003 attribute rules {
9004
9005 ## No rules. This is the default value.
9006 "none"
9007 |
9008 ## Rules will appear between row groups (see thead, tfoot, and tbody) and column groups (see colgroup and col) only.
9009 "groups"
9010 |
9011 ## Rules will appear between rows only.
9012 "rows"
9013 |
9014 ## Rules will appear between columns only.
9015 "cols"
9016 |
9017 ## Rules will appear between all rows and columns.
9018 "all"
9019 }?
9020 &
9021 ## Specifies how much space the user agent should leave between the left side of the table and the left-hand side of the leftmost column, the top of the table and the top side of the topmost row, and so on for the right and bottom of the table. The attribute also specifies the amount of space to leave between cells.
9022 attribute cellspacing {
9023 xsd:integer >> a:documentation [ "An explicit spacing." ]
9024 | xsd:string { pattern = "[0-9]+%" }
9025 >> a:documentation [ "A percentage spacing." ]
9026 }?
9027 &
9028 ## Specifies the amount of space between the border of the cell and its contents. If the value of this attribute is a pixel length, all four margins should be this distance from the contents. If the value of the attribute is a percentage length, the top and bottom margins should be equally separated from the content based on a percentage of the available vertical space, and the left and right margins should be equally separated from the content based on a percentage of the available horizontal space.
9029 attribute cellpadding {
9030 xsd:integer >> a:documentation [ "An explicit padding." ]
9031 | xsd:string { pattern = "[0-9]+%" }
9032 >> a:documentation [ "A percentage padding." ]
9033 }?
9034 db.html.tablecell.attributes =
9035
9036 ## Provides an abbreviated form of the cell's content and may be rendered by user agents when appropriate in place of the cell's content. Abbreviated names should be short since user agents may render them repeatedly. For instance, speech synthesizers may render the abbreviated headers relating to a particular cell before rendering that cell's content.
9037 attribute abbr { text }?
9038 &
9039 ## This attribute may be used to place a cell into conceptual categories that can be considered to form axes in an n-dimensional space. User agents may give users access to these categories (e.g., the user may query the user agent for all cells that belong to certain categories, the user agent may present a table in the form of a table of contents, etc.). Please consult an HTML reference for more details.
9040 attribute axis { text }?
9041 &
9042 ## Specifies the list of header cells that provide header information for the current data cell. The value of this attribute is a space-separated list of cell names; those cells must be named by setting their id attribute. Authors generally use the headers attribute to help non-visual user agents render header information about data cells (e.g., header information is spoken prior to the cell data), but the attribute may also be used in conjunction with style sheets.
9043 attribute headers { text }?
9044 &
9045 ## Specifies the set of data cells for which the current header cell provides header information. This attribute may be used in place of the headers attribute, particularly for simple tables.
9046 attribute scope {
9047
9048 ## The current cell provides header information for the rest of the row that contains it
9049 "row"
9050 |
9051 ## The current cell provides header information for the rest of the column that contains it.
9052 "col"
9053 |
9054 ## The header cell provides header information for the rest of the row group that contains it.
9055 "rowgroup"
9056 |
9057 ## The header cell provides header information for the rest of the column group that contains it.
9058 "colgroup"
9059 }?
9060 &
9061 ## Specifies the number of rows spanned by the current cell. The default value of this attribute is one (1
9062 ## ). The value zero (0
9063 ## ) means that the cell spans all rows from the current row to the last row of the table section (thead
9064 ## , tbody
9065 ## , or tfoot
9066 ## ) in which the cell is defined.
9067 attribute rowspan { xsd:nonNegativeInteger }?
9068 &
9069 ## Specifies the number of columns spanned by the current cell. The default value of this attribute is one (1
9070 ## ). The value zero (0
9071 ## ) means that the cell spans all columns from the current column to the last column of the column group (colgroup
9072 ## ) in which the cell is defined.
9073 attribute colspan { xsd:nonNegativeInteger }?
9074 db.html.table.info = db._info.title.forbidden
9075 db.html.table.model =
9076 db.html.table.info?,
9077 db.html.caption,
9078 (db.html.col* | db.html.colgroup*),
9079 db.html.thead?,
9080 db.html.tfoot?,
9081 (db.html.tbody+ | db.html.tr+)
9082 db.html.informaltable.info = db._info.title.forbidden
9083 db.html.informaltable.model =
9084 db.html.informaltable.info?,
9085 (db.html.col* | db.html.colgroup*),
9086 db.html.thead?,
9087 db.html.tfoot?,
9088 (db.html.tbody+ | db.html.tr+)
9089 div {
9090 db.html.table.role.attribute = attribute role { text }
9091 db.html.table.label.attribute = db.label.attribute
9092 db.html.table.attlist =
9093 db.html.attrs
9094 & db.html.table.attributes
9095 & db.html.table.role.attribute?
9096 & db.html.table.label.attribute?
9097 & db.orient.attribute?
9098 & db.pgwide.attribute?
9099 & db.tabstyle.attribute?
9100 & db.floatstyle.attribute?
9101 db.html.table =
9102
9103 ## A formal (captioned) HTML table in a document
9104 [
9105 s:pattern [
9106 name = "Element exclusion"
9107 "\x{a}" ~
9108 " "
9109 s:rule [
9110 context = "db:table"
9111 "\x{a}" ~
9112 " "
9113 s:assert [
9114 test = "not(.//db:example)"
9115 "example must not occur among the children or descendants of table"
9116 ]
9117 "\x{a}" ~
9118 " "
9119 ]
9120 "\x{a}" ~
9121 " "
9122 ]
9123 s:pattern [
9124 name = "Element exclusion"
9125 "\x{a}" ~
9126 " "
9127 s:rule [
9128 context = "db:table"
9129 "\x{a}" ~
9130 " "
9131 s:assert [
9132 test = "not(.//db:figure)"
9133 "figure must not occur among the children or descendants of table"
9134 ]
9135 "\x{a}" ~
9136 " "
9137 ]
9138 "\x{a}" ~
9139 " "
9140 ]
9141 s:pattern [
9142 name = "Element exclusion"
9143 "\x{a}" ~
9144 " "
9145 s:rule [
9146 context = "db:table"
9147 "\x{a}" ~
9148 " "
9149 s:assert [
9150 test = "not(.//db:equation)"
9151 "equation must not occur among the children or descendants of table"
9152 ]
9153 "\x{a}" ~
9154 " "
9155 ]
9156 "\x{a}" ~
9157 " "
9158 ]
9159 s:pattern [
9160 name = "Element exclusion"
9161 "\x{a}" ~
9162 " "
9163 s:rule [
9164 context = "db:table"
9165 "\x{a}" ~
9166 " "
9167 s:assert [
9168 test = "not(.//db:caution)"
9169 "caution must not occur among the children or descendants of table"
9170 ]
9171 "\x{a}" ~
9172 " "
9173 ]
9174 "\x{a}" ~
9175 " "
9176 ]
9177 s:pattern [
9178 name = "Element exclusion"
9179 "\x{a}" ~
9180 " "
9181 s:rule [
9182 context = "db:table"
9183 "\x{a}" ~
9184 " "
9185 s:assert [
9186 test = "not(.//db:important)"
9187 "important must not occur among the children or descendants of table"
9188 ]
9189 "\x{a}" ~
9190 " "
9191 ]
9192 "\x{a}" ~
9193 " "
9194 ]
9195 s:pattern [
9196 name = "Element exclusion"
9197 "\x{a}" ~
9198 " "
9199 s:rule [
9200 context = "db:table"
9201 "\x{a}" ~
9202 " "
9203 s:assert [
9204 test = "not(.//db:note)"
9205 "note must not occur among the children or descendants of table"
9206 ]
9207 "\x{a}" ~
9208 " "
9209 ]
9210 "\x{a}" ~
9211 " "
9212 ]
9213 s:pattern [
9214 name = "Element exclusion"
9215 "\x{a}" ~
9216 " "
9217 s:rule [
9218 context = "db:table"
9219 "\x{a}" ~
9220 " "
9221 s:assert [
9222 test = "not(.//db:tip)"
9223 "tip must not occur among the children or descendants of table"
9224 ]
9225 "\x{a}" ~
9226 " "
9227 ]
9228 "\x{a}" ~
9229 " "
9230 ]
9231 s:pattern [
9232 name = "Element exclusion"
9233 "\x{a}" ~
9234 " "
9235 s:rule [
9236 context = "db:table"
9237 "\x{a}" ~
9238 " "
9239 s:assert [
9240 test = "not(.//db:warning)"
9241 "warning must not occur among the children or descendants of table"
9242 ]
9243 "\x{a}" ~
9244 " "
9245 ]
9246 "\x{a}" ~
9247 " "
9248 ]
9249 s:pattern [
9250 name = "Root must have version"
9251 "\x{a}" ~
9252 " "
9253 s:rule [
9254 context = "/db:table"
9255 "\x{a}" ~
9256 " "
9257 s:assert [
9258 test = "@version"
9259 "If this element is the root element, it must have a version attribute."
9260 ]
9261 "\x{a}" ~
9262 " "
9263 ]
9264 "\x{a}" ~
9265 " "
9266 ]
9267 ]
9268 element table { db.html.table.attlist, db.html.table.model }
9269 }
9270 div {
9271 db.html.informaltable.role.attribute = attribute role { text }
9272 db.html.informaltable.label.attribute = db.label.attribute
9273 db.html.informaltable.attlist =
9274 db.html.attrs
9275 & db.html.table.attributes
9276 & db.html.informaltable.role.attribute?
9277 & db.html.informaltable.label.attribute?
9278 & db.orient.attribute?
9279 & db.pgwide.attribute?
9280 & db.tabstyle.attribute?
9281 & db.floatstyle.attribute?
9282 db.html.informaltable =
9283
9284 ## An HTML table without a title
9285 [
9286 s:pattern [
9287 name = "Root must have version"
9288 "\x{a}" ~
9289 " "
9290 s:rule [
9291 context = "/db:informaltable"
9292 "\x{a}" ~
9293 " "
9294 s:assert [
9295 test = "@version"
9296 "If this element is the root element, it must have a version attribute."
9297 ]
9298 "\x{a}" ~
9299 " "
9300 ]
9301 "\x{a}" ~
9302 " "
9303 ]
9304 ]
9305 element informaltable {
9306 db.html.informaltable.attlist, db.html.informaltable.model
9307 }
9308 }
9309 div {
9310 db.html.caption.attlist = db.html.attrs
9311 db.html.caption =
9312
9313 ## An HTML table caption
9314 [
9315 s:pattern [
9316 name = "Element exclusion"
9317 "\x{a}" ~
9318 " "
9319 s:rule [
9320 context = "db:caption"
9321 "\x{a}" ~
9322 " "
9323 s:assert [
9324 test = "not(.//db:example)"
9325 "example must not occur among the children or descendants of caption"
9326 ]
9327 "\x{a}" ~
9328 " "
9329 ]
9330 "\x{a}" ~
9331 " "
9332 ]
9333 s:pattern [
9334 name = "Element exclusion"
9335 "\x{a}" ~
9336 " "
9337 s:rule [
9338 context = "db:caption"
9339 "\x{a}" ~
9340 " "
9341 s:assert [
9342 test = "not(.//db:figure)"
9343 "figure must not occur among the children or descendants of caption"
9344 ]
9345 "\x{a}" ~
9346 " "
9347 ]
9348 "\x{a}" ~
9349 " "
9350 ]
9351 s:pattern [
9352 name = "Element exclusion"
9353 "\x{a}" ~
9354 " "
9355 s:rule [
9356 context = "db:caption"
9357 "\x{a}" ~
9358 " "
9359 s:assert [
9360 test = "not(.//db:table)"
9361 "table must not occur among the children or descendants of caption"
9362 ]
9363 "\x{a}" ~
9364 " "
9365 ]
9366 "\x{a}" ~
9367 " "
9368 ]
9369 s:pattern [
9370 name = "Element exclusion"
9371 "\x{a}" ~
9372 " "
9373 s:rule [
9374 context = "db:caption"
9375 "\x{a}" ~
9376 " "
9377 s:assert [
9378 test = "not(.//db:equation)"
9379 "equation must not occur among the children or descendants of caption"
9380 ]
9381 "\x{a}" ~
9382 " "
9383 ]
9384 "\x{a}" ~
9385 " "
9386 ]
9387 s:pattern [
9388 name = "Element exclusion"
9389 "\x{a}" ~
9390 " "
9391 s:rule [
9392 context = "db:caption"
9393 "\x{a}" ~
9394 " "
9395 s:assert [
9396 test = "not(.//db:sidebar)"
9397 "sidebar must not occur among the children or descendants of caption"
9398 ]
9399 "\x{a}" ~
9400 " "
9401 ]
9402 "\x{a}" ~
9403 " "
9404 ]
9405 s:pattern [
9406 name = "Element exclusion"
9407 "\x{a}" ~
9408 " "
9409 s:rule [
9410 context = "db:caption"
9411 "\x{a}" ~
9412 " "
9413 s:assert [
9414 test = "not(.//db:task)"
9415 "task must not occur among the children or descendants of caption"
9416 ]
9417 "\x{a}" ~
9418 " "
9419 ]
9420 "\x{a}" ~
9421 " "
9422 ]
9423 s:pattern [
9424 name = "Element exclusion"
9425 "\x{a}" ~
9426 " "
9427 s:rule [
9428 context = "db:caption"
9429 "\x{a}" ~
9430 " "
9431 s:assert [
9432 test = "not(.//db:caution)"
9433 "caution must not occur among the children or descendants of caption"
9434 ]
9435 "\x{a}" ~
9436 " "
9437 ]
9438 "\x{a}" ~
9439 " "
9440 ]
9441 s:pattern [
9442 name = "Element exclusion"
9443 "\x{a}" ~
9444 " "
9445 s:rule [
9446 context = "db:caption"
9447 "\x{a}" ~
9448 " "
9449 s:assert [
9450 test = "not(.//db:important)"
9451 "important must not occur among the children or descendants of caption"
9452 ]
9453 "\x{a}" ~
9454 " "
9455 ]
9456 "\x{a}" ~
9457 " "
9458 ]
9459 s:pattern [
9460 name = "Element exclusion"
9461 "\x{a}" ~
9462 " "
9463 s:rule [
9464 context = "db:caption"
9465 "\x{a}" ~
9466 " "
9467 s:assert [
9468 test = "not(.//db:note)"
9469 "note must not occur among the children or descendants of caption"
9470 ]
9471 "\x{a}" ~
9472 " "
9473 ]
9474 "\x{a}" ~
9475 " "
9476 ]
9477 s:pattern [
9478 name = "Element exclusion"
9479 "\x{a}" ~
9480 " "
9481 s:rule [
9482 context = "db:caption"
9483 "\x{a}" ~
9484 " "
9485 s:assert [
9486 test = "not(.//db:tip)"
9487 "tip must not occur among the children or descendants of caption"
9488 ]
9489 "\x{a}" ~
9490 " "
9491 ]
9492 "\x{a}" ~
9493 " "
9494 ]
9495 s:pattern [
9496 name = "Element exclusion"
9497 "\x{a}" ~
9498 " "
9499 s:rule [
9500 context = "db:caption"
9501 "\x{a}" ~
9502 " "
9503 s:assert [
9504 test = "not(.//db:warning)"
9505 "warning must not occur among the children or descendants of caption"
9506 ]
9507 "\x{a}" ~
9508 " "
9509 ]
9510 "\x{a}" ~
9511 " "
9512 ]
9513 s:pattern [
9514 name = "Root must have version"
9515 "\x{a}" ~
9516 " "
9517 s:rule [
9518 context = "/db:caption"
9519 "\x{a}" ~
9520 " "
9521 s:assert [
9522 test = "@version"
9523 "If this element is the root element, it must have a version attribute."
9524 ]
9525 "\x{a}" ~
9526 " "
9527 ]
9528 "\x{a}" ~
9529 " "
9530 ]
9531 ]
9532 element caption { db.html.caption.attlist, db.all.inlines* }
9533 }
9534 div {
9535 db.html.col.attlist =
9536 db.html.attrs
9537 &
9538 ## This attribute, whose value must be an integer > 0, specifies the number of columns spanned
9539 ## by the col
9540 ## element; the col
9541 ## element shares its attributes with all the columns it spans. The default value for this attribute is 1 (i.e., a single column). If the span attribute is set to N > 1, the current col
9542 ## element shares its attributes with the next N-1 columns.
9543 attribute span { xsd:nonNegativeInteger }?
9544 &
9545 ## Specifies a default width for each column spanned by the current col
9546 ## element. It has the same meaning as the width
9547 ## attribute for the colgroup
9548 ## element and overrides it.
9549 attribute width { text }?
9550 & db.html.cellhalign
9551 & db.html.cellvalign
9552 db.html.col =
9553
9554 ## Specifications for a column in an HTML table
9555 element col { db.html.col.attlist, empty }
9556 }
9557 div {
9558 db.html.colgroup.attlist =
9559 db.html.attrs
9560 &
9561 ## This attribute, which must be an integer > 0, specifies the number of columns in a column group. In the absence of a span attribute, each colgroup
9562 ## defines a column group containing one column. If the span attribute is set to N > 0, the current colgroup
9563 ## element defines a column group containing N columns. User agents must ignore this attribute if the colgroup
9564 ## element contains one or more col
9565 ## elements.
9566 attribute span { xsd:nonNegativeInteger }?
9567 &
9568 ## This attribute specifies a default width for each column in the current column group. In addition to the standard pixel, percentage, and relative values, this attribute allows the special form 0*
9569 ## (zero asterisk) which means that the width of the each column in the group should be the minimum width necessary to hold the column's contents. This implies that a column's entire contents must be known before its width may be correctly computed. Authors should be aware that specifying 0*
9570 ## will prevent visual user agents from rendering a table incrementally. This attribute is overridden for any column in the column group whose width is specified via a col
9571 ## element.
9572 attribute width { text }?
9573 & db.html.cellhalign
9574 & db.html.cellvalign
9575 db.html.colgroup =
9576
9577 ## A group of columns in an HTML table
9578 element colgroup { db.html.colgroup.attlist, db.html.col* }
9579 }
9580 div {
9581 db.html.thead.attlist =
9582 db.html.attrs & db.html.cellhalign & db.html.cellvalign
9583 db.html.thead =
9584
9585 ## A table header consisting of one or more rows in an HTML table
9586 element thead { db.html.thead.attlist, db.html.tr+ }
9587 }
9588 div {
9589 db.html.tfoot.attlist =
9590 db.html.attrs & db.html.cellhalign & db.html.cellvalign
9591 db.html.tfoot =
9592
9593 ## A table footer consisting of one or more rows in an HTML table
9594 element tfoot { db.html.tfoot.attlist, db.html.tr+ }
9595 }
9596 div {
9597 db.html.tbody.attlist =
9598 db.html.attrs & db.html.cellhalign & db.html.cellvalign
9599 db.html.tbody =
9600
9601 ## A wrapper for the rows of an HTML table or informal HTML table
9602 element tbody { db.html.tbody.attlist, db.html.tr+ }
9603 }
9604 div {
9605 db.html.tr.attlist =
9606 db.html.attrs & db.html.cellhalign & db.html.cellvalign
9607 db.html.tr =
9608
9609 ## A row in an HTML table
9610 element tr { db.html.tr.attlist, (db.html.th | db.html.td)+ }
9611 }
9612 div {
9613 db.html.th.attlist =
9614 db.html.attrs
9615 & db.html.tablecell.attributes
9616 & db.html.cellhalign
9617 & db.html.cellvalign
9618 db.html.th =
9619
9620 ## A table header entry in an HTML table
9621 element th {
9622 db.html.th.attlist, (db.all.inlines* | db.all.blocks*)
9623 }
9624 }
9625 div {
9626 db.html.td.attlist =
9627 db.html.attrs
9628 & db.html.tablecell.attributes
9629 & db.html.cellhalign
9630 & db.html.cellvalign
9631 db.html.td =
9632
9633 ## A table entry in an HTML table
9634 element td {
9635 db.html.td.attlist, (db.all.inlines* | db.all.blocks*)
9636 }
9637 }
9638 div {
9639 db.msgset.role.attribute = attribute role { text }
9640 db.msgset.attlist =
9641 db.msgset.role.attribute?
9642 & db.common.attributes
9643 & db.common.linking.attributes
9644 db.msgset.info = db._info.title.only
9645 db.msgset =
9646
9647 ## A detailed set of messages, usually error messages
9648 [
9649 s:pattern [
9650 name = "Root must have version"
9651 "\x{a}" ~
9652 " "
9653 s:rule [
9654 context = "/db:msgset"
9655 "\x{a}" ~
9656 " "
9657 s:assert [
9658 test = "@version"
9659 "If this element is the root element, it must have a version attribute."
9660 ]
9661 "\x{a}" ~
9662 " "
9663 ]
9664 "\x{a}" ~
9665 " "
9666 ]
9667 ]
9668 element msgset {
9669 db.msgset.attlist,
9670 db.msgset.info,
9671 (db.msgentry+ | db.simplemsgentry+)
9672 }
9673 }
9674 div {
9675 db.msgentry.role.attribute = attribute role { text }
9676 db.msgentry.attlist =
9677 db.msgentry.role.attribute?
9678 & db.common.attributes
9679 & db.common.linking.attributes
9680 db.msgentry =
9681
9682 ## A wrapper for an entry in a message set
9683 element msgentry {
9684 db.msgentry.attlist, db.msg+, db.msginfo?, db.msgexplan*
9685 }
9686 }
9687 div {
9688 db.simplemsgentry.role.attribute = attribute role { text }
9689 db.simplemsgentry.msgaud.attribute =
9690
9691 ## The audience to which the message relevant
9692 attribute msgaud { text }
9693 db.simplemsgentry.msgorig.attribute =
9694
9695 ## The origin of the message
9696 attribute msgorig { text }
9697 db.simplemsgentry.msglevel.attribute =
9698
9699 ## The level of importance or severity of a message
9700 attribute msglevel { text }
9701 db.simplemsgentry.attlist =
9702 db.simplemsgentry.role.attribute?
9703 & db.common.attributes
9704 & db.common.linking.attributes
9705 & db.simplemsgentry.msgaud.attribute?
9706 & db.simplemsgentry.msgorig.attribute?
9707 & db.simplemsgentry.msglevel.attribute?
9708 db.simplemsgentry =
9709
9710 ## A wrapper for a simpler entry in a message set
9711 element simplemsgentry {
9712 db.simplemsgentry.attlist, db.msgtext, db.msgexplan+
9713 }
9714 }
9715 div {
9716 db.msg.role.attribute = attribute role { text }
9717 db.msg.attlist =
9718 db.msg.role.attribute?
9719 & db.common.attributes
9720 & db.common.linking.attributes
9721 db.msg.info = db._info.title.only
9722 db.msg =
9723
9724 ## A message in a message set
9725 [
9726 s:pattern [
9727 name = "Root must have version"
9728 "\x{a}" ~
9729 " "
9730 s:rule [
9731 context = "/db:msg"
9732 "\x{a}" ~
9733 " "
9734 s:assert [
9735 test = "@version"
9736 "If this element is the root element, it must have a version attribute."
9737 ]
9738 "\x{a}" ~
9739 " "
9740 ]
9741 "\x{a}" ~
9742 " "
9743 ]
9744 ]
9745 element msg {
9746 db.msg.attlist, db.msg.info, db.msgmain, (db.msgsub | db.msgrel)*
9747 }
9748 }
9749 div {
9750 db.msgmain.role.attribute = attribute role { text }
9751 db.msgmain.attlist =
9752 db.msgmain.role.attribute?
9753 & db.common.attributes
9754 & db.common.linking.attributes
9755 db.msgmain.info = db._info.title.only
9756 db.msgmain =
9757
9758 ## The primary component of a message in a message set
9759 [
9760 s:pattern [
9761 name = "Root must have version"
9762 "\x{a}" ~
9763 " "
9764 s:rule [
9765 context = "/db:msgmain"
9766 "\x{a}" ~
9767 " "
9768 s:assert [
9769 test = "@version"
9770 "If this element is the root element, it must have a version attribute."
9771 ]
9772 "\x{a}" ~
9773 " "
9774 ]
9775 "\x{a}" ~
9776 " "
9777 ]
9778 ]
9779 element msgmain { db.msgmain.attlist, db.msgmain.info, db.msgtext }
9780 }
9781 div {
9782 db.msgsub.role.attribute = attribute role { text }
9783 db.msgsub.attlist =
9784 db.msgsub.role.attribute?
9785 & db.common.attributes
9786 & db.common.linking.attributes
9787 db.msgsub.info = db._info.title.only
9788 db.msgsub =
9789
9790 ## A subcomponent of a message in a message set
9791 [
9792 s:pattern [
9793 name = "Root must have version"
9794 "\x{a}" ~
9795 " "
9796 s:rule [
9797 context = "/db:msgsub"
9798 "\x{a}" ~
9799 " "
9800 s:assert [
9801 test = "@version"
9802 "If this element is the root element, it must have a version attribute."
9803 ]
9804 "\x{a}" ~
9805 " "
9806 ]
9807 "\x{a}" ~
9808 " "
9809 ]
9810 ]
9811 element msgsub { db.msgsub.attlist, db.msgsub.info, db.msgtext }
9812 }
9813 div {
9814 db.msgrel.role.attribute = attribute role { text }
9815 db.msgrel.attlist =
9816 db.msgrel.role.attribute?
9817 & db.common.attributes
9818 & db.common.linking.attributes
9819 db.msgrel.info = db._info.title.only
9820 db.msgrel =
9821
9822 ## A related component of a message in a message set
9823 [
9824 s:pattern [
9825 name = "Root must have version"
9826 "\x{a}" ~
9827 " "
9828 s:rule [
9829 context = "/db:msgrel"
9830 "\x{a}" ~
9831 " "
9832 s:assert [
9833 test = "@version"
9834 "If this element is the root element, it must have a version attribute."
9835 ]
9836 "\x{a}" ~
9837 " "
9838 ]
9839 "\x{a}" ~
9840 " "
9841 ]
9842 ]
9843 element msgrel { db.msgrel.attlist, db.msgrel.info, db.msgtext }
9844 }
9845 div {
9846 db.msgtext.role.attribute = attribute role { text }
9847 db.msgtext.attlist =
9848 db.msgtext.role.attribute?
9849 & db.common.attributes
9850 & db.common.linking.attributes
9851 db.msgtext =
9852
9853 ## The actual text of a message component in a message set
9854 element msgtext { db.msgtext.attlist, db.all.blocks+ }
9855 }
9856 div {
9857 db.msginfo.role.attribute = attribute role { text }
9858 db.msginfo.attlist =
9859 db.msginfo.role.attribute?
9860 & db.common.attributes
9861 & db.common.linking.attributes
9862 db.msginfo =
9863
9864 ## Information about a message in a message set
9865 element msginfo {
9866 db.msginfo.attlist, (db.msglevel | db.msgorig | db.msgaud)*
9867 }
9868 }
9869 div {
9870 db.msglevel.role.attribute = attribute role { text }
9871 db.msglevel.attlist =
9872 db.msglevel.role.attribute?
9873 & db.common.attributes
9874 & db.common.linking.attributes
9875 db.msglevel =
9876
9877 ## The level of importance or severity of a message in a message set
9878 element msglevel { db.msglevel.attlist, db._text }
9879 }
9880 div {
9881 db.msgorig.role.attribute = attribute role { text }
9882 db.msgorig.attlist =
9883 db.msgorig.role.attribute?
9884 & db.common.attributes
9885 & db.common.linking.attributes
9886 db.msgorig =
9887
9888 ## The origin of a message in a message set
9889 element msgorig { db.msgorig.attlist, db._text }
9890 }
9891 div {
9892 db.msgaud.role.attribute = attribute role { text }
9893 db.msgaud.attlist =
9894 db.msgaud.role.attribute?
9895 & db.common.attributes
9896 & db.common.linking.attributes
9897 db.msgaud =
9898
9899 ## The audience to which a message in a message set is relevant
9900 element msgaud { db.msgaud.attlist, db._text }
9901 }
9902 div {
9903 db.msgexplan.role.attribute = attribute role { text }
9904 db.msgexplan.attlist =
9905 db.msgexplan.role.attribute?
9906 & db.common.attributes
9907 & db.common.linking.attributes
9908 db.msgexplan.info = db._info.title.only
9909 db.msgexplan =
9910
9911 ## Explanatory material relating to a message in a message set
9912 [
9913 s:pattern [
9914 name = "Root must have version"
9915 "\x{a}" ~
9916 " "
9917 s:rule [
9918 context = "/db:msgexplan"
9919 "\x{a}" ~
9920 " "
9921 s:assert [
9922 test = "@version"
9923 "If this element is the root element, it must have a version attribute."
9924 ]
9925 "\x{a}" ~
9926 " "
9927 ]
9928 "\x{a}" ~
9929 " "
9930 ]
9931 ]
9932 element msgexplan {
9933 db.msgexplan.attlist, db.msgexplan.info, db.all.blocks+
9934 }
9935 }
9936 div {
9937 db.qandaset.role.attribute = attribute role { text }
9938 db.qandaset.defaultlabel.enumeration =
9939
9940 ## No labels
9941 "none"
9942 |
9943 ## Numeric labels
9944 "number"
9945 |
9946 ## "Q:" and "A:" labels
9947 "qanda"
9948 db.qandaset.defaultlabel.attribute =
9949
9950 ## Specifies the default labelling
9951 attribute defaultlabel { db.qandaset.defaultlabel.enumeration }
9952 db.qandaset.attlist =
9953 db.qandaset.role.attribute?
9954 & db.common.attributes
9955 & db.common.linking.attributes
9956 & db.qandaset.defaultlabel.attribute?
9957 db.qandaset.info = db._info.title.only
9958 db.qandaset =
9959
9960 ## A question-and-answer set
9961 [
9962 s:pattern [
9963 name = "Root must have version"
9964 "\x{a}" ~
9965 " "
9966 s:rule [
9967 context = "/db:qandaset"
9968 "\x{a}" ~
9969 " "
9970 s:assert [
9971 test = "@version"
9972 "If this element is the root element, it must have a version attribute."
9973 ]
9974 "\x{a}" ~
9975 " "
9976 ]
9977 "\x{a}" ~
9978 " "
9979 ]
9980 ]
9981 element qandaset {
9982 db.qandaset.attlist,
9983 db.qandaset.info,
9984 db.all.blocks*,
9985 (db.qandadiv+ | db.qandaentry+)
9986 }
9987 }
9988 div {
9989 db.qandadiv.role.attribute = attribute role { text }
9990 db.qandadiv.attlist =
9991 db.qandadiv.role.attribute?
9992 & db.common.attributes
9993 & db.common.linking.attributes
9994 db.qandadiv.info = db._info.title.only
9995 db.qandadiv =
9996
9997 ## A titled division in a qandaset
9998 [
9999 s:pattern [
10000 name = "Root must have version"
10001 "\x{a}" ~
10002 " "
10003 s:rule [
10004 context = "/db:qandadiv"
10005 "\x{a}" ~
10006 " "
10007 s:assert [
10008 test = "@version"
10009 "If this element is the root element, it must have a version attribute."
10010 ]
10011 "\x{a}" ~
10012 " "
10013 ]
10014 "\x{a}" ~
10015 " "
10016 ]
10017 ]
10018 element qandadiv {
10019 db.qandadiv.attlist,
10020 db.qandadiv.info,
10021 db.all.blocks*,
10022 (db.qandadiv+ | db.qandaentry+)
10023 }
10024 }
10025 div {
10026 db.qandaentry.role.attribute = attribute role { text }
10027 db.qandaentry.attlist =
10028 db.qandaentry.role.attribute?
10029 & db.common.attributes
10030 & db.common.linking.attributes
10031 db.qandaentry.info = db._info.title.only
10032 db.qandaentry =
10033
10034 ## A question/answer set within a qandaset
10035 [
10036 s:pattern [
10037 name = "Root must have version"
10038 "\x{a}" ~
10039 " "
10040 s:rule [
10041 context = "/db:qandaentry"
10042 "\x{a}" ~
10043 " "
10044 s:assert [
10045 test = "@version"
10046 "If this element is the root element, it must have a version attribute."
10047 ]
10048 "\x{a}" ~
10049 " "
10050 ]
10051 "\x{a}" ~
10052 " "
10053 ]
10054 ]
10055 element qandaentry {
10056 db.qandaentry.attlist, db.qandaentry.info, db.question, db.answer*
10057 }
10058 }
10059 div {
10060 db.question.role.attribute = attribute role { text }
10061 db.question.attlist =
10062 db.question.role.attribute?
10063 & db.common.attributes
10064 & db.common.linking.attributes
10065 db.question =
10066
10067 ## A question in a qandaset
10068 element question { db.question.attlist, db.label?, db.all.blocks+ }
10069 }
10070 div {
10071 db.answer.role.attribute = attribute role { text }
10072 db.answer.attlist =
10073 db.answer.role.attribute?
10074 & db.common.attributes
10075 & db.common.linking.attributes
10076 db.answer =
10077
10078 ## An answer to a question posed in a qandaset
10079 element answer { db.answer.attlist, db.label?, db.all.blocks+ }
10080 }
10081 div {
10082 db.label.role.attribute = attribute role { text }
10083 db.label.attlist =
10084 db.label.role.attribute?
10085 & db.common.attributes
10086 & db.common.linking.attributes
10087 db.label =
10088
10089 ## A label on a question or answer
10090 element label { db.label.attlist, db._text }
10091 }
10092 db.math.inlines = db.inlineequation
10093 db.equation.content = (db.mediaobject+ | db.mathphrase+) | db._any.mml+
10094 db.inlineequation.content =
10095 (db.inlinemediaobject+ | db.mathphrase+) | db._any.mml+
10096 div {
10097 db.equation.role.attribute = attribute role { text }
10098 db.equation.label.attribute = db.label.attribute
10099 db.equation.attlist =
10100 db.equation.role.attribute?
10101 & db.common.attributes
10102 & db.common.linking.attributes
10103 & db.equation.label.attribute?
10104 & db.pgwide.attribute?
10105 & db.floatstyle.attribute?
10106 db.equation.info = db._info.title.only
10107 db.equation =
10108
10109 ## A displayed mathematical equation
10110 [
10111 s:pattern [
10112 name = "Element exclusion"
10113 "\x{a}" ~
10114 " "
10115 s:rule [
10116 context = "db:equation"
10117 "\x{a}" ~
10118 " "
10119 s:assert [
10120 test = "not(.//db:example)"
10121 "example must not occur among the children or descendants of equation"
10122 ]
10123 "\x{a}" ~
10124 " "
10125 ]
10126 "\x{a}" ~
10127 " "
10128 ]
10129 s:pattern [
10130 name = "Element exclusion"
10131 "\x{a}" ~
10132 " "
10133 s:rule [
10134 context = "db:equation"
10135 "\x{a}" ~
10136 " "
10137 s:assert [
10138 test = "not(.//db:figure)"
10139 "figure must not occur among the children or descendants of equation"
10140 ]
10141 "\x{a}" ~
10142 " "
10143 ]
10144 "\x{a}" ~
10145 " "
10146 ]
10147 s:pattern [
10148 name = "Element exclusion"
10149 "\x{a}" ~
10150 " "
10151 s:rule [
10152 context = "db:equation"
10153 "\x{a}" ~
10154 " "
10155 s:assert [
10156 test = "not(.//db:table)"
10157 "table must not occur among the children or descendants of equation"
10158 ]
10159 "\x{a}" ~
10160 " "
10161 ]
10162 "\x{a}" ~
10163 " "
10164 ]
10165 s:pattern [
10166 name = "Element exclusion"
10167 "\x{a}" ~
10168 " "
10169 s:rule [
10170 context = "db:equation"
10171 "\x{a}" ~
10172 " "
10173 s:assert [
10174 test = "not(.//db:equation)"
10175 "equation must not occur among the children or descendants of equation"
10176 ]
10177 "\x{a}" ~
10178 " "
10179 ]
10180 "\x{a}" ~
10181 " "
10182 ]
10183 s:pattern [
10184 name = "Element exclusion"
10185 "\x{a}" ~
10186 " "
10187 s:rule [
10188 context = "db:equation"
10189 "\x{a}" ~
10190 " "
10191 s:assert [
10192 test = "not(.//db:caution)"
10193 "caution must not occur among the children or descendants of equation"
10194 ]
10195 "\x{a}" ~
10196 " "
10197 ]
10198 "\x{a}" ~
10199 " "
10200 ]
10201 s:pattern [
10202 name = "Element exclusion"
10203 "\x{a}" ~
10204 " "
10205 s:rule [
10206 context = "db:equation"
10207 "\x{a}" ~
10208 " "
10209 s:assert [
10210 test = "not(.//db:important)"
10211 "important must not occur among the children or descendants of equation"
10212 ]
10213 "\x{a}" ~
10214 " "
10215 ]
10216 "\x{a}" ~
10217 " "
10218 ]
10219 s:pattern [
10220 name = "Element exclusion"
10221 "\x{a}" ~
10222 " "
10223 s:rule [
10224 context = "db:equation"
10225 "\x{a}" ~
10226 " "
10227 s:assert [
10228 test = "not(.//db:note)"
10229 "note must not occur among the children or descendants of equation"
10230 ]
10231 "\x{a}" ~
10232 " "
10233 ]
10234 "\x{a}" ~
10235 " "
10236 ]
10237 s:pattern [
10238 name = "Element exclusion"
10239 "\x{a}" ~
10240 " "
10241 s:rule [
10242 context = "db:equation"
10243 "\x{a}" ~
10244 " "
10245 s:assert [
10246 test = "not(.//db:tip)"
10247 "tip must not occur among the children or descendants of equation"
10248 ]
10249 "\x{a}" ~
10250 " "
10251 ]
10252 "\x{a}" ~
10253 " "
10254 ]
10255 s:pattern [
10256 name = "Element exclusion"
10257 "\x{a}" ~
10258 " "
10259 s:rule [
10260 context = "db:equation"
10261 "\x{a}" ~
10262 " "
10263 s:assert [
10264 test = "not(.//db:warning)"
10265 "warning must not occur among the children or descendants of equation"
10266 ]
10267 "\x{a}" ~
10268 " "
10269 ]
10270 "\x{a}" ~
10271 " "
10272 ]
10273 s:pattern [
10274 name = "Root must have version"
10275 "\x{a}" ~
10276 " "
10277 s:rule [
10278 context = "/db:equation"
10279 "\x{a}" ~
10280 " "
10281 s:assert [
10282 test = "@version"
10283 "If this element is the root element, it must have a version attribute."
10284 ]
10285 "\x{a}" ~
10286 " "
10287 ]
10288 "\x{a}" ~
10289 " "
10290 ]
10291 ]
10292 element equation {
10293 db.equation.attlist,
10294 db.equation.info,
10295 db.alt?,
10296 db.equation.content,
10297 db.caption?
10298 }
10299 }
10300 div {
10301 db.informalequation.role.attribute = attribute role { text }
10302 db.informalequation.attlist =
10303 db.informalequation.role.attribute?
10304 & db.common.attributes
10305 & db.common.linking.attributes
10306 & db.pgwide.attribute?
10307 & db.floatstyle.attribute?
10308 db.informalequation.info = db._info.title.forbidden
10309 db.informalequation =
10310
10311 ## A displayed mathematical equation without a title
10312 [
10313 s:pattern [
10314 name = "Root must have version"
10315 "\x{a}" ~
10316 " "
10317 s:rule [
10318 context = "/db:informalequation"
10319 "\x{a}" ~
10320 " "
10321 s:assert [
10322 test = "@version"
10323 "If this element is the root element, it must have a version attribute."
10324 ]
10325 "\x{a}" ~
10326 " "
10327 ]
10328 "\x{a}" ~
10329 " "
10330 ]
10331 ]
10332 element informalequation {
10333 db.informalequation.attlist,
10334 db.informalequation.info,
10335 db.alt?,
10336 db.equation.content,
10337 db.caption?
10338 }
10339 }
10340 div {
10341 db.inlineequation.role.attribute = attribute role { text }
10342 db.inlineequation.attlist =
10343 db.inlineequation.role.attribute?
10344 & db.common.attributes
10345 & db.common.linking.attributes
10346 db.inlineequation =
10347
10348 ## A mathematical equation or expression occurring inline
10349 element inlineequation {
10350 db.inlineequation.attlist, db.alt?, db.inlineequation.content
10351 }
10352 }
10353 div {
10354 db.mathphrase.role.attribute = attribute role { text }
10355 db.mathphrase.attlist =
10356 db.mathphrase.role.attribute?
10357 & db.common.attributes
10358 & db.common.linking.attributes
10359 db.mathphrase =
10360
10361 ## A mathematical phrase that can be represented with ordinary text and a small amount of markup
10362 element mathphrase {
10363 db.mathphrase.attlist,
10364 (db._text | db.ubiq.inlines | db._emphasis)*
10365 }
10366 }
10367 db.imagedata.mathml.content = db._any.mml
10368 div {
10369 db.imagedata.mathml.role.attribute = attribute role { text }
10370 db.imagedata.mathml.attlist =
10371 db.imagedata.mathml.role.attribute?
10372 & db.common.attributes
10373 &
10374 ## Specifies that the format of the data is MathML
10375 attribute format {
10376
10377 ## Specifies MathML.
10378 "mathml"
10379 }?
10380 & db.imagedata.align.attribute?
10381 & db.imagedata.valign.attribute?
10382 & db.imagedata.width.attribute?
10383 & db.imagedata.contentwidth.attribute?
10384 & db.imagedata.scalefit.attribute?
10385 & db.imagedata.scale.attribute?
10386 & db.imagedata.depth.attribute?
10387 & db.imagedata.contentdepth.attribute?
10388 db.imagedata.mathml.info = db._info.title.forbidden
10389 db.imagedata.mathml =
10390
10391 ## A MathML expression in a media object
10392 [
10393 s:pattern [
10394 name = "Root must have version"
10395 "\x{a}" ~
10396 " "
10397 s:rule [
10398 context = "/db:imagedata"
10399 "\x{a}" ~
10400 " "
10401 s:assert [
10402 test = "@version"
10403 "If this element is the root element, it must have a version attribute."
10404 ]
10405 "\x{a}" ~
10406 " "
10407 ]
10408 "\x{a}" ~
10409 " "
10410 ]
10411 ]
10412 element imagedata {
10413 db.imagedata.mathml.attlist,
10414 db.imagedata.mathml.info,
10415 db.imagedata.mathml.content+
10416 }
10417 }
10418 div {
10419 db._any.mml =
10420
10421 ## Any element from the MathML namespace
10422 element mml:* { (db._any.attribute | text | db._any)* }
10423 }
10424 db.imagedata.svg.content = db._any.svg
10425 div {
10426 db.imagedata.svg.role.attribute = attribute role { text }
10427 db.imagedata.svg.attlist =
10428 db.imagedata.svg.role.attribute?
10429 & db.common.attributes
10430 &
10431 ## Specifies that the format of the data is SVG
10432 attribute format {
10433
10434 ## Specifies SVG.
10435 "svg"
10436 }?
10437 & db.imagedata.align.attribute?
10438 & db.imagedata.valign.attribute?
10439 & db.imagedata.width.attribute?
10440 & db.imagedata.contentwidth.attribute?
10441 & db.imagedata.scalefit.attribute?
10442 & db.imagedata.scale.attribute?
10443 & db.imagedata.depth.attribute?
10444 & db.imagedata.contentdepth.attribute?
10445 db.imagedata.svg.info = db._info.title.forbidden
10446 db.imagedata.svg =
10447
10448 ## An SVG drawing in a media object
10449 [
10450 s:pattern [
10451 name = "Root must have version"
10452 "\x{a}" ~
10453 " "
10454 s:rule [
10455 context = "/db:imagedata"
10456 "\x{a}" ~
10457 " "
10458 s:assert [
10459 test = "@version"
10460 "If this element is the root element, it must have a version attribute."
10461 ]
10462 "\x{a}" ~
10463 " "
10464 ]
10465 "\x{a}" ~
10466 " "
10467 ]
10468 ]
10469 element imagedata {
10470 db.imagedata.svg.attlist,
10471 db.imagedata.svg.info,
10472 db.imagedata.svg.content+
10473 }
10474 }
10475 div {
10476 db._any.svg =
10477
10478 ## Any element from the SVG namespace
10479 element svg:* { (db._any.attribute | text | db._any)* }
10480 }
10481 db.markup.inlines =
10482 db.tag
10483 | db.markup
10484 | db.token
10485 | db.symbol
10486 | db.literal
10487 | db.code
10488 | db.constant
10489 | db.email
10490 | db.uri
10491 div {
10492 db.markup.role.attribute = attribute role { text }
10493 db.markup.attlist =
10494 db.markup.role.attribute?
10495 & db.common.attributes
10496 & db.common.linking.attributes
10497 db.markup =
10498
10499 ## A string of formatting markup in text that is to be represented literally
10500 element markup { db.markup.attlist, db._text }
10501 }
10502 div {
10503 db.tag.role.attribute = attribute role { text }
10504 db.tag.class.enumeration =
10505
10506 ## An attribute
10507 "attribute"
10508 |
10509 ## An attribute value
10510 "attvalue"
10511 |
10512 ## An element
10513 "element"
10514 |
10515 ## An empty element tag
10516 "emptytag"
10517 |
10518 ## An end tag
10519 "endtag"
10520 |
10521 ## A general entity
10522 "genentity"
10523 |
10524 ## The local name part of a qualified name
10525 "localname"
10526 |
10527 ## A namespace
10528 "namespace"
10529 |
10530 ## A numeric character reference
10531 "numcharref"
10532 |
10533 ## A parameter entity
10534 "paramentity"
10535 |
10536 ## A processing instruction
10537 "pi"
10538 |
10539 ## The prefix part of a qualified name
10540 "prefix"
10541 |
10542 ## An SGML comment
10543 "comment"
10544 |
10545 ## A start tag
10546 "starttag"
10547 |
10548 ## An XML processing instruction
10549 "xmlpi"
10550 db.tag.class.attribute =
10551
10552 ## Identifies the nature of the tag content
10553 attribute class { db.tag.class.enumeration }
10554 db.tag.namespace.attribute =
10555
10556 ## Identifies the namespace of the tag content
10557 attribute namespace { xsd:anyURI }
10558 db.tag.attlist =
10559 db.tag.role.attribute?
10560 & db.common.attributes
10561 & db.common.linking.attributes
10562 & db.tag.class.attribute?
10563 & db.tag.namespace.attribute?
10564 db.tag =
10565
10566 ## A component of XML (or SGML) markup
10567 element tag { db.tag.attlist, (db._text | db.tag)* }
10568 }
10569 div {
10570 db.symbol.class.attribute =
10571
10572 ## Identifies the class of symbol
10573 attribute class {
10574
10575 ## The value is a limit of some kind
10576 "limit"
10577 }
10578 db.symbol.role.attribute = attribute role { text }
10579 db.symbol.attlist =
10580 db.symbol.role.attribute?
10581 & db.common.attributes
10582 & db.common.linking.attributes
10583 & db.symbol.class.attribute?
10584 db.symbol =
10585
10586 ## A name that is replaced by a value before processing
10587 element symbol { db.symbol.attlist, db._text }
10588 }
10589 div {
10590 db.token.role.attribute = attribute role { text }
10591 db.token.attlist =
10592 db.token.role.attribute?
10593 & db.common.attributes
10594 & db.common.linking.attributes
10595 db.token =
10596
10597 ## A unit of information
10598 element token { db.token.attlist, db._text }
10599 }
10600 div {
10601 db.literal.role.attribute = attribute role { text }
10602 db.literal.attlist =
10603 db.literal.role.attribute?
10604 & db.common.attributes
10605 & db.common.linking.attributes
10606 db.literal =
10607
10608 ## Inline text that is some literal value
10609 element literal { db.literal.attlist, db._text }
10610 }
10611 div {
10612 code.language.attribute =
10613
10614 ## Identifies the (computer) language of the code fragment
10615 attribute language { text }
10616 db.code.role.attribute = attribute role { text }
10617 db.code.attlist =
10618 db.code.role.attribute?
10619 & db.common.attributes
10620 & db.common.linking.attributes
10621 & code.language.attribute?
10622 db.code =
10623
10624 ## An inline code fragment
10625 element code {
10626 db.code.attlist, (db.programming.inlines | db._text)*
10627 }
10628 }
10629 div {
10630 db.constant.class.attribute =
10631
10632 ## Identifies the class of constant
10633 attribute class {
10634
10635 ## The value is a limit of some kind
10636 "limit"
10637 }
10638 db.constant.role.attribute = attribute role { text }
10639 db.constant.attlist =
10640 db.constant.role.attribute?
10641 & db.common.attributes
10642 & db.common.linking.attributes
10643 & db.constant.class.attribute?
10644 db.constant =
10645
10646 ## A programming or system constant
10647 element constant { db.constant.attlist, db._text }
10648 }
10649 div {
10650 db.productname.role.attribute = attribute role { text }
10651 db.productname.class.enumeration =
10652
10653 ## A name with a copyright
10654 "copyright"
10655 |
10656 ## A name with a registered copyright
10657 "registered"
10658 |
10659 ## A name of a service
10660 "service"
10661 |
10662 ## A name which is trademarked
10663 "trade"
10664 db.productname.class.attribute =
10665
10666 ## Specifies the class of product name
10667 attribute class { db.productname.class.enumeration }
10668 db.productname.attlist =
10669 db.productname.role.attribute?
10670 & db.common.attributes
10671 & db.common.linking.attributes
10672 & db.productname.class.attribute?
10673 db.productname =
10674
10675 ## The formal name of a product
10676 element productname { db.productname.attlist, db._text }
10677 }
10678 div {
10679 db.productnumber.role.attribute = attribute role { text }
10680 db.productnumber.attlist =
10681 db.productnumber.role.attribute?
10682 & db.common.attributes
10683 & db.common.linking.attributes
10684 db.productnumber =
10685
10686 ## A number assigned to a product
10687 element productnumber { db.productnumber.attlist, db._text }
10688 }
10689 div {
10690 db.database.class.enumeration =
10691
10692 ## An alternate or secondary key
10693 "altkey"
10694 |
10695 ## A constraint
10696 "constraint"
10697 |
10698 ## A data type
10699 "datatype"
10700 |
10701 ## A field
10702 "field"
10703 |
10704 ## A foreign key
10705 "foreignkey"
10706 |
10707 ## A group
10708 "group"
10709 |
10710 ## An index
10711 "index"
10712 |
10713 ## The first or primary key
10714 "key1"
10715 |
10716 ## An alternate or secondary key
10717 "key2"
10718 |
10719 ## A name
10720 "name"
10721 |
10722 ## The primary key
10723 "primarykey"
10724 |
10725 ## A (stored) procedure
10726 "procedure"
10727 |
10728 ## A record
10729 "record"
10730 |
10731 ## A rule
10732 "rule"
10733 |
10734 ## The secondary key
10735 "secondarykey"
10736 |
10737 ## A table
10738 "table"
10739 |
10740 ## A user
10741 "user"
10742 |
10743 ## A view
10744 "view"
10745 db.database.class.attribute =
10746
10747 ## Identifies the class of database artifact
10748 attribute class { db.database.class.enumeration }
10749 db.database.role.attribute = attribute role { text }
10750 db.database.attlist =
10751 db.database.role.attribute?
10752 & db.common.attributes
10753 & db.common.linking.attributes
10754 & db.database.class.attribute?
10755 db.database =
10756
10757 ## The name of a database, or part of a database
10758 element database { db.database.attlist, db._text }
10759 }
10760 div {
10761 db.application.class.enumeration =
10762
10763 ## A hardware application
10764 "hardware"
10765 |
10766 ## A software application
10767 "software"
10768 db.application.class.attribute =
10769
10770 ## Identifies the class of application
10771 attribute class { db.application.class.enumeration }
10772 db.application.role.attribute = attribute role { text }
10773 db.application.attlist =
10774 db.application.role.attribute?
10775 & db.common.attributes
10776 & db.common.linking.attributes
10777 & db.application.class.attribute?
10778 db.application =
10779
10780 ## The name of a software program
10781 element application { db.application.attlist, db._text }
10782 }
10783 div {
10784 db.hardware.role.attribute = attribute role { text }
10785 db.hardware.attlist =
10786 db.hardware.role.attribute?
10787 & db.common.attributes
10788 & db.common.linking.attributes
10789 db.hardware =
10790
10791 ## A physical part of a computer system
10792 element hardware { db.hardware.attlist, db._text }
10793 }
10794 db.gui.inlines =
10795 db.guiicon
10796 | db.guibutton
10797 | db.guimenuitem
10798 | db.guimenu
10799 | db.guisubmenu
10800 | db.guilabel
10801 | db.menuchoice
10802 | db.mousebutton
10803 div {
10804 db.guibutton.role.attribute = attribute role { text }
10805 db.guibutton.attlist =
10806 db.guibutton.role.attribute?
10807 & db.common.attributes
10808 & db.common.linking.attributes
10809 db.guibutton =
10810
10811 ## The text on a button in a GUI
10812 element guibutton {
10813 db.guibutton.attlist,
10814 (db._text | db.accel | db.superscript | db.subscript)*
10815 }
10816 }
10817 div {
10818 db.guiicon.role.attribute = attribute role { text }
10819 db.guiicon.attlist =
10820 db.guiicon.role.attribute?
10821 & db.common.attributes
10822 & db.common.linking.attributes
10823 db.guiicon =
10824
10825 ## Graphic and/or text appearing as a icon in a GUI
10826 element guiicon {
10827 db.guiicon.attlist,
10828 (db._text | db.accel | db.superscript | db.subscript)*
10829 }
10830 }
10831 div {
10832 db.guilabel.role.attribute = attribute role { text }
10833 db.guilabel.attlist =
10834 db.guilabel.role.attribute?
10835 & db.common.attributes
10836 & db.common.linking.attributes
10837 db.guilabel =
10838
10839 ## The text of a label in a GUI
10840 element guilabel {
10841 db.guilabel.attlist,
10842 (db._text | db.accel | db.superscript | db.subscript)*
10843 }
10844 }
10845 div {
10846 db.guimenu.role.attribute = attribute role { text }
10847 db.guimenu.attlist =
10848 db.guimenu.role.attribute?
10849 & db.common.attributes
10850 & db.common.linking.attributes
10851 db.guimenu =
10852
10853 ## The name of a menu in a GUI
10854 element guimenu {
10855 db.guimenu.attlist,
10856 (db._text | db.accel | db.superscript | db.subscript)*
10857 }
10858 }
10859 div {
10860 db.guimenuitem.role.attribute = attribute role { text }
10861 db.guimenuitem.attlist =
10862 db.guimenuitem.role.attribute?
10863 & db.common.attributes
10864 & db.common.linking.attributes
10865 db.guimenuitem =
10866
10867 ## The name of a terminal menu item in a GUI
10868 element guimenuitem {
10869 db.guimenuitem.attlist,
10870 (db._text | db.accel | db.superscript | db.subscript)*
10871 }
10872 }
10873 div {
10874 db.guisubmenu.role.attribute = attribute role { text }
10875 db.guisubmenu.attlist =
10876 db.guisubmenu.role.attribute?
10877 & db.common.attributes
10878 & db.common.linking.attributes
10879 db.guisubmenu =
10880
10881 ## The name of a submenu in a GUI
10882 element guisubmenu {
10883 db.guisubmenu.attlist,
10884 (db._text | db.accel | db.superscript | db.subscript)*
10885 }
10886 }
10887 div {
10888 db.menuchoice.role.attribute = attribute role { text }
10889 db.menuchoice.attlist =
10890 db.menuchoice.role.attribute?
10891 & db.common.attributes
10892 & db.common.linking.attributes
10893 db.menuchoice =
10894
10895 ## A selection or series of selections from a menu
10896 element menuchoice {
10897 db.menuchoice.attlist,
10898 db.shortcut?,
10899 (db.guibutton
10900 | db.guiicon
10901 | db.guilabel
10902 | db.guimenu
10903 | db.guimenuitem
10904 | db.guisubmenu)+
10905 }
10906 }
10907 div {
10908 db.mousebutton.role.attribute = attribute role { text }
10909 db.mousebutton.attlist =
10910 db.mousebutton.role.attribute?
10911 & db.common.attributes
10912 & db.common.linking.attributes
10913 db.mousebutton =
10914
10915 ## The conventional name of a mouse button
10916 element mousebutton { db.mousebutton.attlist, db._text }
10917 }
10918 db.keyboard.inlines =
10919 db.keycombo
10920 | db.keycap
10921 | db.keycode
10922 | db.keysym
10923 | db.shortcut
10924 | db.accel
10925 div {
10926 db.keycap.function.enumeration =
10927
10928 ## The "Alt" key
10929 "alt"
10930 |
10931 ## The "Backspace" key
10932 "backspace"
10933 |
10934 ## The "Command" key
10935 "command"
10936 |
10937 ## The "Control" key
10938 "control"
10939 |
10940 ## The "Delete" key
10941 "delete"
10942 |
10943 ## The down arrow
10944 "down"
10945 |
10946 ## The "End" key
10947 "end"
10948 |
10949 ## The "Enter" or "Return" key
10950 "enter"
10951 |
10952 ## The "Escape" key
10953 "escape"
10954 |
10955 ## The "Home" key
10956 "home"
10957 |
10958 ## The "Insert" key
10959 "insert"
10960 |
10961 ## The left arrow
10962 "left"
10963 |
10964 ## The "Meta" key
10965 "meta"
10966 |
10967 ## The "Option" key
10968 "option"
10969 |
10970 ## The page down key
10971 "pagedown"
10972 |
10973 ## The page up key
10974 "pageup"
10975 |
10976 ## The right arrow
10977 "right"
10978 |
10979 ## The "Shift" key
10980 "shift"
10981 |
10982 ## The spacebar
10983 "space"
10984 |
10985 ## The "Tab" key
10986 "tab"
10987 |
10988 ## The up arrow
10989 "up"
10990 db.keycap.function-enum.attribute =
10991
10992 ## Identifies the function key
10993 attribute function { db.keycap.function.enumeration }?
10994 db.keycap.function-other.attributes =
10995
10996 ## Identifies the function key
10997 attribute function {
10998
10999 ## Indicates a non-standard function key
11000 "other"
11001 }?,
11002
11003 ## Specifies a keyword that identifies the non-standard key
11004 attribute otherfunction { text }
11005 db.keycap.function.attrib =
11006 db.keycap.function-enum.attribute
11007 | db.keycap.function-other.attributes
11008 db.keycap.role.attribute = attribute role { text }
11009 db.keycap.attlist =
11010 db.keycap.role.attribute?
11011 & db.common.attributes
11012 & db.common.linking.attributes
11013 & db.keycap.function.attrib
11014 db.keycap =
11015
11016 ## The text printed on a key on a keyboard
11017 element keycap { db.keycap.attlist, db._text }
11018 }
11019 div {
11020 db.keycode.role.attribute = attribute role { text }
11021 db.keycode.attlist =
11022 db.keycode.role.attribute?
11023 & db.common.attributes
11024 & db.common.linking.attributes
11025 db.keycode =
11026
11027 ## The internal, frequently numeric, identifier for a key on a keyboard
11028 element keycode { db.keycode.attlist, db._text }
11029 }
11030 db.keycombination.contentmodel =
11031 (db.keycap | db.keycombo | db.keysym) | db.mousebutton
11032 div {
11033 db.keycombo.action.enumeration =
11034
11035 ## A (single) mouse click.
11036 "click"
11037 |
11038 ## A double mouse click.
11039 "double-click"
11040 |
11041 ## A mouse or key press.
11042 "press"
11043 |
11044 ## Sequential clicks or presses.
11045 "seq"
11046 |
11047 ## Simultaneous clicks or presses.
11048 "simul"
11049 db.keycombo.action-enum.attribute =
11050
11051 ## Identifies the nature of the action taken. If keycombo
11052 ## contains more than one element, simul
11053 ## is the default, otherwise there is no default.
11054 attribute action { db.keycombo.action.enumeration }?
11055 db.keycombo.action-other.attributes =
11056
11057 ## Identifies the nature of the action taken
11058 attribute action {
11059
11060 ## Indicates a non-standard action
11061 "other"
11062 }?,
11063
11064 ## Identifies the non-standard action in some unspecified way.
11065 attribute otheraction { text }
11066 db.keycombo.action.attrib =
11067 db.keycombo.action-enum.attribute
11068 | db.keycombo.action-other.attributes
11069 db.keycombo.role.attribute = attribute role { text }
11070 db.keycombo.attlist =
11071 db.keycombo.role.attribute?
11072 & db.common.attributes
11073 & db.common.linking.attributes
11074 & db.keycombo.action.attrib
11075 db.keycombo =
11076
11077 ## A combination of input actions
11078 element keycombo {
11079 db.keycombo.attlist, db.keycombination.contentmodel+
11080 }
11081 }
11082 div {
11083 db.keysym.role.attribute = attribute role { text }
11084 db.keysym.attlist =
11085 db.keysym.role.attribute?
11086 & db.common.attributes
11087 & db.common.linking.attributes
11088 db.keysym =
11089
11090 ## The symbolic name of a key on a keyboard
11091 element keysym { db.keysym.attlist, db._text }
11092 }
11093 div {
11094 db.accel.role.attribute = attribute role { text }
11095 db.accel.attlist =
11096 db.accel.role.attribute?
11097 & db.common.attributes
11098 & db.common.linking.attributes
11099 db.accel =
11100
11101 ## A graphical user interface (GUI) keyboard shortcut
11102 element accel { db.accel.attlist, db._text }
11103 }
11104 div {
11105 db.shortcut.action.attrib = db.keycombo.action.attrib
11106 db.shortcut.role.attribute = attribute role { text }
11107 db.shortcut.attlist =
11108 db.shortcut.role.attribute?
11109 & db.common.attributes
11110 & db.common.linking.attributes
11111 & db.shortcut.action.attrib
11112 db.shortcut =
11113
11114 ## A key combination for an action that is also accessible through a menu
11115 element shortcut {
11116 db.shortcut.attlist, db.keycombination.contentmodel+
11117 }
11118 }
11119 db.os.inlines =
11120 db.prompt
11121 | db.envar
11122 | db.filename
11123 | db.command
11124 | db.computeroutput
11125 | db.userinput
11126 db.computeroutput.inlines =
11127 (text | db.ubiq.inlines | db.os.inlines | db.technical.inlines)
11128 | db.co
11129 | db.markup.inlines
11130 db.userinput.inlines =
11131 (text | db.ubiq.inlines | db.os.inlines | db.technical.inlines)
11132 | db.co
11133 | db.markup.inlines
11134 | db.gui.inlines
11135 | db.keyboard.inlines
11136 db.prompt.inlines = db._text | db.co
11137 div {
11138 db.prompt.role.attribute = attribute role { text }
11139 db.prompt.attlist =
11140 db.prompt.role.attribute?
11141 & db.common.attributes
11142 & db.common.linking.attributes
11143 db.prompt =
11144
11145 ## A character or string indicating the start of an input field in a computer display
11146 element prompt { db.prompt.attlist, db.prompt.inlines* }
11147 }
11148 div {
11149 db.envar.role.attribute = attribute role { text }
11150 db.envar.attlist =
11151 db.envar.role.attribute?
11152 & db.common.attributes
11153 & db.common.linking.attributes
11154 db.envar =
11155
11156 ## A software environment variable
11157 element envar { db.envar.attlist, db._text }
11158 }
11159 div {
11160 db.filename.class.enumeration =
11161
11162 ## A device
11163 "devicefile"
11164 |
11165 ## A directory
11166 "directory"
11167 |
11168 ## A filename extension
11169 "extension"
11170 |
11171 ## A header file (as for a programming language)
11172 "headerfile"
11173 |
11174 ## A library file
11175 "libraryfile"
11176 |
11177 ## A partition (as of a hard disk)
11178 "partition"
11179 |
11180 ## A symbolic link
11181 "symlink"
11182 db.filename.class.attribute =
11183
11184 ## Identifies the class of filename
11185 attribute class { db.filename.class.enumeration }
11186 db.filename.path.attribute =
11187
11188 ## Specifies the path of the filename
11189 attribute path { text }
11190 db.filename.role.attribute = attribute role { text }
11191 db.filename.attlist =
11192 db.filename.role.attribute?
11193 & db.common.attributes
11194 & db.common.linking.attributes
11195 & db.filename.path.attribute?
11196 & db.filename.class.attribute?
11197 db.filename =
11198
11199 ## The name of a file
11200 element filename { db.filename.attlist, db._text }
11201 }
11202 div {
11203 db.command.role.attribute = attribute role { text }
11204 db.command.attlist =
11205 db.command.role.attribute?
11206 & db.common.attributes
11207 & db.common.linking.attributes
11208 db.command =
11209
11210 ## The name of an executable program or other software command
11211 element command { db.command.attlist, db._text }
11212 }
11213 div {
11214 db.computeroutput.role.attribute = attribute role { text }
11215 db.computeroutput.attlist =
11216 db.computeroutput.role.attribute?
11217 & db.common.attributes
11218 & db.common.linking.attributes
11219 db.computeroutput =
11220
11221 ## Data, generally text, displayed or presented by a computer
11222 element computeroutput {
11223 db.computeroutput.attlist, db.computeroutput.inlines*
11224 }
11225 }
11226 div {
11227 db.userinput.role.attribute = attribute role { text }
11228 db.userinput.attlist =
11229 db.userinput.role.attribute?
11230 & db.common.attributes
11231 & db.common.linking.attributes
11232 db.userinput =
11233
11234 ## Data entered by the user
11235 element userinput { db.userinput.attlist, db.userinput.inlines* }
11236 }
11237 div {
11238 db.cmdsynopsis.role.attribute = attribute role { text }
11239 db.cmdsynopsis.sepchar.attribute =
11240
11241 ## Specifies the character that should separate the command and its top-level arguments
11242 attribute sepchar { text }
11243 db.cmdsynopsis.cmdlength.attribute =
11244
11245 ## Indicates the displayed length of the command; this information may be used to intelligently indent command synopses which extend beyond one line
11246 attribute cmdlength { text }
11247 db.cmdsynopsis.label.attribute = db.label.attribute
11248 db.cmdsynopsis.attlist =
11249 db.cmdsynopsis.role.attribute?
11250 & db.common.attributes
11251 & db.common.linking.attributes
11252 & db.cmdsynopsis.sepchar.attribute?
11253 & db.cmdsynopsis.cmdlength.attribute?
11254 & db.cmdsynopsis.label.attribute?
11255 db.cmdsynopsis.info = db._info.title.forbidden
11256 db.cmdsynopsis =
11257
11258 ## A syntax summary for a software command
11259 [
11260 s:pattern [
11261 name = "Root must have version"
11262 "\x{a}" ~
11263 " "
11264 s:rule [
11265 context = "/db:cmdsynopsis"
11266 "\x{a}" ~
11267 " "
11268 s:assert [
11269 test = "@version"
11270 "If this element is the root element, it must have a version attribute."
11271 ]
11272 "\x{a}" ~
11273 " "
11274 ]
11275 "\x{a}" ~
11276 " "
11277 ]
11278 ]
11279 element cmdsynopsis {
11280 db.cmdsynopsis.attlist,
11281 db.cmdsynopsis.info,
11282 (db.command | db.arg | db.group | db.sbr)+,
11283 db.synopfragment*
11284 }
11285 }
11286 db.rep.enumeration =
11287
11288 ## Can not be repeated.
11289 "norepeat"
11290 |
11291 ## Can be repeated.
11292 "repeat"
11293 db.rep.attribute =
11294
11295 ## Indicates whether or not repetition is possible.
11296 [ a:defaultValue = "norepeat" ] attribute rep { db.rep.enumeration }
11297 db.choice.enumeration =
11298
11299 ## Formatted to indicate that it is optional.
11300 "opt"
11301 |
11302 ## Formatted without indication.
11303 "plain"
11304 |
11305 ## Formatted to indicate that it is required.
11306 "req"
11307 db.choice.opt.attribute =
11308
11309 ## Indicates optionality.
11310 [ a:defaultValue = "opt" ] attribute choice { db.choice.enumeration }
11311 db.choice.req.attribute =
11312
11313 ## Indicates optionality.
11314 [ a:defaultValue = "req" ] attribute choice { db.choice.enumeration }
11315 div {
11316 db.arg.role.attribute = attribute role { text }
11317 db.arg.rep.attribute = db.rep.attribute
11318 db.arg.choice.attribute = db.choice.opt.attribute
11319 db.arg.attlist =
11320 db.arg.role.attribute?
11321 & db.common.attributes
11322 & db.common.linking.attributes
11323 & db.arg.rep.attribute?
11324 & db.arg.choice.attribute?
11325 db.arg =
11326
11327 ## An argument in a cmdsynopsis
11328 element arg {
11329 db.arg.attlist,
11330 (db._text
11331 | db.arg
11332 | db.group
11333 | db.option
11334 | db.synopfragmentref
11335 | db.sbr)*
11336 }
11337 }
11338 div {
11339 db.group.role.attribute = attribute role { text }
11340 db.group.rep.attribute = db.rep.attribute
11341 db.group.choice.attribute = db.choice.opt.attribute
11342 db.group.attlist =
11343 db.group.role.attribute?
11344 & db.common.attributes
11345 & db.common.linking.attributes
11346 & db.group.rep.attribute?
11347 & db.group.choice.attribute?
11348 db.group =
11349
11350 ## A group of elements in a cmdsynopsis
11351 element group {
11352 db.group.attlist,
11353 (db.arg
11354 | db.group
11355 | db.option
11356 | db.synopfragmentref
11357 | db.replaceable
11358 | db.sbr)+
11359 }
11360 }
11361 div {
11362 db.sbr.role.attribute = attribute role { text }
11363 db.sbr.attlist = db.sbr.role.attribute? & db.common.attributes
11364 db.sbr =
11365
11366 ## An explicit line break in a command synopsis
11367 element sbr { db.sbr.attlist, empty }
11368 }
11369 div {
11370 db.synopfragment.role.attribute = attribute role { text }
11371 db.synopfragment.attlist =
11372 db.synopfragment.role.attribute?
11373 & db.common.attributes
11374 & db.common.linking.attributes
11375 db.synopfragment =
11376
11377 ## A portion of a cmdsynopsis broken out from the main body of the synopsis
11378 element synopfragment {
11379 db.synopfragment.attlist, (db.arg | db.group)+
11380 }
11381 }
11382 div {
11383 db.synopfragmentref.role.attribute = attribute role { text }
11384 db.synopfragmentref.attlist =
11385 db.synopfragmentref.role.attribute?
11386 & db.common.attributes
11387 & db.linkend.attribute
11388 db.synopfragmentref =
11389
11390 ## A reference to a fragment of a command synopsis
11391 [
11392 s:pattern [
11393 name = "Synopsis fragment type constraint"
11394 "\x{a}" ~
11395 " "
11396 s:rule [
11397 context = "db:synopfragmentref"
11398 "\x{a}" ~
11399 " "
11400 s:assert [
11401 test =
11402 "local-name(//*[@xml:id=current()/@linkend]) = 'synopfragment' and namespace-uri(//*[@xml:id=current()/@linkend]) = 'http://docbook.org/ns/docbook'"
11403 "@linkend on synopfragmentref must point to a synopfragment."
11404 ]
11405 "\x{a}" ~
11406 " "
11407 ]
11408 "\x{a}" ~
11409 " "
11410 ]
11411 ]
11412 element synopfragmentref { db.synopfragmentref.attlist, text }
11413 }
11414 db.programming.inlines =
11415 db.function
11416 | db.parameter
11417 | db.varname
11418 | db.returnvalue
11419 | db.type
11420 | db.classname
11421 | db.exceptionname
11422 | db.interfacename
11423 | db.methodname
11424 | db.modifier
11425 | db.initializer
11426 | db.oo.inlines
11427 db.oo.inlines = db.ooclass | db.ooexception | db.oointerface
11428 db.synopsis.blocks =
11429 (db.funcsynopsis
11430 | db.classsynopsis
11431 | db.methodsynopsis
11432 | db.constructorsynopsis
11433 | db.destructorsynopsis
11434 | db.fieldsynopsis)
11435 | db.cmdsynopsis
11436 div {
11437 db.synopsis.role.attribute = attribute role { text }
11438 db.synopsis.label.attribute = db.label.attribute
11439 db.synopsis.attlist =
11440 db.synopsis.role.attribute?
11441 & db.common.attributes
11442 & db.common.linking.attributes
11443 & db.verbatim.attributes
11444 & db.synopsis.label.attribute?
11445 db.synopsis =
11446
11447 ## A general-purpose element for representing the syntax of commands or functions
11448 [
11449 s:pattern [
11450 name = "Root must have version"
11451 "\x{a}" ~
11452 " "
11453 s:rule [
11454 context = "/db:synopsis"
11455 "\x{a}" ~
11456 " "
11457 s:assert [
11458 test = "@version"
11459 "If this element is the root element, it must have a version attribute."
11460 ]
11461 "\x{a}" ~
11462 " "
11463 ]
11464 "\x{a}" ~
11465 " "
11466 ]
11467 ]
11468 element synopsis { db.synopsis.attlist, db.verbatim.contentmodel }
11469 }
11470 div {
11471 db.funcsynopsis.role.attribute = attribute role { text }
11472 db.funcsynopsis.attlist =
11473 db.funcsynopsis.role.attribute?
11474 & db.common.attributes
11475 & db.common.linking.attributes
11476 & db.language.attribute?
11477 db.funcsynopsis.info = db._info.title.forbidden
11478 db.funcsynopsis =
11479
11480 ## The syntax summary for a function definition
11481 [
11482 s:pattern [
11483 name = "Root must have version"
11484 "\x{a}" ~
11485 " "
11486 s:rule [
11487 context = "/db:funcsynopsis"
11488 "\x{a}" ~
11489 " "
11490 s:assert [
11491 test = "@version"
11492 "If this element is the root element, it must have a version attribute."
11493 ]
11494 "\x{a}" ~
11495 " "
11496 ]
11497 "\x{a}" ~
11498 " "
11499 ]
11500 ]
11501 element funcsynopsis {
11502 db.funcsynopsis.attlist,
11503 db.funcsynopsis.info,
11504 (db.funcsynopsisinfo | db.funcprototype)+
11505 }
11506 }
11507 div {
11508 db.funcsynopsisinfo.role.attribute = attribute role { text }
11509 db.funcsynopsisinfo.attlist =
11510 db.funcsynopsisinfo.role.attribute?
11511 & db.common.attributes
11512 & db.common.linking.attributes
11513 & db.verbatim.attributes
11514 db.funcsynopsisinfo =
11515
11516 ## Information supplementing the funcdefs of a funcsynopsis
11517 [
11518 s:pattern [
11519 name = "Root must have version"
11520 "\x{a}" ~
11521 " "
11522 s:rule [
11523 context = "/db:funcsynopsisinfo"
11524 "\x{a}" ~
11525 " "
11526 s:assert [
11527 test = "@version"
11528 "If this element is the root element, it must have a version attribute."
11529 ]
11530 "\x{a}" ~
11531 " "
11532 ]
11533 "\x{a}" ~
11534 " "
11535 ]
11536 ]
11537 element funcsynopsisinfo {
11538 db.funcsynopsisinfo.attlist, db.verbatim.contentmodel
11539 }
11540 }
11541 div {
11542 db.funcprototype.role.attribute = attribute role { text }
11543 db.funcprototype.attlist =
11544 db.funcprototype.role.attribute?
11545 & db.common.attributes
11546 & db.common.linking.attributes
11547 db.funcprototype =
11548
11549 ## The prototype of a function
11550 element funcprototype {
11551 db.funcprototype.attlist,
11552 db.modifier*,
11553 db.funcdef,
11554 (db.void
11555 | db.varargs
11556 | ((db.paramdef | db.group.paramdef)+, db.varargs?)),
11557 db.modifier*
11558 }
11559 }
11560 div {
11561 db.funcdef.role.attribute = attribute role { text }
11562 db.funcdef.attlist =
11563 db.funcdef.role.attribute?
11564 & db.common.attributes
11565 & db.common.linking.attributes
11566 db.funcdef =
11567
11568 ## A function (subroutine) name and its return type
11569 element funcdef {
11570 db.funcdef.attlist, (db._text | db.type | db.function)*
11571 }
11572 }
11573 div {
11574 db.function.role.attribute = attribute role { text }
11575 db.function.attlist =
11576 db.function.role.attribute?
11577 & db.common.attributes
11578 & db.common.linking.attributes
11579 db.function =
11580
11581 ## The name of a function or subroutine, as in a programming language
11582 element function { db.function.attlist, db._text }
11583 }
11584 div {
11585 db.void.role.attribute = attribute role { text }
11586 db.void.attlist =
11587 db.void.role.attribute?
11588 & db.common.attributes
11589 & db.common.linking.attributes
11590 db.void =
11591
11592 ## An empty element in a function synopsis indicating that the function in question takes no arguments
11593 element void { db.void.attlist, empty }
11594 }
11595 div {
11596 db.varargs.role.attribute = attribute role { text }
11597 db.varargs.attlist =
11598 db.varargs.role.attribute?
11599 & db.common.attributes
11600 & db.common.linking.attributes
11601 db.varargs =
11602
11603 ## An empty element in a function synopsis indicating a variable number of arguments
11604 element varargs { db.varargs.attlist, empty }
11605 }
11606 div {
11607 db.group.paramdef.role.attribute = attribute role { text }
11608 db.group.paramdef.choice.attribute = db.choice.opt.attribute
11609 db.group.paramdef.attlist =
11610 db.group.paramdef.role.attribute?
11611 & db.common.attributes
11612 & db.common.linking.attributes
11613 & db.group.paramdef.choice.attribute?
11614 db.group.paramdef =
11615
11616 ## A group of parameters
11617 element group {
11618 db.group.paramdef.attlist, (db.paramdef | db.group.paramdef)+
11619 }
11620 }
11621 div {
11622 db.paramdef.role.attribute = attribute role { text }
11623 db.paramdef.choice.enumeration =
11624
11625 ## Formatted to indicate that it is optional.
11626 "opt"
11627 |
11628 ## Formatted to indicate that it is required.
11629 "req"
11630 db.paramdef.choice.attribute =
11631
11632 ## Indicates optionality.
11633 [ a:defaultValue = "opt" ]
11634 attribute choice { db.paramdef.choice.enumeration }
11635 db.paramdef.attlist =
11636 db.paramdef.role.attribute?
11637 & db.common.attributes
11638 & db.common.linking.attributes
11639 & db.paramdef.choice.attribute?
11640 db.paramdef =
11641
11642 ## Information about a function parameter in a programming language
11643 element paramdef {
11644 db.paramdef.attlist,
11645 (db._text
11646 | db.initializer
11647 | db.type
11648 | db.parameter
11649 | db.funcparams)*
11650 }
11651 }
11652 div {
11653 db.funcparams.role.attribute = attribute role { text }
11654 db.funcparams.attlist =
11655 db.funcparams.role.attribute?
11656 & db.common.attributes
11657 & db.common.linking.attributes
11658 db.funcparams =
11659
11660 ## Parameters for a function referenced through a function pointer in a synopsis
11661 element funcparams { db.funcparams.attlist, db._text }
11662 }
11663 div {
11664 db.classsynopsis.role.attribute = attribute role { text }
11665 db.classsynopsis.class.enumeration =
11666
11667 ## This is the synopsis of a class
11668 "class"
11669 |
11670 ## This is the synopsis of an interface
11671 "interface"
11672 db.classsynopsis.class.attribute =
11673
11674 ## Specifies the nature of the synopsis
11675 attribute class { db.classsynopsis.class.enumeration }
11676 db.classsynopsis.attlist =
11677 db.classsynopsis.role.attribute?
11678 & db.common.attributes
11679 & db.common.linking.attributes
11680 & db.language.attribute?
11681 & db.classsynopsis.class.attribute?
11682 db.classsynopsis =
11683
11684 ## The syntax summary for a class definition
11685 [
11686 s:pattern [
11687 name = "Root must have version"
11688 "\x{a}" ~
11689 " "
11690 s:rule [
11691 context = "/db:classsynopsis"
11692 "\x{a}" ~
11693 " "
11694 s:assert [
11695 test = "@version"
11696 "If this element is the root element, it must have a version attribute."
11697 ]
11698 "\x{a}" ~
11699 " "
11700 ]
11701 "\x{a}" ~
11702 " "
11703 ]
11704 ]
11705 element classsynopsis {
11706 db.classsynopsis.attlist,
11707 db.oo.inlines+,
11708 (db.classsynopsisinfo
11709 | db.methodsynopsis
11710 | db.constructorsynopsis
11711 | db.destructorsynopsis
11712 | db.fieldsynopsis)*
11713 }
11714 }
11715 div {
11716 db.classsynopsisinfo.role.attribute = attribute role { text }
11717 db.classsynopsisinfo.attlist =
11718 db.classsynopsisinfo.role.attribute?
11719 & db.common.attributes
11720 & db.common.linking.attributes
11721 & db.verbatim.attributes
11722 db.classsynopsisinfo =
11723
11724 ## Information supplementing the contents of a classsynopsis
11725 [
11726 s:pattern [
11727 name = "Root must have version"
11728 "\x{a}" ~
11729 " "
11730 s:rule [
11731 context = "/db:classsynopsisinfo"
11732 "\x{a}" ~
11733 " "
11734 s:assert [
11735 test = "@version"
11736 "If this element is the root element, it must have a version attribute."
11737 ]
11738 "\x{a}" ~
11739 " "
11740 ]
11741 "\x{a}" ~
11742 " "
11743 ]
11744 ]
11745 element classsynopsisinfo {
11746 db.classsynopsisinfo.attlist, db.verbatim.contentmodel
11747 }
11748 }
11749 div {
11750 db.ooclass.role.attribute = attribute role { text }
11751 db.ooclass.attlist =
11752 db.ooclass.role.attribute?
11753 & db.common.attributes
11754 & db.common.linking.attributes
11755 db.ooclass =
11756
11757 ## A class in an object-oriented programming language
11758 element ooclass {
11759 db.ooclass.attlist, (db.package | db.modifier)*, db.classname
11760 }
11761 }
11762 div {
11763 db.oointerface.role.attribute = attribute role { text }
11764 db.oointerface.attlist =
11765 db.oointerface.role.attribute?
11766 & db.common.attributes
11767 & db.common.linking.attributes
11768 db.oointerface =
11769
11770 ## An interface in an object-oriented programming language
11771 element oointerface {
11772 db.oointerface.attlist,
11773 (db.package | db.modifier)*,
11774 db.interfacename
11775 }
11776 }
11777 div {
11778 db.ooexception.role.attribute = attribute role { text }
11779 db.ooexception.attlist =
11780 db.ooexception.role.attribute?
11781 & db.common.attributes
11782 & db.common.linking.attributes
11783 db.ooexception =
11784
11785 ## An exception in an object-oriented programming language
11786 element ooexception {
11787 db.ooexception.attlist,
11788 (db.package | db.modifier)*,
11789 db.exceptionname
11790 }
11791 }
11792 db.modifier.xml.space.attribute =
11793
11794 ## Can be used to indicate that whitespace in the modifier should be preserved (for multi-line annotations, for example).
11795 attribute xml:space {
11796
11797 ## Extra whitespace and line breaks must be preserved.
11798 [
11799 # Ideally the definition of xml:space used on modifier would be
11800 # different from the definition used on the verbatim elements. The
11801 # verbatim elements forbid the use of xml:space="default" which
11802 # wouldn't be a problem on modifier. But doing that causes the
11803 # generated XSD schemas to be broken so I'm just reusing the existing
11804 # definition for now. It won't be backwards incompatible to fix this
11805 # problem in the future.
11806 # | ## Extra whitespace and line breaks are not preserved.
11807 # "default"
11808
11809 ]
11810 "preserve"
11811 }
11812 div {
11813 db.modifier.role.attribute = attribute role { text }
11814 db.modifier.attlist =
11815 db.modifier.xml.space.attribute?
11816 & db.modifier.role.attribute?
11817 & db.common.attributes
11818 & db.common.linking.attributes
11819 db.modifier =
11820
11821 ## Modifiers in a synopsis
11822 element modifier { db.modifier.attlist, db._text }
11823 }
11824 div {
11825 db.interfacename.role.attribute = attribute role { text }
11826 db.interfacename.attlist =
11827 db.interfacename.role.attribute?
11828 & db.common.attributes
11829 & db.common.linking.attributes
11830 db.interfacename =
11831
11832 ## The name of an interface
11833 element interfacename { db.interfacename.attlist, db._text }
11834 }
11835 div {
11836 db.exceptionname.role.attribute = attribute role { text }
11837 db.exceptionname.attlist =
11838 db.exceptionname.role.attribute?
11839 & db.common.attributes
11840 & db.common.linking.attributes
11841 db.exceptionname =
11842
11843 ## The name of an exception
11844 element exceptionname { db.exceptionname.attlist, db._text }
11845 }
11846 div {
11847 db.fieldsynopsis.role.attribute = attribute role { text }
11848 db.fieldsynopsis.attlist =
11849 db.fieldsynopsis.role.attribute?
11850 & db.common.attributes
11851 & db.common.linking.attributes
11852 & db.language.attribute?
11853 db.fieldsynopsis =
11854
11855 ## The name of a field in a class definition
11856 [
11857 s:pattern [
11858 name = "Root must have version"
11859 "\x{a}" ~
11860 " "
11861 s:rule [
11862 context = "/db:fieldsynopsis"
11863 "\x{a}" ~
11864 " "
11865 s:assert [
11866 test = "@version"
11867 "If this element is the root element, it must have a version attribute."
11868 ]
11869 "\x{a}" ~
11870 " "
11871 ]
11872 "\x{a}" ~
11873 " "
11874 ]
11875 ]
11876 element fieldsynopsis {
11877 db.fieldsynopsis.attlist,
11878 db.modifier*,
11879 db.type?,
11880 db.varname,
11881 db.initializer?
11882 }
11883 }
11884 div {
11885 db.initializer.role.attribute = attribute role { text }
11886 db.initializer.attlist =
11887 db.initializer.role.attribute?
11888 & db.common.attributes
11889 & db.common.linking.attributes
11890 db.initializer.inlines = db._text | db.mathphrase | db.markup.inlines
11891 db.initializer =
11892
11893 ## The initializer for a fieldsynopsis
11894 element initializer {
11895 db.initializer.attlist, db.initializer.inlines*
11896 }
11897 }
11898 div {
11899 db.constructorsynopsis.role.attribute = attribute role { text }
11900 db.constructorsynopsis.attlist =
11901 db.constructorsynopsis.role.attribute?
11902 & db.common.attributes
11903 & db.common.linking.attributes
11904 & db.language.attribute?
11905 db.constructorsynopsis =
11906
11907 ## A syntax summary for a constructor
11908 [
11909 s:pattern [
11910 name = "Root must have version"
11911 "\x{a}" ~
11912 " "
11913 s:rule [
11914 context = "/db:constructorsynopsis"
11915 "\x{a}" ~
11916 " "
11917 s:assert [
11918 test = "@version"
11919 "If this element is the root element, it must have a version attribute."
11920 ]
11921 "\x{a}" ~
11922 " "
11923 ]
11924 "\x{a}" ~
11925 " "
11926 ]
11927 ]
11928 element constructorsynopsis {
11929 db.constructorsynopsis.attlist,
11930 db.modifier*,
11931 db.methodname?,
11932 ((db.methodparam | db.group.methodparam)+ | db.void?),
11933 db.exceptionname*
11934 }
11935 }
11936 div {
11937 db.destructorsynopsis.role.attribute = attribute role { text }
11938 db.destructorsynopsis.attlist =
11939 db.destructorsynopsis.role.attribute?
11940 & db.common.attributes
11941 & db.common.linking.attributes
11942 & db.language.attribute?
11943 db.destructorsynopsis =
11944
11945 ## A syntax summary for a destructor
11946 [
11947 s:pattern [
11948 name = "Root must have version"
11949 "\x{a}" ~
11950 " "
11951 s:rule [
11952 context = "/db:destructorsynopsis"
11953 "\x{a}" ~
11954 " "
11955 s:assert [
11956 test = "@version"
11957 "If this element is the root element, it must have a version attribute."
11958 ]
11959 "\x{a}" ~
11960 " "
11961 ]
11962 "\x{a}" ~
11963 " "
11964 ]
11965 ]
11966 element destructorsynopsis {
11967 db.destructorsynopsis.attlist,
11968 db.modifier*,
11969 db.methodname?,
11970 ((db.methodparam | db.group.methodparam)+ | db.void?),
11971 db.exceptionname*
11972 }
11973 }
11974 div {
11975 db.methodsynopsis.role.attribute = attribute role { text }
11976 db.methodsynopsis.attlist =
11977 db.methodsynopsis.role.attribute?
11978 & db.common.attributes
11979 & db.common.linking.attributes
11980 & db.language.attribute?
11981 db.methodsynopsis =
11982
11983 ## A syntax summary for a method
11984 [
11985 s:pattern [
11986 name = "Root must have version"
11987 "\x{a}" ~
11988 " "
11989 s:rule [
11990 context = "/db:methodsynopsis"
11991 "\x{a}" ~
11992 " "
11993 s:assert [
11994 test = "@version"
11995 "If this element is the root element, it must have a version attribute."
11996 ]
11997 "\x{a}" ~
11998 " "
11999 ]
12000 "\x{a}" ~
12001 " "
12002 ]
12003 ]
12004 element methodsynopsis {
12005 db.methodsynopsis.attlist,
12006 db.modifier*,
12007 (db.type | db.void)?,
12008 db.methodname,
12009 ((db.methodparam | db.group.methodparam)+ | db.void),
12010 db.exceptionname*,
12011 db.modifier*
12012 }
12013 }
12014 div {
12015 db.methodname.role.attribute = attribute role { text }
12016 db.methodname.attlist =
12017 db.methodname.role.attribute?
12018 & db.common.attributes
12019 & db.common.linking.attributes
12020 db.methodname =
12021
12022 ## The name of a method
12023 element methodname { db.methodname.attlist, db._text }
12024 }
12025 div {
12026 db.methodparam.role.attribute = attribute role { text }
12027 db.methodparam.rep.attribute = db.rep.attribute
12028 db.methodparam.choice.attribute = db.choice.req.attribute
12029 db.methodparam.attlist =
12030 db.methodparam.role.attribute?
12031 & db.common.attributes
12032 & db.common.linking.attributes
12033 & db.methodparam.rep.attribute?
12034 & db.methodparam.choice.attribute?
12035 db.methodparam =
12036
12037 ## Parameters to a method
12038 element methodparam {
12039 db.methodparam.attlist,
12040 db.modifier*,
12041 db.type?,
12042 ((db.modifier*, db.parameter, db.initializer?) | db.funcparams),
12043 db.modifier*
12044 }
12045 }
12046 div {
12047 db.group.methodparam.role.attribute = attribute role { text }
12048 db.group.methodparam.choice.attribute = db.choice.opt.attribute
12049 db.group.methodparam.attlist =
12050 db.group.methodparam.role.attribute?
12051 & db.common.attributes
12052 & db.common.linking.attributes
12053 & db.group.methodparam.choice.attribute?
12054 db.group.methodparam =
12055
12056 ## A group of method parameters
12057 element group {
12058 db.group.methodparam.attlist,
12059 (db.methodparam | db.group.methodparam)+
12060 }
12061 }
12062 div {
12063 db.varname.role.attribute = attribute role { text }
12064 db.varname.attlist =
12065 db.varname.role.attribute?
12066 & db.common.attributes
12067 & db.common.linking.attributes
12068 db.varname =
12069
12070 ## The name of a variable
12071 element varname { db.varname.attlist, db._text }
12072 }
12073 div {
12074 db.returnvalue.role.attribute = attribute role { text }
12075 db.returnvalue.attlist =
12076 db.returnvalue.role.attribute?
12077 & db.common.attributes
12078 & db.common.linking.attributes
12079 db.returnvalue =
12080
12081 ## The value returned by a function
12082 element returnvalue { db.returnvalue.attlist, db._text }
12083 }
12084 div {
12085 db.type.role.attribute = attribute role { text }
12086 db.type.attlist =
12087 db.type.role.attribute?
12088 & db.common.attributes
12089 & db.common.linking.attributes
12090 db.type =
12091
12092 ## The classification of a value
12093 element type { db.type.attlist, db._text }
12094 }
12095 div {
12096 db.classname.role.attribute = attribute role { text }
12097 db.classname.attlist =
12098 db.classname.role.attribute?
12099 & db.common.attributes
12100 & db.common.linking.attributes
12101 db.classname =
12102
12103 ## The name of a class, in the object-oriented programming sense
12104 element classname { db.classname.attlist, db._text }
12105 }
12106 div {
12107 db.programlisting.role.attribute = attribute role { text }
12108 db.programlisting.width.attribute = db.width.characters.attribute
12109 db.programlisting.attlist =
12110 db.programlisting.role.attribute?
12111 & db.common.attributes
12112 & db.common.linking.attributes
12113 & db.verbatim.attributes
12114 & db.programlisting.width.attribute?
12115 db.programlisting =
12116
12117 ## A literal listing of all or part of a program
12118 [
12119 s:pattern [
12120 name = "Root must have version"
12121 "\x{a}" ~
12122 " "
12123 s:rule [
12124 context = "/db:programlisting"
12125 "\x{a}" ~
12126 " "
12127 s:assert [
12128 test = "@version"
12129 "If this element is the root element, it must have a version attribute."
12130 ]
12131 "\x{a}" ~
12132 " "
12133 ]
12134 "\x{a}" ~
12135 " "
12136 ]
12137 ]
12138 element programlisting {
12139 db.programlisting.attlist, db.verbatim.contentmodel
12140 }
12141 }
12142 db.admonition.blocks =
12143 db.caution | db.important | db.note | db.tip | db.warning
12144 db.admonition.contentmodel = db._info.title.only, db.all.blocks+
12145 div {
12146 db.caution.role.attribute = attribute role { text }
12147 db.caution.attlist =
12148 db.caution.role.attribute?
12149 & db.common.attributes
12150 & db.common.linking.attributes
12151 db.caution =
12152
12153 ## A note of caution
12154 [
12155 s:pattern [
12156 name = "Element exclusion"
12157 "\x{a}" ~
12158 " "
12159 s:rule [
12160 context = "db:caution"
12161 "\x{a}" ~
12162 " "
12163 s:assert [
12164 test = "not(.//db:caution)"
12165 "caution must not occur among the children or descendants of caution"
12166 ]
12167 "\x{a}" ~
12168 " "
12169 ]
12170 "\x{a}" ~
12171 " "
12172 ]
12173 s:pattern [
12174 name = "Element exclusion"
12175 "\x{a}" ~
12176 " "
12177 s:rule [
12178 context = "db:caution"
12179 "\x{a}" ~
12180 " "
12181 s:assert [
12182 test = "not(.//db:important)"
12183 "important must not occur among the children or descendants of caution"
12184 ]
12185 "\x{a}" ~
12186 " "
12187 ]
12188 "\x{a}" ~
12189 " "
12190 ]
12191 s:pattern [
12192 name = "Element exclusion"
12193 "\x{a}" ~
12194 " "
12195 s:rule [
12196 context = "db:caution"
12197 "\x{a}" ~
12198 " "
12199 s:assert [
12200 test = "not(.//db:note)"
12201 "note must not occur among the children or descendants of caution"
12202 ]
12203 "\x{a}" ~
12204 " "
12205 ]
12206 "\x{a}" ~
12207 " "
12208 ]
12209 s:pattern [
12210 name = "Element exclusion"
12211 "\x{a}" ~
12212 " "
12213 s:rule [
12214 context = "db:caution"
12215 "\x{a}" ~
12216 " "
12217 s:assert [
12218 test = "not(.//db:tip)"
12219 "tip must not occur among the children or descendants of caution"
12220 ]
12221 "\x{a}" ~
12222 " "
12223 ]
12224 "\x{a}" ~
12225 " "
12226 ]
12227 s:pattern [
12228 name = "Element exclusion"
12229 "\x{a}" ~
12230 " "
12231 s:rule [
12232 context = "db:caution"
12233 "\x{a}" ~
12234 " "
12235 s:assert [
12236 test = "not(.//db:warning)"
12237 "warning must not occur among the children or descendants of caution"
12238 ]
12239 "\x{a}" ~
12240 " "
12241 ]
12242 "\x{a}" ~
12243 " "
12244 ]
12245 s:pattern [
12246 name = "Root must have version"
12247 "\x{a}" ~
12248 " "
12249 s:rule [
12250 context = "/db:caution"
12251 "\x{a}" ~
12252 " "
12253 s:assert [
12254 test = "@version"
12255 "If this element is the root element, it must have a version attribute."
12256 ]
12257 "\x{a}" ~
12258 " "
12259 ]
12260 "\x{a}" ~
12261 " "
12262 ]
12263 ]
12264 element caution { db.caution.attlist, db.admonition.contentmodel }
12265 }
12266 div {
12267 db.important.role.attribute = attribute role { text }
12268 db.important.attlist =
12269 db.important.role.attribute?
12270 & db.common.attributes
12271 & db.common.linking.attributes
12272 db.important =
12273
12274 ## An admonition set off from the text
12275 [
12276 s:pattern [
12277 name = "Element exclusion"
12278 "\x{a}" ~
12279 " "
12280 s:rule [
12281 context = "db:important"
12282 "\x{a}" ~
12283 " "
12284 s:assert [
12285 test = "not(.//db:caution)"
12286 "caution must not occur among the children or descendants of important"
12287 ]
12288 "\x{a}" ~
12289 " "
12290 ]
12291 "\x{a}" ~
12292 " "
12293 ]
12294 s:pattern [
12295 name = "Element exclusion"
12296 "\x{a}" ~
12297 " "
12298 s:rule [
12299 context = "db:important"
12300 "\x{a}" ~
12301 " "
12302 s:assert [
12303 test = "not(.//db:important)"
12304 "important must not occur among the children or descendants of important"
12305 ]
12306 "\x{a}" ~
12307 " "
12308 ]
12309 "\x{a}" ~
12310 " "
12311 ]
12312 s:pattern [
12313 name = "Element exclusion"
12314 "\x{a}" ~
12315 " "
12316 s:rule [
12317 context = "db:important"
12318 "\x{a}" ~
12319 " "
12320 s:assert [
12321 test = "not(.//db:note)"
12322 "note must not occur among the children or descendants of important"
12323 ]
12324 "\x{a}" ~
12325 " "
12326 ]
12327 "\x{a}" ~
12328 " "
12329 ]
12330 s:pattern [
12331 name = "Element exclusion"
12332 "\x{a}" ~
12333 " "
12334 s:rule [
12335 context = "db:important"
12336 "\x{a}" ~
12337 " "
12338 s:assert [
12339 test = "not(.//db:tip)"
12340 "tip must not occur among the children or descendants of important"
12341 ]
12342 "\x{a}" ~
12343 " "
12344 ]
12345 "\x{a}" ~
12346 " "
12347 ]
12348 s:pattern [
12349 name = "Element exclusion"
12350 "\x{a}" ~
12351 " "
12352 s:rule [
12353 context = "db:important"
12354 "\x{a}" ~
12355 " "
12356 s:assert [
12357 test = "not(.//db:warning)"
12358 "warning must not occur among the children or descendants of important"
12359 ]
12360 "\x{a}" ~
12361 " "
12362 ]
12363 "\x{a}" ~
12364 " "
12365 ]
12366 s:pattern [
12367 name = "Root must have version"
12368 "\x{a}" ~
12369 " "
12370 s:rule [
12371 context = "/db:important"
12372 "\x{a}" ~
12373 " "
12374 s:assert [
12375 test = "@version"
12376 "If this element is the root element, it must have a version attribute."
12377 ]
12378 "\x{a}" ~
12379 " "
12380 ]
12381 "\x{a}" ~
12382 " "
12383 ]
12384 ]
12385 element important {
12386 db.important.attlist, db.admonition.contentmodel
12387 }
12388 }
12389 div {
12390 db.note.role.attribute = attribute role { text }
12391 db.note.attlist =
12392 db.note.role.attribute?
12393 & db.common.attributes
12394 & db.common.linking.attributes
12395 db.note =
12396
12397 ## A message set off from the text
12398 [
12399 s:pattern [
12400 name = "Element exclusion"
12401 "\x{a}" ~
12402 " "
12403 s:rule [
12404 context = "db:note"
12405 "\x{a}" ~
12406 " "
12407 s:assert [
12408 test = "not(.//db:caution)"
12409 "caution must not occur among the children or descendants of note"
12410 ]
12411 "\x{a}" ~
12412 " "
12413 ]
12414 "\x{a}" ~
12415 " "
12416 ]
12417 s:pattern [
12418 name = "Element exclusion"
12419 "\x{a}" ~
12420 " "
12421 s:rule [
12422 context = "db:note"
12423 "\x{a}" ~
12424 " "
12425 s:assert [
12426 test = "not(.//db:important)"
12427 "important must not occur among the children or descendants of note"
12428 ]
12429 "\x{a}" ~
12430 " "
12431 ]
12432 "\x{a}" ~
12433 " "
12434 ]
12435 s:pattern [
12436 name = "Element exclusion"
12437 "\x{a}" ~
12438 " "
12439 s:rule [
12440 context = "db:note"
12441 "\x{a}" ~
12442 " "
12443 s:assert [
12444 test = "not(.//db:note)"
12445 "note must not occur among the children or descendants of note"
12446 ]
12447 "\x{a}" ~
12448 " "
12449 ]
12450 "\x{a}" ~
12451 " "
12452 ]
12453 s:pattern [
12454 name = "Element exclusion"
12455 "\x{a}" ~
12456 " "
12457 s:rule [
12458 context = "db:note"
12459 "\x{a}" ~
12460 " "
12461 s:assert [
12462 test = "not(.//db:tip)"
12463 "tip must not occur among the children or descendants of note"
12464 ]
12465 "\x{a}" ~
12466 " "
12467 ]
12468 "\x{a}" ~
12469 " "
12470 ]
12471 s:pattern [
12472 name = "Element exclusion"
12473 "\x{a}" ~
12474 " "
12475 s:rule [
12476 context = "db:note"
12477 "\x{a}" ~
12478 " "
12479 s:assert [
12480 test = "not(.//db:warning)"
12481 "warning must not occur among the children or descendants of note"
12482 ]
12483 "\x{a}" ~
12484 " "
12485 ]
12486 "\x{a}" ~
12487 " "
12488 ]
12489 s:pattern [
12490 name = "Root must have version"
12491 "\x{a}" ~
12492 " "
12493 s:rule [
12494 context = "/db:note"
12495 "\x{a}" ~
12496 " "
12497 s:assert [
12498 test = "@version"
12499 "If this element is the root element, it must have a version attribute."
12500 ]
12501 "\x{a}" ~
12502 " "
12503 ]
12504 "\x{a}" ~
12505 " "
12506 ]
12507 ]
12508 element note { db.note.attlist, db.admonition.contentmodel }
12509 }
12510 div {
12511 db.tip.role.attribute = attribute role { text }
12512 db.tip.attlist =
12513 db.tip.role.attribute?
12514 & db.common.attributes
12515 & db.common.linking.attributes
12516 db.tip =
12517
12518 ## A suggestion to the user, set off from the text
12519 [
12520 s:pattern [
12521 name = "Element exclusion"
12522 "\x{a}" ~
12523 " "
12524 s:rule [
12525 context = "db:tip"
12526 "\x{a}" ~
12527 " "
12528 s:assert [
12529 test = "not(.//db:caution)"
12530 "caution must not occur among the children or descendants of tip"
12531 ]
12532 "\x{a}" ~
12533 " "
12534 ]
12535 "\x{a}" ~
12536 " "
12537 ]
12538 s:pattern [
12539 name = "Element exclusion"
12540 "\x{a}" ~
12541 " "
12542 s:rule [
12543 context = "db:tip"
12544 "\x{a}" ~
12545 " "
12546 s:assert [
12547 test = "not(.//db:important)"
12548 "important must not occur among the children or descendants of tip"
12549 ]
12550 "\x{a}" ~
12551 " "
12552 ]
12553 "\x{a}" ~
12554 " "
12555 ]
12556 s:pattern [
12557 name = "Element exclusion"
12558 "\x{a}" ~
12559 " "
12560 s:rule [
12561 context = "db:tip"
12562 "\x{a}" ~
12563 " "
12564 s:assert [
12565 test = "not(.//db:note)"
12566 "note must not occur among the children or descendants of tip"
12567 ]
12568 "\x{a}" ~
12569 " "
12570 ]
12571 "\x{a}" ~
12572 " "
12573 ]
12574 s:pattern [
12575 name = "Element exclusion"
12576 "\x{a}" ~
12577 " "
12578 s:rule [
12579 context = "db:tip"
12580 "\x{a}" ~
12581 " "
12582 s:assert [
12583 test = "not(.//db:tip)"
12584 "tip must not occur among the children or descendants of tip"
12585 ]
12586 "\x{a}" ~
12587 " "
12588 ]
12589 "\x{a}" ~
12590 " "
12591 ]
12592 s:pattern [
12593 name = "Element exclusion"
12594 "\x{a}" ~
12595 " "
12596 s:rule [
12597 context = "db:tip"
12598 "\x{a}" ~
12599 " "
12600 s:assert [
12601 test = "not(.//db:warning)"
12602 "warning must not occur among the children or descendants of tip"
12603 ]
12604 "\x{a}" ~
12605 " "
12606 ]
12607 "\x{a}" ~
12608 " "
12609 ]
12610 s:pattern [
12611 name = "Root must have version"
12612 "\x{a}" ~
12613 " "
12614 s:rule [
12615 context = "/db:tip"
12616 "\x{a}" ~
12617 " "
12618 s:assert [
12619 test = "@version"
12620 "If this element is the root element, it must have a version attribute."
12621 ]
12622 "\x{a}" ~
12623 " "
12624 ]
12625 "\x{a}" ~
12626 " "
12627 ]
12628 ]
12629 element tip { db.tip.attlist, db.admonition.contentmodel }
12630 }
12631 div {
12632 db.warning.role.attribute = attribute role { text }
12633 db.warning.attlist =
12634 db.warning.role.attribute?
12635 & db.common.attributes
12636 & db.common.linking.attributes
12637 db.warning =
12638
12639 ## An admonition set off from the text
12640 [
12641 s:pattern [
12642 name = "Element exclusion"
12643 "\x{a}" ~
12644 " "
12645 s:rule [
12646 context = "db:warning"
12647 "\x{a}" ~
12648 " "
12649 s:assert [
12650 test = "not(.//db:caution)"
12651 "caution must not occur among the children or descendants of warning"
12652 ]
12653 "\x{a}" ~
12654 " "
12655 ]
12656 "\x{a}" ~
12657 " "
12658 ]
12659 s:pattern [
12660 name = "Element exclusion"
12661 "\x{a}" ~
12662 " "
12663 s:rule [
12664 context = "db:warning"
12665 "\x{a}" ~
12666 " "
12667 s:assert [
12668 test = "not(.//db:important)"
12669 "important must not occur among the children or descendants of warning"
12670 ]
12671 "\x{a}" ~
12672 " "
12673 ]
12674 "\x{a}" ~
12675 " "
12676 ]
12677 s:pattern [
12678 name = "Element exclusion"
12679 "\x{a}" ~
12680 " "
12681 s:rule [
12682 context = "db:warning"
12683 "\x{a}" ~
12684 " "
12685 s:assert [
12686 test = "not(.//db:note)"
12687 "note must not occur among the children or descendants of warning"
12688 ]
12689 "\x{a}" ~
12690 " "
12691 ]
12692 "\x{a}" ~
12693 " "
12694 ]
12695 s:pattern [
12696 name = "Element exclusion"
12697 "\x{a}" ~
12698 " "
12699 s:rule [
12700 context = "db:warning"
12701 "\x{a}" ~
12702 " "
12703 s:assert [
12704 test = "not(.//db:tip)"
12705 "tip must not occur among the children or descendants of warning"
12706 ]
12707 "\x{a}" ~
12708 " "
12709 ]
12710 "\x{a}" ~
12711 " "
12712 ]
12713 s:pattern [
12714 name = "Element exclusion"
12715 "\x{a}" ~
12716 " "
12717 s:rule [
12718 context = "db:warning"
12719 "\x{a}" ~
12720 " "
12721 s:assert [
12722 test = "not(.//db:warning)"
12723 "warning must not occur among the children or descendants of warning"
12724 ]
12725 "\x{a}" ~
12726 " "
12727 ]
12728 "\x{a}" ~
12729 " "
12730 ]
12731 s:pattern [
12732 name = "Root must have version"
12733 "\x{a}" ~
12734 " "
12735 s:rule [
12736 context = "/db:warning"
12737 "\x{a}" ~
12738 " "
12739 s:assert [
12740 test = "@version"
12741 "If this element is the root element, it must have a version attribute."
12742 ]
12743 "\x{a}" ~
12744 " "
12745 ]
12746 "\x{a}" ~
12747 " "
12748 ]
12749 ]
12750 element warning { db.warning.attlist, db.admonition.contentmodel }
12751 }
12752 db.error.inlines =
12753 db.errorcode | db.errortext | db.errorname | db.errortype
12754 div {
12755 db.errorcode.role.attribute = attribute role { text }
12756 db.errorcode.attlist =
12757 db.errorcode.role.attribute?
12758 & db.common.attributes
12759 & db.common.linking.attributes
12760 db.errorcode =
12761
12762 ## An error code
12763 element errorcode { db.errorcode.attlist, db._text }
12764 }
12765 div {
12766 db.errorname.role.attribute = attribute role { text }
12767 db.errorname.attlist =
12768 db.errorname.role.attribute?
12769 & db.common.attributes
12770 & db.common.linking.attributes
12771 db.errorname =
12772
12773 ## An error name
12774 element errorname { db.errorname.attlist, db._text }
12775 }
12776 div {
12777 db.errortext.role.attribute = attribute role { text }
12778 db.errortext.attlist =
12779 db.errortext.role.attribute?
12780 & db.common.attributes
12781 & db.common.linking.attributes
12782 db.errortext =
12783
12784 ## An error message.
12785 element errortext { db.errortext.attlist, db._text }
12786 }
12787 div {
12788 db.errortype.role.attribute = attribute role { text }
12789 db.errortype.attlist =
12790 db.errortype.role.attribute?
12791 & db.common.attributes
12792 & db.common.linking.attributes
12793 db.errortype =
12794
12795 ## The classification of an error message
12796 element errortype { db.errortype.attlist, db._text }
12797 }
12798 db.systemitem.inlines = db._text | db.co
12799 div {
12800 db.systemitem.class.enumeration =
12801
12802 ## A daemon or other system process (syslogd)
12803 "daemon"
12804 |
12805 ## A domain name (example.com)
12806 "domainname"
12807 |
12808 ## An ethernet address (00:05:4E:49:FD:8E)
12809 "etheraddress"
12810 |
12811 ## An event of some sort (SIGHUP)
12812 "event"
12813 |
12814 ## An event handler of some sort (hangup)
12815 "eventhandler"
12816 |
12817 ## A filesystem (ext3)
12818 "filesystem"
12819 |
12820 ## A fully qualified domain name (my.example.com)
12821 "fqdomainname"
12822 |
12823 ## A group name (wheel)
12824 "groupname"
12825 |
12826 ## An IP address (127.0.0.1)
12827 "ipaddress"
12828 |
12829 ## A library (libncurses)
12830 "library"
12831 |
12832 ## A macro
12833 "macro"
12834 |
12835 ## A netmask (255.255.255.192)
12836 "netmask"
12837 |
12838 ## A newsgroup (comp.text.xml)
12839 "newsgroup"
12840 |
12841 ## An operating system name (Hurd)
12842 "osname"
12843 |
12844 ## A process (gnome-cups-icon)
12845 "process"
12846 |
12847 ## A protocol (ftp)
12848 "protocol"
12849 |
12850 ## A resource
12851 "resource"
12852 |
12853 ## A security context (a role, permission, or security token, for example)
12854 "securitycontext"
12855 |
12856 ## A server (mail.example.com)
12857 "server"
12858 |
12859 ## A service (ppp)
12860 "service"
12861 |
12862 ## A system name (hephaistos)
12863 "systemname"
12864 |
12865 ## A user name (ndw)
12866 "username"
12867 db.systemitem.class-enum.attribute =
12868
12869 ## Identifies the nature of the system item
12870 attribute class { db.systemitem.class.enumeration }?
12871 db.systemitem.class-other.attribute =
12872
12873 ## Identifies the nature of the non-standard system item
12874 attribute otherclass { xsd:NMTOKEN }
12875 db.systemitem.class-other.attributes =
12876
12877 ## Identifies the kind of systemitemgraphic identifier
12878 attribute class {
12879
12880 ## Indicates that the system item is some 'other' kind.
12881 "other"
12882 }
12883 & db.systemitem.class-other.attribute
12884 db.systemitem.class.attribute =
12885 db.systemitem.class-enum.attribute
12886 | db.systemitem.class-other.attributes
12887 db.systemitem.role.attribute = attribute role { text }
12888 db.systemitem.attlist =
12889 db.systemitem.role.attribute?
12890 & db.common.attributes
12891 & db.common.linking.attributes
12892 & db.systemitem.class.attribute?
12893 db.systemitem =
12894
12895 ## A system-related item or term
12896 element systemitem { db.systemitem.attlist, db.systemitem.inlines* }
12897 }
12898 div {
12899 db.option.role.attribute = attribute role { text }
12900 db.option.attlist =
12901 db.option.role.attribute?
12902 & db.common.attributes
12903 & db.common.linking.attributes
12904 db.option =
12905
12906 ## An option for a software command
12907 element option { db.option.attlist, db._text }
12908 }
12909 div {
12910 db.optional.role.attribute = attribute role { text }
12911 db.optional.attlist =
12912 db.optional.role.attribute?
12913 & db.common.attributes
12914 & db.common.linking.attributes
12915 db.optional =
12916
12917 ## Optional information
12918 element optional { db.optional.attlist, db._text }
12919 }
12920 div {
12921 db.property.role.attribute = attribute role { text }
12922 db.property.attlist =
12923 db.property.role.attribute?
12924 & db.common.attributes
12925 & db.common.linking.attributes
12926 db.property =
12927
12928 ## A unit of data associated with some part of a computer system
12929 element property { db.property.attlist, db._text }
12930 }
12931 div {
12932 db.topic.status.attribute = db.status.attribute
12933 db.topic.role.attribute = attribute role { text }
12934 db.topic.type.attribute =
12935
12936 ## Identifies the topic type
12937 attribute type { text }
12938 db.topic.attlist =
12939 db.topic.role.attribute?
12940 & db.topic.type.attribute?
12941 & db.common.attributes
12942 & db.common.linking.attributes
12943 & db.label.attribute?
12944 & db.topic.status.attribute?
12945 db.topic.info = db._info.title.req
12946 db.topic =
12947
12948 ## A modular unit of documentation not part of any particular narrative flow
12949 [
12950 s:pattern [
12951 name = "Root must have version"
12952 "\x{a}" ~
12953 " "
12954 s:rule [
12955 context = "/db:topic"
12956 "\x{a}" ~
12957 " "
12958 s:assert [
12959 test = "@version"
12960 "If this element is the root element, it must have a version attribute."
12961 ]
12962 "\x{a}" ~
12963 " "
12964 ]
12965 "\x{a}" ~
12966 " "
12967 ]
12968 ]
12969 element topic {
12970 db.topic.attlist,
12971 db.topic.info,
12972 db.navigation.components*,
12973 db.toplevel.blocks.or.sections,
12974 db.navigation.components*
12975 }
12976 }