<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:template match="/">
		<html>
			<head>
				<title>XSLT Tutorial 2</title>
			</head>
			<body>
				<table border="1">
					<tr>
						<th>Name</th>
						<th>Color</th>
					</tr>
					<xsl:for-each select="List/Fruit">
						<tr>
							<td>
								<xsl:attribute name="style">
									color:<xsl:value-of select="@Color"/>; 
								</xsl:attribute>
								<xsl:value-of select="."/>
							</td>
						</tr>
					</xsl:for-each>
				</table>
			</body>
		</html>
	</xsl:template>
	
</xsl:stylesheet>
