<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:field="http://www.emeld.org/field/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema">
 <xsl:output method="html" version="4.0" /> 

	<xsl:template match="/">
		<html>
			<head>
				<title>Biao Min Stylesheets</title>
				<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
			</head>
			<body>
				<xsl:for-each select="lexicon">
					<br/>					
					<xsl:for-each select="@lang">
						<span style="font-family:Arial Unicode MS;font-size:large; color:#666699;font-weight:bold; ">
							<xsl:value-of select="."/>
						</span>
					</xsl:for-each>
					<br/>
						<span style="font-family:Arial Unicode MS;font-size:small; color:#666699;">
							<b>Field Linguist:</b>
						</span>
						<xsl:for-each select="@linguist">
							<span style="font-family:Arial Unicode MS;color:#666699; ">
								<xsl:value-of select="."/>
							</span>
						</xsl:for-each>
					<br/>
				<br/>
					<span style="font-family:Arial Unicode MS;color:#0033ff;font-size:11; ">
						Note: These demonstration sound files are not by a native speaker of Biao Min.
					</span>
					<br/><br/>

					<xsl:for-each select="forms">
						<p>
							<xsl:for-each select="form">
								<xsl:for-each select="linguisticform">
									<xsl:for-each select="unanalyzedform">
										<span style="font-family:Arial Unicode MS;font-weight:bold;color:red; ">
											<xsl:apply-templates/>
										</span>
									</xsl:for-each>
								</xsl:for-each>
								<span style="font-family:Arial Unicode MS; ">&#160;</span>
								<span style="font-family:Arial Unicode MS; ">&#160;</span>
								<span style="font-family:Arial Unicode MS; ">&#160;</span>
								<xsl:for-each select="@id">
									<a href="sound/mp3/{.}.mp3 ">
										<img src="audio.gif" border="0"/>
									</a>
								</xsl:for-each>
								<span style="font-family:Arial Unicode MS; ">&#160;</span>
								<span style="font-family:Arial Unicode MS; ">&#160;</span>
								<span style="font-family:Arial Unicode MS; ">&#160;</span>
								<xsl:for-each select="gloss">
									<xsl:for-each select="@value">
										<span style="font-family:Arial Unicode MS;color:#666699; ">
											<xsl:value-of select="."/>
										</span>
									</xsl:for-each>
								</xsl:for-each>
								<span style="font-family:Arial Unicode MS; ">&#160;</span>
								<span style="font-family:Arial Unicode MS; ">&#160;</span>
								<span style="font-family:Arial Unicode MS; ">&#160;</span>
								<br/>
								<br/>
								<ul>
									<li>
										<xsl:for-each select="@formtype">
											<span style="font-family:Arial Unicode MS;color:#666699; ">
												<xsl:value-of select="."/>
											</span>
										</xsl:for-each>
									</li>
									<xsl:for-each select="grammatical-relation">
										<xsl:if test="@pos != ' '">
											<li>
												<xsl:for-each select="@pos">
													<span style="font-family:Arial Unicode MS;color:#666699; ">
														<xsl:value-of select="."/>
													</span>
												</xsl:for-each>
											</li>
										</xsl:if>
									</xsl:for-each>
									<xsl:for-each select="gloss">
										<xsl:if test="semantic-field != ' '">
											<xsl:for-each select="semantic-field">
												<li>
													<span style="font-family:Arial Unicode MS;color:#666699; ">
														<xsl:value-of select="."/>
													</span>
												</li>
											</xsl:for-each>
										</xsl:if>
									</xsl:for-each>
								</ul>
							</xsl:for-each>
						</p>
					</xsl:for-each>
					<br/>
					<br/>
				</xsl:for-each>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>
