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

	<xsl:template match="/">
		<xsl:variable name="LocalVar">Local Var</xsl:variable>
		
		<html>
			<head>
				<title>XSLT Tutorial 2</title>
			</head>
			<body>
				<xsl:value-of select="$GlobalVar" /><br />
				<xsl:value-of select="$LocalVar" /><br />
				
				<table border="1">
					<tr>
						<th>Name</th>
					</tr>
					<xsl:for-each select="List/Fruit">
						<xsl:apply-templates select=".">
							<xsl:with-param name="FontSize">10pt</xsl:with-param>
						</xsl:apply-templates>
					</xsl:for-each>
				</table>
			</body>
		</html>
	</xsl:template>
		
	<xsl:template match="Fruit">
		<xsl:param name="FontSize">6pt</xsl:param>
		
		<tr>
			<td>
				<xsl:attribute name="style">
					color:<xsl:value-of select="@Color"/>; 
				</xsl:attribute>
				<font size="{$FontSize}"><xsl:value-of select="."/></font>
			</td>
		</tr>
	</xsl:template>
	
</xsl:stylesheet>
