<!-- ...................................................................... -->
<!-- Helo-helo Nikki Document Type Definition ............................. -->
<!-- file: helo-diary-schema.dtd

     This is a document type for "helo-helo nikki".

     Copyright 2005 Wakaba <wakaba@suikawiki.org>, All Rights Reserved.

     Permission to use, copy, modify and distribute this DTD and its
     accompanying documentation for any purpose and without fee is hereby
     granted in perpetuity, provided that the above copyright notice and
     this paragraph appear in all copies.  The copyright holders make no
     representation about the suitability of the DTD for any purpose.
     
     It is provided "as is" without expressed or implied warranty.
     
     Revision: $Date: 2005/02/02 07:35:55 $

     R4.9.18  URLs updated.

     The latest version of the DTD is identified by the PUBLIC and 
     SYSTEM identifiers:

       PUBLIC "+//IDN suika.fam.cx/wakaba//DTD HeloHelo Nikki//EN"
       SYSTEM "https://suika.suikawiki.org/~wakaba/archive/2005/helo-diary-schema.dtd"
     
     ...................................................................... -->

<!ELEMENT diary (article*)>
<!ATTLIST diary
	year	NMTOKEN	#REQUIRED
	month	NMTOKEN	#REQUIRED
	xml:lang	CDATA	"ja">

<!ELEMENT article (section*)>
<!ATTLIST article
	day	NMTOKEN	#REQUIRED>

<!ELEMENT section (p|fig|see)*>
<!ATTLIST section
	title	CDATA	#REQUIRED>

<!-- Inline (text-level) content model -->
<!ENTITY % Inline "(#PCDATA|ref|a)*">

<!-- Paragraph -->
<!ELEMENT p %Inline;>

<!-- Figure -->
<!ELEMENT fig (img, description?)>

<!-- Figure description -->
<!ELEMENT description %Inline;>

<!-- See-also list -->
<!ELEMENT see (i*)>

<!-- List item -->
<!ELEMENT i %Inline;>

<!-- Internal reference -->
<!ELEMENT ref %Inline;>
<!ATTLIST ref
	year	NMTOKEN	#REQUIRED
	month	NMTOKEN	#REQUIRED
	day	NMTOKEN	#REQUIRED>

<!-- External reference -->
<!ELEMENT a %Inline;>
<!ATTLIST a
	href	CDATA	#REQUIRED>

<!-- Internal image embedding -->
<!ELEMENT img EMPTY>
<!ATTLIST img
	src	NMTOKEN	#REQUIRED
	width	CDATA	#IMPLIED
	height	CDATA	#IMPLIED>

<!-- end of hero-diary-schema.dtd -->
