<?xml version="1.0" encoding="UTF-8"?>
<!-- STYLESHEET "HIAT_Plain_UtteranceList_Tbl", Thomas Schmidt, 14.04.2004 -->
<!-- Stylsheet zur Anwendung auf eine EXMARaLDA List-Transcription -->
<!-- (im Partitur-Editor: Segmentation-HIAT Segmentation-Utterance List (HTML)) -->
<!-- Generiert eine HTML-Datei mit einer Darstellung der List-Transcription als zeitlich geordnete Liste von Sprecherbeiträgen -->
<!-- Annotationen und Deskriptionen werden ausgeblendet -->
<!-- Die Ausgabe erfolgt in einer Tabelle -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<!-- match any element in the document -->
	<xsl:template match="/">
		<!-- make a html document... -->
		<html>
			<head>
<link rel="shortcut icon" href="favicon.ico" />




				<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
			</head>
			<body>
				<!-- ... with one table... -->
				<table>
					<!-- ... and process the speaker contributions -->
					<xsl:apply-templates select="list-transcription/list-body/speaker-contribution"/>
				</table>
			</body>
		</html>
	</xsl:template>
	<!-- for the speaker contributions ... -->
	<xsl:template match="speaker-contribution">
		<!-- ... make a table row ... -->
		<tr>
			<!-- ... with one cell for numbering ... -->
			<td valign="top">
				<pre>
				<xsl:value-of select="position()"></xsl:value-of></pre>
			</td>			
			<!-- ... one cell for the speaker abbreviation ... -->
			<td valign="top">
				<b>
					<xsl:variable name="id">
						<xsl:value-of select="@speaker"/>
					</xsl:variable>
					<xsl:value-of select="//speaker[@id = $id]/abbreviation"/>
					<xsl:text>: </xsl:text>					
				</b>
			</td>
			<!-- ... and one cell containing a nested table with the main, dependent and annotation tiers ... -->
			<td valign="top">
				<xsl:apply-templates select="./main"></xsl:apply-templates>
			</td>
		</tr>
	</xsl:template>
	<!-- for the mains... -->
	<xsl:template match="main">
		<!-- ... simply make a table row with one cell containing the text -->
		<xsl:apply-templates/>
	</xsl:template>

</xsl:stylesheet>
