Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

67 lines (56 sloc) 1.906 kb
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xsl:call-template name="play" />
<xsl:template match="/">
<title>Open Shakespeare - <xsl:value-of select="PLAY/TITLE" /></title>
<link rel="stylesheet" href="" type="text/css" media="screen" charset="utf-8" />
<xsl:call-template name="play" />
<!--Template for Shakespeare play-->
<xsl:template name="play">
<xsl:for-each select="PLAY">
<h2><xsl:value-of select="TITLE" /></h2>
<!-- Could be used to make a character list
<xsl:for-each select="PERSONAE/PERSONA">
<p><xsl:value-of select="current()" /></p>
</xsl:for-each> -->
<xsl:for-each select="ACT" >
<h3 class="shkspr-act-title"><xsl:value-of select="TITLE" /></h3>
<xsl:for-each select="SCENE" >
<xsl:apply-templates />
<xsl:template match="SCENE/TITLE">
<h4 class="shkspr-scene-title"><xsl:value-of select="." /></h4>
<xsl:template match="SPEECH">
<div class="shkspr-speech">
<p class="shkspr-speech-speaker"><xsl:value-of select="SPEAKER" /></p>
<p class="shkspr-speech-body">
<xsl:for-each select="LINE" >
<xsl:apply-templates />
<br />
<xsl:template match="LINE/STAGEDIR">
[<span class="shkspr-stagedir-inline"><xsl:value-of select="." /></span>]
<xsl:template match="STAGEDIR">
<p class="shkspr-stagedir"><xsl:value-of select="." /></p>
Jump to Line
Something went wrong with that request. Please try again.