1:<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
   2:xmlns:fo="http://www.w3.org/1999/XSL/Format">
   3:<xsl:output method="xml" indent="yes"/>
   4:<xsl:strip-space elements="h1 h2 body" />
   5:
   6:<xsl:variable name="Copyright">Copyright &#169; 2006 Example1 Co, Inc. All Rights Reserved</xsl:variable>
   7:
   8:
   9:<xsl:template match="/">
  10:<html>
  11:<head><title><xsl:value-of select="PLAY/TITLE"/></title></head>
  12:<body>
  13:<xsl:apply-templates />
  14:<hr/>
  15:<p align="center"><xsl:value-of select="$Copyright" /></p>
  16:</body>
  17:</html>
  18:</xsl:template>
  19:
  20:<!-- Templates -->
  21:<xsl:template match="PLAY">
  22:    <h1><xsl:value-of select="TITLE"/></h1>
  23:    <xsl:apply-templates select="ACT" />
  24:</xsl:template>
  25:
  26:<xsl:template match="ACT">
  27:    <h2><xsl:value-of select="TITLE"/></h2>
  28:    <xsl:apply-templates select="SCENE" />
  29:</xsl:template>
  30:
  31:<xsl:template match="SCENE">
  32:    <h3><xsl:value-of select="TITLE"/></h3>
  33:    <xsl:apply-templates select="SPEECH" />
  34:</xsl:template>
  35:
  36:<xsl:template match="SPEECH">
  37:    <p><strong><em><xsl:value-of select="SPEAKER"/>:</em></strong><br/>
  38:    <xsl:apply-templates select="LINE" />
  39:    </p>
  40:</xsl:template>
  41:
  42:<xsl:template match="LINE">
  43:<xsl:value-of select="."/><br/>
  44:</xsl:template>
  45:
  46:</xsl:stylesheet>