<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!--Interlinear text, with notes-->


<xsl:template match="/">
<html>
<head>
<xsl:for-each select="collection">
<title><xsl:value-of select="title"/></title>
</xsl:for-each>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<font face="Gentium, Lucida Grande, Arial Unicode MS">
<xsl:for-each select="collection">
<h2><xsl:value-of select="title"/></h2>
</xsl:for-each>
<xsl:for-each select="collection/text">
<table border="0">
<tr bgcolor="salmon">
<th align="left" colspan="2"><xsl:value-of select="title"/></th>
</tr>
<tr>
<td colspan="2">
<xsl:for-each select="soundfile">
<embed src="{.}.mp3" autostart="no" height="12"></embed>
<!--  <embed src="{.}.wav" autostart="no" height="12"></embed>  -->
</xsl:for-each>
</td>
</tr>
<xsl:for-each select="line">
<tr>
<!--
      <td><font face="Lucida Grande, Gentium" color="red"><xsl:value-of select="ezPB"/></font></td>
-->
<td><font face="Lucida Grande" color="maroon"><xsl:value-of select="tgl"/></font></td>
<td>Target Language</td>
</tr>
<tr>
<td><i><xsl:value-of select="eg"/></i></td>
<td><i>English</i></td>
</tr>
<tr>
<td colspan="2"><p></p></td>
</tr>
<xsl:for-each select="note">
<tr>
<td colspan="1"><font face="Gentium"><xsl:value-of select="."/></font></td>
<td colspan="1"><i>Note</i></td>
</tr>
</xsl:for-each>
<!--spacing line-->
<tr>
<td colspan="2"><p></p></td>
</tr>
<tr>
<td colspan="2"><p></p></td>
</tr>
</xsl:for-each>
</table>
<br></br>
<br></br>
<br></br>
</xsl:for-each>
</font>
</body>
</html>
</xsl:template>
</xsl:stylesheet>