<!ENTITY % inline "#PCDATA | emph | strong | code">

<!ENTITY % block "para | itemize | enumerate | verbatim | picture">

<!ELEMENT doc (book | article | report)>
<!ATTLIST doc
    style  CDATA  #IMPLIED
>

<!ELEMENT book (title, toc?, chapter*)>
<!ELEMENT article (title, toc?, chapter*)>
<!ELEMENT report (title, toc?, chapter*)>

<!ELEMENT title (%inline;)*>
<!ELEMENT toc EMPTY>

<!ELEMENT chapter (heading, (%block;)*, section*)>
<!ELEMENT section (heading, (%block;)*, subsection*)>
<!ELEMENT subsection (heading, (%block;)*, subsubsection*)>
<!ELEMENT subsubsection (heading, (%block;)*)>

<!ELEMENT para (%inline;|%block;)*>
<!ELEMENT itemize (item)*>
<!ELEMENT enumerate (item)*>
<!ELEMENT item (%inline;|%block;)*>

<!ELEMENT emph (%inline;)*>
<!ELEMENT strong (%inline;)*>
<!ELEMENT code (%inline;)*>

<!ELEMENT table (row)+>
<!ELEMENT row (col)+>
<!ELEMENT col (%inline;)*>

<!ATTLIST table
   cpos   CDATA  #REQUIRED
>

<!ELEMENT picture EMPTY>
<!ATTLIST picture
   src    CDATA    #IMPLIED
   eps    CDATA    #IMPLIED
>

