source: trunk/gsdl3/resources/dtd/bookfrag.dtd@ 6234

Last change on this file since 6234 was 6234, checked in by kjdon, 20 years ago

added dtds for gberg coll- shoudl be a better way to get these

  • Property svn:keywords set to Author Date Id Revision
File size: 10.8 KB
Line 
1<!--This is bookfrag DTD-->
2
3<!--entity declarations-->
4<!--#############################################-->
5
6<!ENTITY % stdatts
7"ref IDREF #IMPLIED
8 id ID #IMPLIED
9 type CDATA #IMPLIED
10 role CDATA #IMPLIED
11 class CDATA #IMPLIED"
12>
13
14<!ENTITY % inline.class "|quote|emph|ital|reference|date|place|name|graphic|txterr|mkuperr|misc ">
15
16<!ENTITY % block.class "|letter|blockquote|footnote|note|list|deflist|table|blockgraphic">
17
18
19<!-- the top level element-->
20<!--##############################################-->
21
22<!ELEMENT book (acknowledge?,meta*,frontmatter?,bookbody,backmatter?,endmeta*)>
23
24<!--begin top level element declarations-->
25<!--##############################################-->
26
27
28<!--the acknowledge element is for a simple statement
29designed to be placed at the beginning of the visible document.
30Suggested content:
31 Name of Book
32 Author
33 PG and HWG blurb
34 Original Transcriber + date
35 Marker
36 e.g.
37 "Origin of the Species by Charles Darwin
38 A project of Project Gutenberg and the HTML Writers Guild.
39 Transcribed by
40 Markup by Frank Boumphrey. Jan 22 2000"
41 -->
42
43<!ELEMENT acknowledge (#PCDATA %inline.class;)*>
44<!ATTLIST acknowledge
45 %stdatts;
46>
47
48<!--the meta tags are here to provide a means for comment
49at either the very beginning or end of the document-->
50<!ELEMENT meta EMPTY>
51<!ATTLIST meta
52 content CDATA #REQUIRED
53 id ID #IMPLIED
54>
55
56<!ELEMENT endmeta EMPTY >
57<!ATTLIST endmeta
58 content CDATA #REQUIRED
59 id ID #IMPLIED
60>
61
62
63
64<!--the bookbody element contains the body of the book it can
65consist of either part or chapter divisions-->
66
67<!ELEMENT bookbody (part*|chapter*)>
68
69<!--
70the backmatter element contains the backmatter of the book -->
71
72<!ELEMENT backmatter ((appendix|index|glossary|biblio|note)*,colophon?)>
73
74<!--The endmeta tag is groupedwith its twin meta-->
75
76
77<!--end top level element declarations-->
78
79<!--begin frontmatter element declarations-->
80<!--##############################################-->
81
82<!ELEMENT frontmatter (htitlepage|copypage|epigraph|titlepage|
83 toc|acksect|dedication|preface|introduction|miscfm)*>
84
85<!ELEMENT htitlepage (#PCDATA|title|subtitle|author|para|poem|song %inline.class;)*>
86<!ATTLIST htitlepage
87 %stdatts;
88>
89
90<!ELEMENT copypage (#PCDATA|para|poem|song|note %inline.class;)*>
91<!ATTLIST copypage
92 %stdatts;
93>
94
95<!ELEMENT epigraph (#PCDATA|para|poem|song|note|blockquote %inline.class;)*>
96<!ATTLIST epigraph
97 %stdatts;
98>
99
100
101<!ELEMENT titlepage (#PCDATA|partnum|title|subtitle|author|pubinfo|para|poem|song|note|line %inline.class;)*>
102<!ATTLIST titlepage
103 %stdatts;
104>
105
106<!ELEMENT pubinfo (#PCDATA|para|line %inline.class;)*>
107<!ATTLIST pubinfo
108 %stdatts;
109>
110
111
112<!ELEMENT toc (#PCDATA|title|subtitle|subsubtitle|item|list|deflist %inline.class;)*>
113<!--use type or role to describe toctype="other"-->
114<!ATTLIST toc
115 toctype (contents|maps|graphics|tables|other) "contents"
116 %stdatts;
117>
118
119<!ELEMENT acksect (#PCDATA|para|poem|song|note %inline.class;)*>
120<!ATTLIST acksect
121 %stdatts;
122>
123
124<!ELEMENT dedication (#PCDATA|title|para|poem|song|note %inline.class;)*>
125<!ATTLIST dedication
126 %stdatts;
127>
128
129
130<!ELEMENT preface ((title|chapheader)?,(para|poem|song|sect1|simplesect %block.class;)*,endchap?,preauthor?)>
131<!ATTLIST preface %stdatts;
132>
133
134<!ELEMENT introduction ((title|chapheader)?,(para|poem|song|sect1|simplesect %block.class;)*,endchap?)>
135<!ATTLIST introduction %stdatts;
136>
137
138<!ELEMENT miscfm (#PCDATA|para|poem|song|note %inline.class;)*>
139<!ATTLIST miscfm
140 %stdatts;
141>
142
143<!ELEMENT preauthor (#PCDATA|author %inline.class;)*>
144<!ATTLIST preauthor
145 %stdatts;
146>
147
148
149
150<!--end frontmatter element declarations-->
151
152<!--begin bookbody element declarations-->
153<!--##############################################-->
154
155
156<!ELEMENT part (acknowledge?,(titlepage|toc|htitlepage)*,chapter*)>
157<!ATTLIST part
158 %stdatts;
159>
160
161<!ELEMENT chapter ((title|chapheader)?,(para|poem|song|sect1|simplesect|page %block.class;)*,endchap?)>
162<!ATTLIST chapter %stdatts;
163>
164
165<!--end bookbody element declarations-->
166
167<!--the lowerlevel bookbody elements-->
168<!--##############################################-->
169
170<!--the chapter heading elements-->
171<!--##############################################-->
172
173
174
175
176<!ELEMENT title (#PCDATA %inline.class;)*>
177<!ATTLIST title
178 %stdatts;
179>
180
181<!ELEMENT subtitle (#PCDATA %inline.class;)*>
182<!ATTLIST subtitle
183 %stdatts;
184>
185
186<!ELEMENT subsubtitle (#PCDATA %inline.class;)*>
187<!ATTLIST subsubtitle
188 %stdatts;
189>
190
191
192
193<!--validity constraint. Only one title,chapnum and chapsummary -->
194<!ELEMENT chapheader (title|subtitle|chapnum|chapsummary|blockquote|para|note)*>
195<!ATTLIST chapheader
196 %stdatts;
197>
198
199
200<!ELEMENT chapnum (#PCDATA %inline.class;)*>
201<!ATTLIST chapnum
202 %stdatts;
203>
204
205<!ELEMENT chapsummary (#PCDATA %inline.class;)*>
206<!ATTLIST chapsummary
207 %stdatts;
208>
209
210
211<!--begin backmatter element declarations-->
212<!--##############################################-->
213
214<!--end backmatter element declarations-->
215
216<!ELEMENT index (title|item|list|deflist|note)*>
217<!ATTLIST index
218 indtype (contents|authors|firstlines|tables|other) "contents"
219 %stdatts;
220>
221
222<!ELEMENT glossary (title|item|list|deflist|note)*>
223<!ATTLIST glossary
224 %stdatts;
225>
226
227<!ELEMENT biblio (title|item|list|deflist|note)*>
228<!ATTLIST biblio
229 %stdatts;
230>
231
232
233<!ELEMENT appendix ((title|chapheader)?,(para|poem|song|sect1|simplesect %block.class;)*,endchap?)>
234<!ATTLIST appendix %stdatts;
235>
236
237<!ELEMENT colophon (#PCDATA|para|poem|song %inline.class;)*>
238<!ATTLIST colophon
239 %stdatts;
240>
241
242<!--the block elements-->
243<!--##############################################-->
244
245
246<!--validity constraint. Only one title per paragraph-->
247<!ELEMENT para (#PCDATA|title %inline.class;)*>
248<!ATTLIST para
249 %stdatts;
250>
251
252<!ELEMENT simplesect (title,(subtitle|para|poem|song %block.class;)*)>
253<!ATTLIST simplesect
254 %stdatts;
255>
256
257<!ELEMENT sect1 (title,(sect2|simplesect|para|poem|song %block.class;)*)>
258<!ATTLIST sect1
259 %stdatts;
260>
261
262<!ELEMENT sect2 (title,(sect3|simplesect|subtitle|para|poem|song %block.class;)*)>
263<!ATTLIST sect2
264 %stdatts;
265>
266
267<!ELEMENT sect3 (title,(sect4|simplesect|subtitle|para|poem|song %block.class;)*)>
268<!ATTLIST sect3
269 %stdatts;
270>
271
272<!ELEMENT sect4 (title,(simplesect|subtitle|para|poem|song %block.class;)*)>
273<!ATTLIST sect4
274 %stdatts;
275>
276
277<!ELEMENT page (#PCDATA %inline.class;)*>
278<!ATTLIST page
279 %stdatts;
280>
281
282<!ELEMENT misc (#PCDATA %inline.class;)*>
283<!ATTLIST misc
284 %stdatts;
285>
286
287
288
289<!ELEMENT blockquote (title?,(para|poem|song)*,attrib?)>
290<!ATTLIST blockquote
291 %stdatts;
292>
293
294<!ELEMENT attrib (#PCDATA %inline.class;)*>
295<!ATTLIST attrib
296 %stdatts;
297>
298
299<!ELEMENT caption (#PCDATA %inline.class;)*>
300<!ATTLIST caption
301 %stdatts;
302>
303<!--##############################################-->
304<!--poetry and songs in the text-->
305<!ELEMENT poem (#PCDATA|title|subtitle|verse|line|note|footnote %inline.class;)*>
306<!ATTLIST poem
307 %stdatts;
308>
309
310<!ELEMENT song (#PCDATA|title|subtitle|verse|line|note|footnote %inline.class;)*>
311<!ATTLIST song
312 %stdatts;
313>
314
315
316<!ELEMENT verse (title|subtitle|line|note)*>
317<!ATTLIST verse
318 %stdatts;
319>
320
321<!ELEMENT line (#PCDATA %inline.class;)*>
322<!ATTLIST line
323 %stdatts;
324>
325
326
327<!--validity constraint: Only one title per poem or per verse-->
328
329<!--end of poetry in the text-->
330
331<!--letter module-->
332
333<!ELEMENT letter (address|to|from|salut|sig|title|subtitle|para|poem|song|line|note)*>
334<!ATTLIST letter
335 %stdatts;
336>
337
338<!ELEMENT address (#PCDATA|para|line %inline.class;)*>
339<!ATTLIST address
340 %stdatts;
341>
342
343<!ELEMENT to (#PCDATA|para|line %inline.class;)*>
344<!ATTLIST to
345 %stdatts;
346>
347
348
349<!ELEMENT from (#PCDATA|para|line %inline.class;)*>
350<!ATTLIST from
351 %stdatts;
352>
353
354
355<!ELEMENT salut (#PCDATA|para|line %inline.class;)*>
356<!ATTLIST salut
357 %stdatts;
358>
359
360
361<!ELEMENT sig (#PCDATA|para|line %inline.class;)*>
362<!ATTLIST sig
363 %stdatts;
364>
365
366
367<!--end letters module-->
368<!--endchap-->
369<!--##############################################-->
370<!--
371 Endchap should only be used when there is a
372 considerable ammount of material to be organized.
373 For the occasional note footnote and note will suffice
374-->
375
376<!ELEMENT endchap (para %block.class;)*>
377<!ATTLIST endchap %stdatts;
378>
379
380<!--lists-->
381<!--##############################################-->
382
383
384<!ELEMENT list (title?,(list|item)*)>
385<!ATTLIST list
386 %stdatts;
387>
388
389<!ELEMENT item (#PCDATA|para|poem|song|simplesect %block.class; %inline.class;)*>
390<!ATTLIST item
391 %stdatts;
392>
393
394<!ELEMENT deflist (title?,(item,desc?,def*)*)>
395<!ATTLIST deflist
396 %stdatts;
397>
398
399<!ELEMENT desc (#PCDATA %inline.class;)*>
400<!ATTLIST desc
401 %stdatts;
402>
403
404<!ELEMENT def (#PCDATA %inline.class;)*>
405<!ATTLIST def
406 %stdatts;
407>
408<!--end lists-->
409<!--table element-->
410<!--##############################################-->
411
412
413<!ELEMENT table (title?,row*,caption?)>
414<!ATTLIST table
415 %stdatts;
416>
417
418<!ELEMENT row (cell)*>
419<!ATTLIST row
420 %stdatts;
421>
422
423<!ELEMENT cell (#PCDATA %block.class; %inline.class;)*>
424<!ATTLIST cell
425 %stdatts;
426>
427
428<!--end table-->
429
430<!--graphics-->
431<!--##############################################-->
432
433<!--
434 Note that the required desc attribute is added
435 text composed by the marker.
436-->
437
438<!ELEMENT graphic EMPTY >
439<!ATTLIST graphic
440 desc CDATA #REQUIRED
441 href CDATA #REQUIRED
442 %stdatts;
443>
444
445<!ELEMENT blockgraphic (title?,graphic,caption?)>
446<!ATTLIST blockgraphic
447 %stdatts;
448>
449
450
451<!--the inline elements-->
452<!--##############################################-->
453
454
455
456<!ELEMENT footnote (#PCDATA %inline.class;)*>
457<!ATTLIST footnote
458 %stdatts;
459>
460
461<!ELEMENT note (#PCDATA %inline.class;)*>
462<!ATTLIST note
463 %stdatts;
464>
465
466
467<!ELEMENT quote (#PCDATA %inline.class;)*>
468<!ATTLIST quote
469 %stdatts;
470>
471
472<!ELEMENT emph (#PCDATA %inline.class;)*>
473<!ATTLIST emph
474 %stdatts;
475>
476
477<!ELEMENT ital (#PCDATA %inline.class;)*>
478<!ATTLIST ital
479 %stdatts;
480>
481
482<!ELEMENT reference (#PCDATA %inline.class;)*>
483<!ATTLIST reference
484 %stdatts;
485>
486
487<!ELEMENT author (#PCDATA %inline.class;)*>
488<!ATTLIST author
489 %stdatts;
490>
491
492<!ELEMENT date (#PCDATA %inline.class;)*>
493<!ATTLIST date
494 %stdatts;
495>
496
497<!ELEMENT place (#PCDATA %inline.class;)*>
498<!ATTLIST place
499 %stdatts;
500>
501
502<!ELEMENT name (#PCDATA %inline.class;)*>
503<!ATTLIST name
504 %stdatts;
505>
506
507
508<!--use to enclose the text you think is in error
509optional explanation if error is not obvious-->
510<!ELEMENT txterr (#PCDATA)*>
511<!ATTLIST txterr
512 explain CDATA #IMPLIED
513 %stdatts;
514>
515
516<!--an explanation is required-->
517<!ELEMENT mkuperr EMPTY>
518<!ATTLIST mkuperr
519 explain CDATA #REQUIRED
520 %stdatts;
521>
522
523<!--added as titlepage content Feb/6/00-->
524<!ELEMENT partnum (#PCDATA %inline.class;)*>
525<!ATTLIST partnum
526 %stdatts;
527>
528
529<!--End of bookfrag dtd-->
Note: See TracBrowser for help on using the repository browser.