r30661 removed the only use of the vdelta algorithm from Subversion,
[svn.git] / doc / tools / dtd / dblite.dtd
blobf865324810eea994289012d3f9edfd0bf5fc7b08
1 <!--
2 DocBook Lite XML with ISO-8879 entities
4 PubID: "-//ORA//DTD DBLite XML//EN"
6 Derived from DocBook by the OASIS group
8 Please direct all questions, bug reports, or suggestions for
9 changes to <tools@oreilly.com>.
11 $Id: dblite.dtd,v 1.19 2003/01/24 19:31:43 eray Exp $
13 -->
15 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
16 OVERRIDE ENTITY DECLS
18 -->
20 <!-- add nutlist as a new list type -->
21 <!ENTITY % local.list.class "| nutlist">
23 <!-- add url -->
24 <!ENTITY % local.bibliomisc.attrib "
25 url CDATA #IMPLIED
28 <!-- add url -->
29 <!ENTITY % local.citetitle.attrib "
30 url1 CDATA #IMPLIED
33 <!-- add sortas -->
34 <!ENTITY % local.seeseealso.attrib "
35 sortas CDATA #IMPLIED
38 <!-- remove format, add height -->
39 <!ENTITY % graphics.attrib "
40 entityref ENTITY #IMPLIED
41 fileref CDATA #REQUIRED
42 srccredit CDATA #IMPLIED
43 width CDATA #IMPLIED
44 depth CDATA #IMPLIED
45 align CDATA #IMPLIED
46 scale CDATA #IMPLIED
47 scalefit CDATA #IMPLIED
50 <!-- remove format -->
51 <!ENTITY % linespecific.attrib "
52 linenumbering CDATA #IMPLIED
55 <!-- remove format -->
56 <!ENTITY % objectdata.attrib "
57 entityref ENTITY #IMPLIED
58 fileref CDATA #IMPLIED
59 srccredit CDATA #IMPLIED
62 <!-- constrain chapter contents -->
63 <!ENTITY % bookcomponent.content "
65 indexterm
66 |refentry
67 |simplesect
68 |sect1
69 |section
74 <!--
76 Marked sections to turn off so we can declare our own versions
77 of elements.
79 -->
80 <!ENTITY % appendix.element "IGNORE">
81 <!ENTITY % arg.attlist "IGNORE">
82 <!ENTITY % arg.element "IGNORE">
83 <!ENTITY % bibliodiv.element "IGNORE">
84 <!ENTITY % bibliomisc.element "IGNORE">
85 <!ENTITY % book.element "IGNORE">
86 <!ENTITY % callout.attlist "IGNORE">
87 <!ENTITY % chapter.element "IGNORE">
88 <!ENTITY % classsynopsis.attlist "IGNORE">
89 <!ENTITY % classsynopsis.element "IGNORE">
90 <!ENTITY % co.attlist "IGNORE">
91 <!ENTITY % colophon.element "IGNORE">
92 <!ENTITY % cmdsynopsis.attlist "IGNORE">
93 <!ENTITY % cmdsynopsis.element "IGNORE">
94 <!ENTITY % example.element "IGNORE">
95 <!ENTITY % footnote.element "IGNORE">
96 <!ENTITY % funcdef.element "IGNORE">
97 <!ENTITY % funcparams.element "IGNORE">
98 <!ENTITY % funcprototype.attlist "IGNORE">
99 <!ENTITY % funcprototype.element "IGNORE">
100 <!ENTITY % funcsynopsis.element "IGNORE">
101 <!ENTITY % glossary.element "IGNORE">
102 <!ENTITY % group.attlist "IGNORE">
103 <!ENTITY % group.element "IGNORE">
104 <!ENTITY % link.attlist "IGNORE">
105 <!ENTITY % menuchoice.element "IGNORE">
106 <!ENTITY % paramdef.element "IGNORE">
107 <!ENTITY % programlisting.element "IGNORE">
108 <!ENTITY % refentry.element "IGNORE">
109 <!ENTITY % refmeta.element "IGNORE">
110 <!ENTITY % refmiscinfo.element "IGNORE">
111 <!ENTITY % refname.element "IGNORE">
112 <!ENTITY % refnamediv.element "IGNORE">
113 <!ENTITY % refsect1.element "IGNORE">
114 <!ENTITY % sect1.element "IGNORE">
115 <!ENTITY % sect2.element "IGNORE">
116 <!ENTITY % sect3.element "IGNORE">
117 <!ENTITY % sect4.element "IGNORE">
118 <!ENTITY % simplesect.element "IGNORE">
119 <!ENTITY % systemitem.attlist "IGNORE">
120 <!ENTITY % title.element "IGNORE">
121 <!ENTITY % varargs.element "IGNORE">
122 <!ENTITY % xref.attlist "IGNORE">
125 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
126 IMPORT DOCBOOK 4.1
129 <!ENTITY % db
130 PUBLIC "-//OASIS//DTD DocBook XML V4.1//EN"
131 "docbook41/docbookx.dtd"
133 %db;
136 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
137 OVERRIDE ELEMENT DECLS
141 <!-- simplify model -->
142 <!ELEMENT appendix ( indexterm*,
143 title,
144 appendixinfo?,
146 indexterm
147 | refentry
148 | simplesect
149 | sect1
150 | section
155 <!-- allow paras after biblioentries -->
156 <!ELEMENT bibliodiv (
157 (%sect.title.content;)?,
159 %component.mix;
160 | biblioentry
161 | bibliomixed
166 <!-- allow paras in content -->
167 <!ELEMENT bibliomisc (
168 #PCDATA | para
172 <!-- simplify model -->
173 <!ELEMENT book (
174 title,
175 subtitle*,
176 bookinfo?,
177 toc?,
179 dedication
180 | preface
183 chapter
184 | part
187 appendix
188 | bibliography
189 | colophon
190 | glossary
191 | reference
196 <!-- simplify model -->
197 <!ELEMENT chapter ( indexterm*,
198 title,
199 chapterinfo?,
201 indexterm
202 | refentry
203 | simplesect
204 | sect1
205 | section
210 <!-- simplify model -->
211 <!ELEMENT colophon (
212 title?,
214 simplesect
215 | sect1
216 | section
221 <!-- new element -->
222 <!ELEMENT copyrightpg (
223 title?,
225 simplesect
226 | sect1
227 | section
232 <!-- simplify model -->
233 <!ELEMENT example (
234 title,
236 programlisting
237 | screen
238 | remark
239 | para
244 <!-- use different content model, defined above -->
245 <!ELEMENT footnote ( literallayout
246 |programlisting
247 |screen
248 |para)*>
250 <!ELEMENT glossary ( indexterm*,
251 title,
253 glossdiv
254 | glossentry
255 | simplesect
256 | sect1
257 | section
262 <!-- allow graphic -->
263 <!ELEMENT programlisting (%para.char.mix; | co | lineannotation | graphic)*>
265 <!-- simplify model -->
266 <!ELEMENT menuchoice (shortcut|guibutton|guiicon|guilabel
267 |guimenu|guimenuitem|guisubmenu|interface)*>
270 <!-- simplify model -->
271 <!ELEMENT refentry ( refmeta
272 | (%ndxterm.class;)*
273 | refnamediv
274 | refsect1
275 | refsynopsisdiv
276 | refentry
280 <!-- simplify model -->
281 <!ELEMENT refmeta (
282 refentrytitle
283 | refmiscinfo
284 | (%ndxterm.class;)*
288 <!-- allow inlines -->
289 <!ELEMENT refmiscinfo (#PCDATA
290 |%gen.char.class;
291 |%tech.char.class;)*>
293 <!-- allow inlines -->
294 <!ELEMENT refname (#PCDATA
295 |%gen.char.class;
296 |%tech.char.class;)*>
298 <!-- make refpurpose optional -->
299 <!ELEMENT refnamediv (
300 refdescriptor?,
301 refname,
302 refpurpose?,
303 refclass*,
305 remark
306 | %link.char.class;
311 <!-- make title optional, simplify -->
312 <!ELEMENT refsect1 (
313 refsect1info?,
315 %refsect.title.content;
320 %refcomponent.mix;
322 refsect2*
328 <!-- simplify content model -->
329 <!ELEMENT sect1 ( indexterm*,
330 sect1info?,
331 title,
332 (%divcomponent.mix;|refentry|sect2)*
335 <!-- simplify content model -->
336 <!ELEMENT sect2 ( indexterm*,
337 title,
338 (%divcomponent.mix;|refentry|sect3)*
341 <!-- simplify content model -->
342 <!ELEMENT sect3 ( indexterm*,
343 title,
344 (%divcomponent.mix;|refentry|sect4)*
347 <!-- simplify content model -->
348 <!ELEMENT sect4 ( indexterm*,
349 title,
350 (%divcomponent.mix;|refentry)*
353 <!-- make title optional, allow refentry -->
354 <!ELEMENT simplesect (
356 %sect.title.content;
357 )?,
359 %divcomponent.mix;
360 | glossentry
361 | refentry
366 <!-- use different content model, defined above -->
367 <!ELEMENT title (#PCDATA
368 |abbrev|acronym|citation|citerefentry|citetitle|emphasis
369 |firstterm|foreignphrase|glossterm|footnote|phrase
370 |quote|trademark|wordasword|action|application
371 |classname|methodname|interfacename|exceptionname
372 |ooclass|oointerface|ooexception|command|computeroutput
373 |database|email|envar|errorcode|errorname|errortype|filename
374 |function|guibutton|guiicon|guilabel|guimenu|guimenuitem
375 |guisubmenu|hardware|interface|keycap
376 |keycode|keycombo|keysym|literal|constant|markup|medialabel
377 |menuchoice|mousebutton|option|optional|parameter
378 |prompt|property|replaceable|returnvalue|sgmltag|structfield
379 |structname|symbol|systemitem|token|type|userinput|varname
380 |remark|subscript|superscript)*>
383 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
384 OVERRIDE ATTLIST DECLS
388 <!-- Make arearefs optional, add idref. -->
389 <!ATTLIST callout
390 arearefs IDREFS #IMPLIED
391 idref IDREF #IMPLIED
392 %common.attrib;
393 %callout.role.attrib;
394 %local.callout.attrib;
398 <!-- Make id optional -->
399 <!ATTLIST co
400 id IDREF #IMPLIED
401 linkend IDREF #IMPLIED
402 linkends IDREFS #IMPLIED
403 %label.attrib;
404 %co.role.attrib;
408 <!-- Make linkend optional, allow linkends -->
409 <!ATTLIST link
410 endterm IDREF #IMPLIED
411 linkend IDREF #IMPLIED
412 linkends IDREFS #IMPLIED
413 %common.attrib;
414 %link.role.attrib;
416 <!ATTLIST xref
417 endterm IDREF #IMPLIED
418 linkend IDREF #IMPLIED
419 linkends IDREFS #IMPLIED
420 %common.attrib;
421 %link.role.attrib;
425 <!-- Add more items to the class attribute -->
426 <!ATTLIST systemitem
427 class (constant
428 |groupname
429 |library
430 |macro
431 |osname
432 |resource
433 |systemname
434 |url
435 |username) #IMPLIED
436 %moreinfo.attrib;
437 %common.attrib;
438 %systemitem.role.attrib;
442 <!-- ======================================================================
443 NUTSHELL EXTENSION
444 ====================================================================== -->
447 <!ELEMENT nutlist (
448 title?,
449 nutentry+
451 <!ATTLIST nutlist
452 longestterm CDATA #IMPLIED
453 %common.attrib;
456 <!ELEMENT nutentry (
457 term*,
458 nutsynopsis*,
459 nutlisttitle?,
461 listitem
462 | nutentrybody
465 <!ATTLIST nutentry
466 %common.attrib;
469 <!ELEMENT nutsynopsis (%para.char.mix; | %para.mix;)*>
470 <!ATTLIST nutsynopsis
471 %common.attrib;
474 <!ELEMENT nutentrybody (%divcomponent.mix; | sect2 | refsect2)*>
475 <!ATTLIST nutentrybody %common.attrib;>
477 <!ELEMENT nutlisttitle (#PCDATA
478 |abbrev|acronym|citation|citerefentry|citetitle|emphasis
479 |firstterm|foreignphrase|glossterm|footnote|phrase
480 |quote|trademark|wordasword|action|application
481 |classname|methodname|interfacename|exceptionname
482 |ooclass|oointerface|ooexception|command|computeroutput
483 |database|email|envar|errorcode|errorname|errortype|filename
484 |function|guibutton|guiicon|guilabel|guimenu|guimenuitem
485 |guisubmenu|hardware|interface|keycap
486 |keycode|keycombo|keysym|literal|constant|markup|medialabel
487 |menuchoice|mousebutton|option|optional|parameter
488 |prompt|property|replaceable|returnvalue|sgmltag|structfield
489 |structname|symbol|systemitem|token|type|userinput|varname
490 |remark|subscript|superscript)*>
492 <!ATTLIST nutlisttitle
493 %common.attrib;
497 <!-- ======================================================================
498 GENERATED CODE EXTENSION
499 ====================================================================== -->
501 <!ENTITY % synop.content "
502 #PCDATA
503 | arg
504 | group
505 | option
506 | replaceable
509 <!ELEMENT arg
510 (%synop.content;)*
512 <!ATTLIST arg
513 choice (opt|req|plain) 'opt'
514 rep (norepeat|repeat) 'norepeat'
515 %common.attrib;
518 <!ELEMENT group
519 (%synop.content;)*
522 <!ATTLIST group
523 choice (opt|req|plain|optmult|reqmult) 'opt'
524 rep (norepeat|repeat) 'norepeat'
525 %common.attrib;
528 <!ELEMENT classsynopsis (
530 modifiers
531 | classname
532 | extends
533 | implements
534 | throws
535 | type
536 | members
537 | indexterm
540 <!ATTLIST classsynopsis
541 keyword CDATA #IMPLIED
542 %common.attrib;
545 <!ELEMENT cmdsynopsis (
547 command
548 | arg
549 | group
552 <!ATTLIST cmdsynopsis
553 sepchar CDATA " "
554 %common.attrib;
557 <!ELEMENT extends (
559 link
560 | classref
564 <!ELEMENT funcdef
565 ( #PCDATA
566 | accessors
567 | modifiers
568 | function
569 | type
573 <!ELEMENT funcparams
574 (%para.char.mix;)*
577 <!ELEMENT funcprototype (
579 funcdef
580 | paramdef
581 | classsynopsis
582 | extends
583 | implements
584 | throws
585 | accessors
588 <!ATTLIST funcprototype
589 flags CDATA #IMPLIED
590 %common.attrib;
593 <!ELEMENT funcsynopsis (
595 funcprototype
596 | funcdef
597 | varargs
598 | paramdef
602 <!ELEMENT implements (
604 link
605 | classref
609 <!ELEMENT membergroup (
610 (funcprototype
611 | structfield)+
614 <!ELEMENT members (
615 title,
616 membergroup*
619 <!ELEMENT modifiers
620 (#PCDATA)*
623 <!ELEMENT accessors (
624 accessor*
627 <!ELEMENT accessor
628 (#PCDATA)*
631 <!ELEMENT varargs
632 (#PCDATA)*
635 <!ELEMENT paramdef
637 #PCDATA
638 | replaceable
639 | parameter
640 | modifiers
641 | type
642 | funcparams