<!--
    This is DML(DiaryMarkupLanguage) 1.0 DTD, which excludes the
presentation
    attributes and element that TDS expect to phase out as
    support for style sheets matures. Diary Authors should use this DTD
    when possible.

        Draft: $Date: 2000/10/21 18:11:18 $

 Author:
     TANAKA Tomonari <tom@morito.mgmt.waseda.ac.jp>

    Further information about DML 1.0 is ... not available now.
    maybe

        http://www.morito.mgmt.waseda.ac.jp/~tom/TomSoft/TsDiary/DML/

    but now underconstruction.

-->
<!--
    Typical usage:

    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="diary.xsl"?>
    <!DOCTYPE DML SYSTEM
"http://www.morito.mgmt.waseda.ac.jp/~tom/TomSoft/TsDiary/~tom/TomSoft/TsDia
ry/DML/dml.dtd">
    <diary>
    <rdf:RDF
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
 xmlns:dc="http://purl.org/dc/elements/1.0/"
    >
    <rdf:Description>
     <dc:Creator>your name</dc:Creator>
     <dc:Creator.Email>your email address</dc:Creator.Email>
     <dc:Title>your diary title</dc:Title>
    </rdf:Description>
    </rdf:RDF>

    <daily>
        <topic>
     <title>presentation</title>
     <category>lab</category>
     <number>1</number>
     <content>
     <p>it's no going well...</p>
     </content>
 </topic>
    </daily>
    <daily>
        ....
    </daily>
    </diary>
</diary>
-->

<!-- ################################################################ -->
<!-- basic entity -->
<!ENTITY % URI "CDATA">
<!ENTITY % Level "(high | middle | low)">
<!ENTITY % DecorationType "(underline | linethrough)">
<!ENTITY % Length "CDATA">
<!ENTITY % ImageAlign "(left | right | top | bottom)">

<!-- inline entity -->
<!ENTITY % phrase "strong | decoration">
<!ENTITY % footnote "footnote">
<!ENTITY % special "a">
<!ENTITY % inline "CDATA | %footnote; | %phrase; | %special; | span">

<!-- block entity -->
<!ENTITY % list "list">
<!ENTITY % block "p | code | %list;">

<!ENTITY % flow "(%inline; | %block; )">

<!-- ################ ELEMENT ################ -->
<!-- elements -->
<!ELEMENT diary (daily)*>
<!ELEMENT daily (topic)*>
<!ELEMENT topic (category|title|content)*>

<!ELEMENT title (%inline;)*>
<!ELEMENT category (%inline;)*>
<!ELEMENT content (%flow;)*>

<!-- #### block elements ####-->
<!ELEMENT p (%inline;)*>
<!ELEMENT code (%inline;)*>

<!-- list elements -->
<!ELEMENT list (item)+>
<!ATTLIST list
  count   (yes | no)   "no"
  >
<!ELEMENT item (%inline;)*>


<!-- #### inline elements ####-->
<!ELEMENT strong (%inline;)*>
<!ATTLIST strong
  level  %Level; "middle"
  >
<!ELEMENT decoration (%inline;)*>
<!ATTLIST decoration
  type   %DecorationType;  "underline">
<!ELEMENT a (%inline;)*>
<!ATTLIST a
  href   %URI;   #IMPLIED
  >
<!ELEMENT span (%inline;)*>
<!ATTLIST span
  class  CDATA   #IMPLIED
  style  CDATA   #IMPLIED
  >
<!ELEMENT uri (%URI;)>
<!ELEMENT imagetitle (#PCDATA)>
<!ELEMENT width (%Length;)>
<!ELEMENT height (%Length;)>
<!ELEMENT size (width | height)>
<!ELEMENT align (%ImageAlign;)>
<!ELEMENT image (uri|imagetitle|size|align)>

<!-- end of DML 1.0 DTD -->
