3. DTD Definition

Below is the actual DTD file.

1: <?xml version="1.0" encoding="UTF-8"?> 2: 3: <!-- 4: DTD for basic webpages. 5: 6: $Author: just $ 7: $Id: page.dtd,v 1.5 2003/11/19 15:12:09 just Exp $ 8: 9: --> 10: <!-- Reuse text.dtd for simple text formatting --> 11: <!ENTITY % text-dtd PUBLIC "-//Just Objects//DTD XBook//EN" "nl/justobjects/xbook/rsc/dtd/text.dtd"> 12: <!-- <!ENTITY % text-dtd SYSTEM "nl/justobjects/xbook/rsc/dtd/text.dtd"> --> 13: %text-dtd; 14: 15: 16: <!-- START The top-level --> 17: 18: <!-- Top element --> 19: <!ELEMENT page (info?,content)> 20: 21: <!-- START Meta Info matter --> 22: 23: <!ELEMENT info (title,id?,author,date)> 24: 25: <!ELEMENT title (%CTEXT;)> 26: <!ELEMENT id (%CTEXT;)> 27: <!ELEMENT author (name, email)> 28: <!ELEMENT name (%CTEXT;)> 29: <!ELEMENT email (%CTEXT;)> 30: <!ELEMENT date (%CTEXT;)> 31: 32: 33: <!-- The content --> 34: <!ELEMENT content (%text; | section1 | section2 | section3 | section4)*> 35: 36: <!-- 37: $Log: page.dtd,v $ 38: Revision 1.5 2003/11/19 15:12:09 just 39: many changes for invoking xbook in ant 40: 41: Revision 1.4 2003/01/06 10:27:22 just 42: removed Arial fonts from default styles 43: 44: Revision 1.3 2002/07/09 23:17:32 just 45: allow images to be used in top of menu frame 46: 47: Revision 1.2 2002/07/09 11:54:14 just 48: only comments and moving Log section to end of document. 49: 50: Revision 1.1 2002/07/05 23:56:23 just 51: introduction of page.dtd and page2html.xsl 52: -->