1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
head 1.2;
access;
symbols;
locks; strict;
comment @# @;
1.2
date 99.11.23.04.03.05; author krisrose; state Exp;
branches;
next 1.1;
1.1
date 99.11.22.18.41.48; author krisrose; state Exp;
branches;
next ;
desc
@Started on submission...late :)
@
1.2
log
@Works for simple examples
@
text
@<!--$Id: joke.dtd,v 1.1 1999/11/22 18:41:48 krisrose Exp krisrose $
DTD for jokes (just for fun). -->
<!ENTITY % bool "yes|no">
<!ELEMENT collection (joke)*>
<!ELEMENT joke (setup|pause|punch-line|annotation)*>
<!ATTLIST joke label ID #REQUIRED
refs IDREFS
offensive (%bool;) 'no'
ethnical (%bool;) #FIXED 'no'>
<!ELEMENT setup (#PCDATA|emph)*>
<!ATTLIST setup type (normal|question) 'normal'>
<!ELEMENT punch-line (#PCDATA|emph)*>
<!ATTLIST punch-line type ( normal | question ) 'normal'>
<!ELEMENT emph (#PCDATA)>
<!ELEMENT pause EMPTY>
<!ATTLIST pause seconds CDATA>
<!ELEMENT annotation ANY>
<!ATTLIST annotation refs IDREFS #IMPLIED>
@
1.1
log
@Working like mad...
@
text
@d1 1
a1 1
<!--$Id$
d6 1
a6 1
<!ELEMENT joke (line|annotation|pause)*>
d8 3
a10 1
<!ATTLIST joke number ID #REQUIRED
d14 7
a20 2
<!ELEMENT line (#PCDATA)>
<!ATTLIST line type (normal|question|punch-line) 'normal'>
d23 1
a23 1
<!ATTLIST pause delay NMTOKEN>
d26 1
@
|