Example 8-9: Excerpt from XML version of a Shakespeare play

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="shakespeare.xsl" ?>

<!DOCTYPE PLAY SYSTEM "play.dtd">
<PLAY>
<TITLE>A Midsummer Night's Dream</TITLE>

<FM>
<P>Text placed in the public domain by Moby Lexical Tools, 1992.</P>
<P>SGML markup by Jon Bosak, 1992-1994.</P>
<P>XML version by Jon Bosak, 1996-1998.</P>
<P>This work may be freely copied and distributed worldwide.</P>
</FM>

<PERSONAE>
<TITLE>Dramatis Personae</TITLE>
  
<PERSONA>THESEUS, Duke of Athens.</PERSONA>
<PERSONA>EGEUS, father to Hermia.</PERSONA>
  
<!--  etc. -->
 
</PLAY>