story.dtd
author fabien
Tue, 27 Dec 2005 13:55:27 -0500
branchdtd
changeset 0 80b83583ec4b
permissions -rw-r--r--
[svn r1850] r2001@freebird: fabien | 2005-12-27 01:28:42 -0500 Last cleanup.

<!-- DTD for Story -->
<!ENTITY % common-dtd 
        PUBLIC "-//Fabien Ninoles//DTD Common XML V1.0//EN"
        "http://www.tzone.org/~fabien/dtd/common.dtd">

<!-- Entities declarations -->
<!ENTITY % special.section.alt "|story">
<!ENTITY % special.block.class "|poem|strophe|verse|dialog">
<!ENTITY % special.text.class "|cue">

%common-dtd;

<!ELEMENT story (docinfo?,(%title.class;)?,nda?,((section*)|(%commonblock.class;)*))>
<!ATTLIST story %common.attrib;>

<!ELEMENT poem ((%title.class;)?,(%commonblock.class;)*,%author.class;)>
<!ATTLIST poem %common.attrib;>

<!ELEMENT nda ((%title.class;)?,(%commonblock.class;)*)>
<!ATTLIST nda %common.attrib;>

<!ELEMENT strophe (%commontext.class;|verse)*>
<!ATTLIST strophe %common.attrib;>

<!ELEMENT verse (%commontext.class;)*> 
<!ATTLIST verse %common.attrib;>

<!ELEMENT dialog (cite+)>
<!ATTLIST dialog %common.attrib;>

<!ELEMENT cite (%commontext.class;|desc)*>
<!ATTLIST cite %common.attrib;>

<!ELEMENT desc (%commontext.class;)*>
<!ATTLIST desc %common.attrib;>

<!ELEMENT cue (%commontext.class;)*>
<!ATTLIST cue %common.attrib;>