<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">ID Number</TH>
			<TH style="background-color:beige">Salary</TH>
			<TH style="background-color:beige">Pay Period</TH>
			<TH style="background-color:beige">Department</TH>
			<TH style="background-color:beige">Title</TH>
			<TH style="background-color:beige">Image</TH>
            <TH style="background-color:beige">Link</TH>
		</TR>
	<xsl:for-each select="employees/employee" order-by="name">
		<TR VALIGN="top" 
			onmouseover="this.style.backgroundColor='lightcyan'" 
			onmouseout="this.style.backgroundColor='white'" 
			style="background-color:white;cursor:hand" onclick="alert('What would I have ever done if I had not learned XML!')">
				<TD>
					<xsl:value-of select="name" /> 
				</TD>
				<TD>
					<xsl:value-of select="@id" />
				</TD>
				<TD>
					<xsl:value-of select="salary" />
				</TD>
				<TD>
					<xsl:value-of select="salary/@payperiod" />
				</TD>
				<TD>
					<xsl:value-of select="department" />
				</TD>
				<TD>
					<xsl:value-of select="title" />
				</TD>
				<TD>	
			        <img>
			           <xsl:attribute name="src">
				           Images/<xsl:value-of select="@filename"/>
			           </xsl:attribute>
			        </img>
				</TD>
				<TD>
                	<a> <xsl:attribute name="href">
							<xsl:value-of select="link/@url" />
				       	</xsl:attribute>
						View Employee's Favorite Website
					</a>
                </TD>
    	</TR>
	</xsl:for-each>
	</TABLE>
	<BR/>
	<HR/>
	<CENTER><a HREF="employees22.xsl">See XSL Code</a></CENTER>
	</BODY>
	</HTML>
	</xsl:template>
</xsl:stylesheet>

