1<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 2 3<xsl:output encoding="utf-8"/> 4 5<xsl:template match="PLAY"> 6<html> 7 <head> 8 <title> 9 <xsl:value-of select="/PLAY/TITLE"/> 10 </title> 11 </head> 12<body> 13 <h1><xsl:value-of select="/PLAY/TITLE"/></h1> 14 <xsl:apply-templates select="FM|PERSONAE|ACT"/> 15</body> 16</html></xsl:template> 17 18<xsl:template match="FM"><i><xsl:apply-templates/></i></xsl:template> 19 20<xsl:template match="PERSONAE"><h2>Parts - <xsl:value-of select="TITLE"/></h2> 21<xsl:apply-templates select=".//PERSONA" /> 22</xsl:template> 23 24<xsl:template match="PERSONA"><p><b><i><xsl:value-of select="."/></i></b></p></xsl:template> 25 26<xsl:template match="ACT"><h3><xsl:value-of select="TITLE"/></h3> 27<xsl:apply-templates select="SCENE"/> 28</xsl:template> 29 30<xsl:template match="SCENE"><h3><xsl:value-of select="TITLE"/></h3> 31<xsl:apply-templates select="SPEECH"/></xsl:template> 32 33<xsl:template match="SPEAKER"><p><b><xsl:value-of select="."/></b></p></xsl:template> 34 35<xsl:template match="LINE"><xsl:value-of select="."/><br/></xsl:template> 36 37</xsl:stylesheet> 38