<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
	<xsl:template match="/">
	<HTML>
	<HEAD>
	<SCRIPT LANGUAGE="javascript">
	</SCRIPT>
	</HEAD>
	<BODY>
	<TABLE border="0" cellpadding="3" cellspacing="3">
		        <TR>
			<TH style="background-color:beige">Name</TH>
			<TH style="background-color:beige">Salary</TH>
		</TR>
	<xsl:for-each select="employees/employee[salary]" order-by="name">
		<TR VALIGN="top" 
			onmouseover="this.style.backgroundColor='lightcyan'" 
			onmouseout="this.style.backgroundColor='white'" 
			style="background-color:white;cursor:hand" onclick="alert('We love this class! XML is the Best!')">
			<TD>
				<xsl:value-of select="name"/>
			</TD>
			<TD>
            <xsl:choose>
			<xsl:when match=".[salary = 24500 $or$ salary = 22500]"><xsl:value-of select="name"/>,
				 you have a salary of $<xsl:value-of select="salary"/>.<br />
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="name"/>, sorry, your salary was not $22500 or $24500, it was $<xsl:value-of select="salary"/>.<br />	
			</xsl:otherwise>
            </xsl:choose>
			</TD>
		</TR>
	</xsl:for-each>
	</TABLE>
	<BR/>
	<HR/>
	<CENTER><a HREF="choose4.xsl">See XSL Code</a></CENTER>
	</BODY>
	</HTML>
	</xsl:template>
</xsl:stylesheet>

