<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="xml" indent="yes"/>
<xsl:strip-space elements="h1 h2 body" />

<xsl:variable name="Copyright">Copyright &#169; 2006 Example1 Co, Inc. All Rights Reserved</xsl:variable>


<xsl:template match="/">
<html>
<head><title><xsl:value-of select="PLAY/TITLE"/></title></head>
<body>
<xsl:apply-templates />
<hr/>
<p align="center"><xsl:value-of select="$Copyright" /></p>
</body>
</html>
</xsl:template>

<!-- Templates -->
<xsl:template match="PLAY">
	<h1><xsl:value-of select="TITLE"/></h1>
	<xsl:apply-templates select="ACT" />
</xsl:template>

<xsl:template match="ACT">
	<h2><xsl:value-of select="TITLE"/></h2>
	<xsl:apply-templates select="SCENE" />
</xsl:template>

<xsl:template match="SCENE">
	<h3><xsl:value-of select="TITLE"/></h3>
	<xsl:apply-templates select="SPEECH" />
</xsl:template>

<xsl:template match="SPEECH">
	<p><strong><em><xsl:value-of select="SPEAKER"/>:</em></strong><br/>
	<xsl:apply-templates select="LINE" />
	</p>
</xsl:template>

<xsl:template match="LINE">
<xsl:value-of select="."/><br/>
</xsl:template>

</xsl:stylesheet>
