| 1 |
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook EBNF Module V1.0//EN" |
| 2 |
"dbebnf.dtd"> |
| 3 |
<book> |
| 4 |
<title>Book Title</title> |
| 5 |
<chapter><title>Chapter Title</title> |
| 6 |
<para>Content.</para> |
| 7 |
|
| 8 |
<productionset><title>Character Range</title> |
| 9 |
<production id="NT-Char"> |
| 10 |
<lhs>Char</lhs> |
| 11 |
<rhs>#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] |
| 12 |
<!-- The above line break in the source file has nothing to do with the |
| 13 |
line breaks in the output. --> |
| 14 |
| [#x10000-#x10FFFF] |
| 15 |
<lineannotation>any Unicode character, excluding the surrogate |
| 16 |
blocks, FFFE, and FFFF. |
| 17 |
</lineannotation> |
| 18 |
</rhs> |
| 19 |
</production> |
| 20 |
</productionset> |
| 21 |
|
| 22 |
<productionset><title>Standalone Document Declaration</title> |
| 23 |
<production id="NT-SDDecl"> |
| 24 |
<lhs>SDDecl</lhs> |
| 25 |
<rhs><nonterminal def="#NT-S">S</nonterminal> 'standalone' <nonterminal def="#NT-Eq">Eq</nonterminal> |
| 26 |
<!-- The above line break in the source file has nothing to do with the |
| 27 |
line breaks in the output. --> |
| 28 |
(("'" ('yes' | 'no') "'") | ('"' ('yes' | 'no') '"')) |
| 29 |
</rhs> |
| 30 |
<constraint linkend="check-rmd"/> |
| 31 |
</production> |
| 32 |
</productionset> |
| 33 |
|
| 34 |
<productionset> |
| 35 |
<production id="NT-element"> |
| 36 |
<lhs>element</lhs> |
| 37 |
<rhs> |
| 38 |
<nonterminal def="#NT-EmptyElemTag">EmptyElemTag</nonterminal> |
| 39 |
<sbr/><!-- There will be a line break in the output because of the sbr. --> |
| 40 |
| <nonterminal def="#NT-STag">STag</nonterminal> <nonterminal def="#NT-content">content</nonterminal> |
| 41 |
<!-- The above line break has nothing to do with the output. --> |
| 42 |
<nonterminal def="#NT-SDDecl"/> |
| 43 |
</rhs> |
| 44 |
<constraint linkend="GIMatch"/> |
| 45 |
<constraint linkend="elementvalid"/> |
| 46 |
</production> |
| 47 |
<productionrecap linkend="NT-SDDecl"/> |
| 48 |
</productionset> |
| 49 |
|
| 50 |
<para>A bunch of anchors to make the preceding examples valid: |
| 51 |
<anchor id="NT-S"/> |
| 52 |
<anchor id="NT-Eq"/> |
| 53 |
<anchor id="NT-content"/> |
| 54 |
<anchor id="NT-ETag"/> |
| 55 |
<anchor id="NT-EmptyElemTag"/> |
| 56 |
<anchor id="NT-STag"/> |
| 57 |
</para> |
| 58 |
|
| 59 |
<constraintdef id="check-rmd" role="VC"> |
| 60 |
<title>Standalone Document Declaration</title> |
| 61 |
<para>Some description...</para> |
| 62 |
</constraintdef> |
| 63 |
|
| 64 |
<constraintdef id="elementvalid" role="VC"> |
| 65 |
<title>Element Valid</title> |
| 66 |
<para>Some description...</para> |
| 67 |
</constraintdef> |
| 68 |
|
| 69 |
<constraintdef id="GIMatch" role="WFC"> |
| 70 |
<title>Element Type Match</title> |
| 71 |
<para>Some description...</para> |
| 72 |
</constraintdef> |
| 73 |
|
| 74 |
</chapter> |
| 75 |
</book> |