| 1 |
<?xml version="1.0" encoding="utf-8" ?> |
| 2 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| 3 |
|
| 4 |
<xsl:template match="/"> |
| 5 |
<html> |
| 6 |
<body> |
| 7 |
<H1><xsl:value-of select="TEI.2/teiHeader/fileDesc/titleStmt/title"/>.</H1> |
| 8 |
<xsl:apply-templates select=".//div1" /> |
| 9 |
</body> |
| 10 |
</html> |
| 11 |
</xsl:template> |
| 12 |
|
| 13 |
<xsl:template match="div1/head"><H2><xsl:apply-templates/></H2></xsl:template> |
| 14 |
<xsl:template match="div2/head"><H3><xsl:apply-templates/></H3></xsl:template> |
| 15 |
|
| 16 |
<xsl:template match="roleDesc">, <xsl:apply-templates/></xsl:template> |
| 17 |
<xsl:template match="castItem"><p><xsl:apply-templates/></p></xsl:template> |
| 18 |
<xsl:template match="castGroup/head"><br><p><b><xsl:apply-templates/></b></p></xsl:template> |
| 19 |
<xsl:template match="castGroup"><xsl:apply-templates/><br></xsl:template> |
| 20 |
|
| 21 |
<xsl:template match="sp/p"><p>####<xsl:apply-templates/></p></xsl:template> |
| 22 |
<xsl:template match="sp/p/lb"><xsl:choose><xsl:when test="@ed = 'G' or string-length(@ed) = 0"></p> |
| 23 |
<xsl:if test="string-length(@n) != 0">$$$$<xsl:value-of select="@n"/>$$$$</xsl:if> |
| 24 |
<p>####</xsl:when><xsl:otherwise><xsl:text></xsl:text></xsl:otherwise></xsl:choose></xsl:template> |
| 25 |
<xsl:template match="l/lb"><xsl:choose><xsl:when test="@ed = 'G'"></p> |
| 26 |
<xsl:if test="string-length(@n) != 0">$$$$<xsl:value-of select="@n"/>$$$$</xsl:if> |
| 27 |
<p>####</xsl:when><xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise></xsl:choose></xsl:template> |
| 28 |
|
| 29 |
<xsl:template match="l"><xsl:if test="string-length(@n) != 0"> |
| 30 |
$$$$<xsl:value-of select="@n"/>$$$$ |
| 31 |
</xsl:if><p>####<xsl:apply-templates/></p></xsl:template> |
| 32 |
<xsl:template match="lg"><xsl:apply-templates/><br></xsl:template> |
| 33 |
<xsl:template match="speaker"> |
| 34 |
<p><b><xsl:apply-templates/></b></p> |
| 35 |
</xsl:template> |
| 36 |
<xsl:template match="stage"> |
| 37 |
<indent val="3"><p><i><xsl:apply-templates/></i></p><indent val="1"></xsl:template> |
| 38 |
|
| 39 |
<!-- for lc.xml, pht.xml --> |
| 40 |
<xsl:template match="div1/lg"><xsl:apply-templates/><br><br></xsl:template> |
| 41 |
|
| 42 |
<!-- for ven.xml --> |
| 43 |
<xsl:template match="div1/lg1"><xsl:apply-templates/><br></xsl:template> |
| 44 |
|
| 45 |
</xsl:stylesheet> |