6. DTD Definition

Below is the actual DTD file.

1: <?xml version="1.0" encoding="UTF-8"?> 2: 3: <!-- 4: DTD for basic documents like manuals, etc. 5: 6: $Author: just $ 7: $Id: doc.dtd,v 1.12 2003/11/19 15:12:09 just Exp $ 8: 9: This DTD defines only the overall structure of a structured document. 10: The document is divided into three parts: front, middle and back. 11: The front defines meta info like author(s) date etc. The middle defines 12: the body (content) and the optional back contains references. 13: 14: Most of the content elements are defined in text.dtd. 15: 16: --> 17: 18: <!-- Reuse text.dtd for simple text formatting --> 19: <!ENTITY % text-dtd PUBLIC "-//Just Objects//DTD XBook//EN" "nl/justobjects/xbook/rsc/dtd/text.dtd"> 20: <!-- <!ENTITY % text-dtd SYSTEM "nl/justobjects/xbook/rsc/dtd/text.dtd"> --> 21: %text-dtd; 22: 23: 24: <!-- The top element --> 25: <!ELEMENT doc (front,middle,back?)> 26: <!ATTLIST doc 27: label CDATA 'unlabeled' 28: > 29: 30: <!-- START front definition --> 31: 32: <!ELEMENT front (title,id?,author+,date,abstract)> 33: 34: <!-- Elements within the front --> 35: <!ELEMENT title (%CTEXT;)> 36: 37: <!ELEMENT id (%CTEXT;)> 38: 39: <!ELEMENT author (name, organization, email)> 40: <!ELEMENT name (%CTEXT;)> 41: <!ELEMENT organization (%CTEXT;)> 42: <!ELEMENT email (%CTEXT;)> 43: 44: <!ELEMENT date (%CTEXT;)> 45: <!ELEMENT abstract (%CTEXT;)> 46: 47: <!-- END front definition --> 48: 49: 50: <!-- START middle definition --> 51: 52: <!-- The middle body should only contain "chapters", i.e. section1 --> 53: <!ELEMENT middle (section1)*> 54: 55: <!-- END middle definition --> 56: 57: 58: <!-- START back definition --> 59: 60: <!-- Optional back section with references --> 61: <!ELEMENT back (reference-list?)> 62: 63: <!ELEMENT reference-list (reference-item+)> 64: 65: <!ELEMENT reference-item (%text;)*> 66: <!ATTLIST reference-item 67: id ID #IMPLIED 68: > 69: 70: <!-- END back definition --> 71: 72: <!-- 73: $Log: doc.dtd,v $ 74: Revision 1.12 2003/11/19 15:12:09 just 75: many changes for invoking xbook in ant 76: 77: Revision 1.11 2003/01/06 10:27:22 just 78: removed Arial fonts from default styles 79: 80: Revision 1.10 2002/07/09 11:54:14 just 81: only comments and moving Log section to end of document. 82: 83: Revision 1.9 2002/07/05 23:56:00 just 84: introduction of page.dtd and page2html.xsl 85: 86: Revision 1.8 2002/07/04 12:45:58 just 87: made id in front section optional 88: 89: Revision 1.7 2002/06/17 15:10:38 just 90: no real chnages 91: 92: Revision 1.6 2002/04/05 12:24:47 just 93: upgrade to xalan 2.1.3 and xerces 2.0.1 94: 95: Revision 1.5 2002/03/27 20:08:26 just 96: support for html escape with xhtml tag in text.dtd and text2html.xsl 97: 98: Revision 1.4 2002/02/04 23:27:40 just 99: mainly changes to find resources through CLASSPATH (no cpath:/ anymore) 100: 101: Revision 1.3 2002/01/03 15:32:11 just 102: changes required for upgrade to Xalan 2.2D14 103: 104: Revision 1.2 2001/12/13 10:13:35 just 105: various changes 106: 107: Revision 1.1 2001/12/11 14:05:35 just 108: new 109: 110: Revision 1.3 2001/08/13 23:02:58 kstroke 111: changed to xbook/... 112: 113: Revision 1.2 2000/09/14 11:35:31 just 114: include text.dtd 115: 116: Revision 1.1 2000/08/28 00:03:54 just 117: no message 118: 119: Revision 1.1 2000/08/24 10:12:58 just 120: new 121: -->