<?xml encoding="UTF-8"?>

<!ENTITY % common-attributes "
  xml:lang CDATA #IMPLIED">

<!ENTITY % block-elements "paragraph|table">

<!ELEMENT section (title,
                   ((%block-elements;)+
                     |((%block-elements;)*,section+)))>
<!ATTLIST section
  xmlns CDATA #FIXED 'http://www.xmlmind.com/ns/sect'
  %common-attributes;>

<!ENTITY % lang-attribute "
  xml:lang CDATA #REQUIRED">

<!ENTITY % inline-content "(#PCDATA|bold|italic|literal
                            |break|image)*">

<!ELEMENT title %inline-content;>
<!ATTLIST title
  %common-attributes;>

<!ELEMENT paragraph %inline-content;>
<!ATTLIST paragraph
  %common-attributes;>

<!ELEMENT bold %inline-content;>
<!ATTLIST bold
  %common-attributes;>

<!ELEMENT italic %inline-content;>
<!ATTLIST italic
  %common-attributes;>

<!ELEMENT literal %inline-content;>
<!ATTLIST literal
  %common-attributes;>

<!ELEMENT break EMPTY>
<!ATTLIST break
  %common-attributes;>

<!ELEMENT image EMPTY>
<!ATTLIST image
  %common-attributes;
  source CDATA #REQUIRED
  width CDATA #IMPLIED
  height CDATA #IMPLIED>

<!ELEMENT table (tableHeader?,tableRow+)>
<!ATTLIST table
  %common-attributes;>

<!ELEMENT tableHeader (tableCell)+>
<!ATTLIST tableHeader
  %common-attributes;>

<!ELEMENT tableRow (tableCell)+>
<!ATTLIST tableRow
  %common-attributes;>

<!ELEMENT tableCell (%block-elements;)+>
<!ATTLIST tableCell
  %common-attributes;
  columns CDATA "1">
