<?xml version="1.0" encoding="UTF-8"?>
<!-- STYLESHEET "HIAT_Plain_UtteranceList_Txt", 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 Textzeilen-->
<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">
		<span>
			<xsl:value-of select="position()"></xsl:value-of>
		</span>
		<span>			
			<xsl:text><![CDATA[       ]]></xsl:text>
		</span>
		<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>
		<span>
			<xsl:apply-templates select="./main"></xsl:apply-templates>
		</span>
		<br></br>
	</xsl:template>

	<!-- for the mains... -->
	<xsl:template match="main">
		<xsl:apply-templates/>
	</xsl:template>

</xsl:stylesheet>
