<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:param name="show.ednotes.1"/>
	<!-- put an abbr on each kw that has an id so that you can see which it is on mouseover -->
	<xsl:template match="kw[@id]">
		<span xmlns="http://www.w3.org/1999/xhtml" class="kw"><abbr xmlns="http://www.w3.org/1999/xhtml">
			<xsl:attribute name="title">
				<xsl:value-of select="@id"/>
			</xsl:attribute>
			<xsl:value-of select="."/>
		</abbr></span>
	</xsl:template>
	
	<!-- ednote: editors' note -->
	<xsl:template match="ednote" priority="2">
		<xsl:if test="$show.ednotes.1 != 0">
			<p xmlns="http://www.w3.org/1999/xhtml" class="ednote">
				<xsl:text>Editorial Note</xsl:text>
				<xsl:if test="date">
					<xsl:apply-templates select="date"/>
				</xsl:if>
				
				<xsl:if test="name">
					<xsl:text>(</xsl:text>
					<xsl:value-of select="name"/>
					<xsl:text>)</xsl:text>
				</xsl:if>
				<xsl:text>: </xsl:text>
				<xsl:apply-templates select="edtext"/>
			</p>
		</xsl:if>
	</xsl:template>
	
	<!-- note: a note about the spec -->
	<!--<xsl:template match="note" priority="2">
		<table class="note-container" xmlns="http://www.w3.org/1999/xhtml">
			<tr xmlns="http://www.w3.org/1999/xhtml">
			<td xmlns="http://www.w3.org/1999/xhtml" class="note-prefix">Note:</td>
			<td xmlns="http://www.w3.org/1999/xhtml" class="note-body">
				<xsl:apply-templates/>
			</td>
			</tr>
		</table>
		
	</xsl:template>-->
	
</xsl:stylesheet>
