<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsl:include href="htmlformat.xml"/> 

	<xsl:template match="/">
		<html>
			<head>
			<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
			<script type="text/javascript">
			_uacct = "UA-482330-5";
			urchinTracker();
			</script>	
					<title>
						Weekly Recipes
					</title>
				<script language="javascript" src="scripts/xsl_mop-up.js"></script>
			</head>
			<body onload="go_decoding();">
				<div id="cometestme" style="display:none;">
					<xsl:text disable-output-escaping="yes">&amp;amp;</xsl:text>
				</div>
				<table width="340" border="0" cellpadding="8" cellspacing="0" bgcolor="#ffffff">
							
					      <tr><td>
			
						<img src="http://www.culinary.net/images/onlinefeatures/onthemenu_green.gif" border="0" alt=""/><br/>
						<xsl:for-each select="weeklyrecipes">
							<xsl:for-each select="recipe">
								<a>
								<xsl:attribute name="href">#<xsl:value-of select="@id"/></xsl:attribute>
								<xsl:for-each select="title"><xsl:apply-templates/></xsl:for-each>
								</a><br/>
							</xsl:for-each>
						</xsl:for-each>
						<br/>
						
						</td></tr>
						<xsl:for-each select="weeklyRecipes">
							<xsl:for-each select="recipe">
								<tr>
									<td>
										<a>
											<xsl:attribute name="name">
												<xsl:value-of select="@id"/>
											</xsl:attribute>
										</a>
										<xsl:for-each select="descriptionImage">
											<xsl:if test="string-length(@src)>0">
												<xsl:for-each select="@src">
													<img  align="right" vspace="5" hspace="8" border="1" width="150" height="150">
														<xsl:attribute name="src">
															<xsl:value-of select="." />
														</xsl:attribute>
														<xsl:attribute name="alt">
															<xsl:value-of select="../alt" />
														</xsl:attribute>
													</img>
												</xsl:for-each>
											</xsl:if>
										</xsl:for-each>
										<b>
											<font size="5">
												<xsl:for-each select="title">
													<xsl:apply-templates/>
												</xsl:for-each>
											</font>
										</b>
										<xsl:if test="description/text()">
											<p>
												<font>
													<strong>Description</strong>
												</font>
												<br/>
												<span name="decodeable">
													<xsl:value-of select="description/text()" disable-output-escaping="yes"/>
												</span>
												<!--<xsl:for-each select="description">
										<xsl:apply-templates/>
									</xsl:for-each>-->
											</p>
										</xsl:if>
										<xsl:if test="ingredients/text()">
											<p>
												<font>
													<strong>Ingredients</strong>
												</font>
												<br/>
												<span name="decodeable">
													<xsl:value-of select="ingredients/text()" disable-output-escaping="yes"/>
												</span>
												<!--<xsl:for-each select="ingredients">
										<xsl:apply-templates/>
									</xsl:for-each>-->
											</p>
										</xsl:if>
										<xsl:if test="preparation/text()">
											<p>
												<font>
													<strong>Preparation</strong>
												</font>
												<br/>
												<span name="decodeable">
													<xsl:value-of select="preparation/text()" disable-output-escaping="yes"/>
												</span>
												<!--<xsl:for-each select="preparation">
										<xsl:apply-templates/>
									</xsl:for-each>-->
											</p>
										</xsl:if>
										<xsl:if test="nutrition/text()">
											<p>
												<font>
													<strong>Nutrition</strong>
												</font>
												<br/>
												<span name="decodeable">
													<xsl:value-of select="nutrition/text()" disable-output-escaping="yes"/>
												</span>
												<!--<xsl:for-each select="nutrition">
										<xsl:apply-templates/>
									</xsl:for-each>-->
											</p>
										</xsl:if>
										<xsl:if test="serves/text()">
											<p>
												<font>
													<strong>Serves</strong>
												</font>
												<br/>
												<span name="decodeable">
													<xsl:value-of select="serves/text()" disable-output-escaping="yes"/>
												</span>
												<!--<xsl:for-each select="serves">
										<xsl:apply-templates/>
									</xsl:for-each>-->
											</p>
										</xsl:if>
										<xsl:if test="variations/text()">
											<p>
												<font>
													<strong>Variations</strong>
												</font>
												<br/>
												<span name="decodeable">
													<xsl:value-of select="variations/text()" disable-output-escaping="yes"/>
												</span>
												<!--<xsl:for-each select="variations">
										<xsl:apply-templates/>
									</xsl:for-each>-->
											</p>
										</xsl:if>
										<xsl:if test="calories/text()">
											<p>
												<font>
													<strong>Calories</strong>
												</font>
												<br/>
												<xsl:for-each select="calories">
													<xsl:apply-templates/>
												</xsl:for-each>
											</p>
										</xsl:if>
										<xsl:if test="totalFat/text()">
											<p>
												<font>
													<strong>Total Fat</strong>
												</font>
												<br/>
												<xsl:for-each select="totalFat">
													<xsl:apply-templates/>
												</xsl:for-each>
											</p>
										</xsl:if>
										<xsl:if test="cholesterol/text()">
											<p>
												<font>
													<strong>Cholesterol</strong>
												</font>
												<br/>
												<xsl:for-each select="cholesterol">
													<xsl:apply-templates/>
												</xsl:for-each>
											</p>
										</xsl:if>
										<xsl:if test="sodium/text()">
											<p>
												<font>
													<strong>Sodium</strong>
												</font>
												<br/>
												<xsl:for-each select="sodium">
													<xsl:apply-templates/>
												</xsl:for-each>
											</p>
										</xsl:if>
										<xsl:if test="carbs/text()">
											<p>
												<font>
													<strong>Carbohydrates</strong>
												</font>
												<br/>
												<xsl:for-each select="carbs">
													<xsl:apply-templates/>
												</xsl:for-each>
											</p>
										</xsl:if>
										<xsl:if test="protien/text()">
											<p>
												<font>
													<strong>Protien</strong>
												</font>
												<br/>
												<xsl:for-each select="protien">
													<xsl:apply-templates/>
												</xsl:for-each>
											</p>
										</xsl:if>
									</td>
								</tr>



								<!--<tr><td><b>Source:</b></td></tr>-->

								<tr>
									<td>
										<b>Source:</b>
									</td>
								</tr>
								<xsl:for-each select="sponsor">
									<tr>
										<td>
											<a>
												<xsl:if test="string-length(url)>0">
													<xsl:attribute name="onClick">
														javascript:urchinTracker('<xsl:value-of select="url"/>');
													</xsl:attribute>
													<xsl:attribute name="href">
														<xsl:value-of select="url"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:for-each select="name">
													<xsl:apply-templates/>
												</xsl:for-each>
											</a>
										</td>
									</tr>
								</xsl:for-each>
								<tr>
									<td>
										<b>Related Content:</b>
									</td>
								</tr>
								<xsl:for-each select="content">
									<tr>
										<td>
											<!--<a>
												<xsl:if test="string-length(url)>0">
													<xsl:attribute name="onClick">
														javascript:urchinTracker('<xsl:value-of select="url"/>');
													</xsl:attribute>
													<xsl:attribute name="href">
														<xsl:value-of select="url"/>
													</xsl:attribute>
												</xsl:if>-->
											<xsl:for-each select="title">
												<xsl:apply-templates/>
											</xsl:for-each>
											<!--</a>-->
										</td>
									</tr>
								</xsl:for-each>
								<tr>
									<td>
										<b>Related Recipes:</b>
									</td>
								</tr>
								<xsl:for-each select="related">
									<tr>
										<td>
											<!--<a>
												<xsl:if test="string-length(url)>0">
													<xsl:attribute name="onClick">
														javascript:urchinTracker('<xsl:value-of select="url"/>');
													</xsl:attribute>
													<xsl:attribute name="href">
														<xsl:value-of select="url"/>
													</xsl:attribute>
												</xsl:if>-->
											<xsl:for-each select="title">
												<xsl:apply-templates/>
											</xsl:for-each>
											<!--</a>-->
										</td>
									</tr>
								</xsl:for-each>

							</xsl:for-each>
						</xsl:for-each>
							
				
			</table>

			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>
