| 1 |
<!-- ...................................................................... --> |
| 2 |
<!-- DocBook EBNF Module V1.0 ............................................. --> |
| 3 |
<!-- File dbebnf.dtd ...................................................... --> |
| 4 |
|
| 5 |
<!-- Copyright (C) 2000 Organization for the Advancement |
| 6 |
of Structured Information Standards (OASIS). |
| 7 |
|
| 8 |
$Id: dbebnf.dtd,v 1.2 2001/06/15 14:15:24 nwalsh Exp $ |
| 9 |
|
| 10 |
Permission to use, copy, modify and distribute the DocBook EBNF |
| 11 |
Module and its accompanying documentation for any purpose and |
| 12 |
without fee is hereby granted in perpetuity, provided that the |
| 13 |
above copyright notice and this paragraph appear in all copies. |
| 14 |
The copyright holders make no representation about the |
| 15 |
suitability of the DTD for any purpose. It is provided "as is" |
| 16 |
without expressed or implied warranty. |
| 17 |
|
| 18 |
If you modify the DocBook EBNF Module in any way, label your DTD |
| 19 |
as a variant of DocBook. See the maintenance documentation for |
| 20 |
more information. |
| 21 |
|
| 22 |
Please direct all questions, bug reports, or suggestions for |
| 23 |
changes to the [email protected] mailing list. For more |
| 24 |
information, see http://www.oasis-open.org/docbook/. |
| 25 |
--> |
| 26 |
|
| 27 |
<!-- ...................................................................... --> |
| 28 |
|
| 29 |
<!-- This is the driver file for V1.0 of the DocBook EBNF Module. |
| 30 |
Please use the following formal public identifier to identify it: |
| 31 |
|
| 32 |
"-//OASIS//DTD DocBook EBNF Module V1.0//EN" |
| 33 |
|
| 34 |
For example, if your document's top-level element is Book, and |
| 35 |
you are using DocBook directly, use the FPI in the DOCTYPE |
| 36 |
declaration: |
| 37 |
|
| 38 |
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook EBNF Module V1.0//EN" |
| 39 |
"http://www.oasis-open.org/docbook/xml/ebnf/1.0/dbebnf.dtd" |
| 40 |
[...]> |
| 41 |
|
| 42 |
Or, if you have a higher-level driver file that customizes DocBook, |
| 43 |
use the FPI in the parameter entity declaration: |
| 44 |
|
| 45 |
<!ENTITY % DocBookEBNFDTD PUBLIC "-//OASIS//DTD DocBook EBNF Module V1.0//EN" |
| 46 |
"http://www.oasis-open.org/docbook/xml/ebnf/1.0/dbebnf.dtd"> |
| 47 |
%DocBookEBNFDTD; |
| 48 |
|
| 49 |
See the documentation for detailed information on the parameter |
| 50 |
entity and module scheme used in DocBook, customizing DocBook and |
| 51 |
planning for interchange, and changes made since the last release |
| 52 |
of DocBook. |
| 53 |
--> |
| 54 |
|
| 55 |
<!ENTITY % ebnf.inline.hook "|nonterminal"> |
| 56 |
<!ENTITY % ebnf.block.hook "|productionset|constraintdef"> |
| 57 |
<!ENTITY % docbook PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" |
| 58 |
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> |
| 59 |
%docbook; |
| 60 |
|
| 61 |
<!ELEMENT productionset |
| 62 |
((%formalobject.title.content;)?, (production|productionrecap)+)> |
| 63 |
<!ATTLIST productionset |
| 64 |
%common.attrib; |
| 65 |
%role.attrib; |
| 66 |
> |
| 67 |
|
| 68 |
<!ELEMENT production (lhs, rhs, constraint*)> |
| 69 |
<!ATTLIST production |
| 70 |
%idreq.common.attrib; |
| 71 |
%role.attrib; |
| 72 |
> |
| 73 |
|
| 74 |
<!ELEMENT lhs (#PCDATA)> |
| 75 |
<!ATTLIST lhs |
| 76 |
%common.attrib; |
| 77 |
%role.attrib; |
| 78 |
> |
| 79 |
|
| 80 |
<!ELEMENT rhs (#PCDATA|nonterminal|lineannotation|sbr)*> |
| 81 |
<!ATTLIST rhs |
| 82 |
%common.attrib; |
| 83 |
%role.attrib; |
| 84 |
> |
| 85 |
|
| 86 |
<!-- Allowed to be an xpointer: you can point to non-terminals in --> |
| 87 |
<!-- other specifications. --> |
| 88 |
<!ENTITY % required-XLink-to-production-ID "def CDATA #REQUIRED"> |
| 89 |
<!ELEMENT nonterminal (#PCDATA)> |
| 90 |
<!ATTLIST nonterminal |
| 91 |
%common.attrib; |
| 92 |
%required-XLink-to-production-ID; |
| 93 |
%role.attrib; |
| 94 |
> |
| 95 |
|
| 96 |
<!-- Must be an IDREF: constraints identified in your spec must be --> |
| 97 |
<!-- represented in your spec. --> |
| 98 |
<!ENTITY % required-IDREF-to-constraintdef-ID "linkend IDREF #REQUIRED"> |
| 99 |
<!ELEMENT constraint EMPTY> |
| 100 |
<!ATTLIST constraint |
| 101 |
%common.attrib; |
| 102 |
%required-IDREF-to-constraintdef-ID; |
| 103 |
%role.attrib; |
| 104 |
> |
| 105 |
|
| 106 |
<!-- Must be an IDREF: you can only recap productions in your spec --> |
| 107 |
<!ENTITY % required-IDREF-to-production-ID "linkend IDREF #REQUIRED"> |
| 108 |
<!ELEMENT productionrecap EMPTY> |
| 109 |
<!ATTLIST productionrecap |
| 110 |
%common.attrib; |
| 111 |
%role.attrib; |
| 112 |
%required-IDREF-to-production-ID; |
| 113 |
> |
| 114 |
|
| 115 |
<!ELEMENT constraintdef (title, (%admon.mix;))> |
| 116 |
<!ATTLIST constraintdef |
| 117 |
%idreq.common.attrib; |
| 118 |
%role.attrib; |
| 119 |
> |
| 120 |
|
| 121 |
<!-- End of dbebnf.dtd V1.0 ............................................... --> |
| 122 |
<!-- ...................................................................... --> |