<?xml version='1.0' ?>
<!DOCTYPE section SYSTEM "./stuff.dtd" [ 
<!-- stuff.dtd simply declares a value for the 'foot' entity.
     It should be ignored, with the following declaration 
     taking precedence. -->
 <!ENTITY foot SYSTEM "./things.xml" >
 <!ENTITY foot "foot defined in the internal subset as an internal entity " >

 <!ELEMENT section (h2,div)* >
 <!ELEMENT h2 (#PCDATA) >
 <!ELEMENT div (#PCDATA) >

 <!ATTLIST h2 lang CDATA 'en' >
 <!ATTLIST h2 lang CDATA 'fr' 
              align (left | right) 'right' >
 <!ATTLIST h2 align (left | center | right ) 'center' >

]>
<section>
   <h2> This is a heading </h2>
   <div> This is the stuff inside the heading.
         The foot entity value is --[&foot;]--</div>
   <!-- The following should cause a validation error: the
        DTD says that the only allowed values are 'left' or 'right' -->
   <h2 align="center"> some other heading </h2>
   <div> some more stuff inside a div </div>
</section>

