<?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>
			<xsl:for-each select="weeklyArticles">
				<xsl:variable name="categoryCode" select="categoryCode"/>
				<head>
					<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
					<script type="text/javascript">
						_uacct = "UA-482330-5";
						urchinTracker();
					</script>
          <style>
            a {color:#003366; text-decoration:none;}
            a:hover {color:#003366; text-decoration:underline;}
          </style>
					<title>
						Weekly <xsl:for-each select="categoryName">
							<xsl:apply-templates/>
						</xsl:for-each> Articles
					</title>
				<script language="javascript" src="scripts/xsl_mop-up.js"></script>
				</head>
				<body>
				<div id="cometestme" style="display:none;">
					<xsl:text disable-output-escaping="yes">&amp;amp;</xsl:text>
				</div>
					<table width="440" border="0" cellpadding="8" cellspacing="0" bgcolor="#ffffff">

						<xsl:for-each select="article">
							<xsl:variable name="id" select="@id"/>
							<xsl:variable name="title" select="title"/>
							<tr>
								<td>
									<a href="article.ashx?articleId={$id}">
										<xsl:for-each select="introductionImage">
											<xsl:for-each select="@src">
												<img  align="right" vspace="5" hspace="8" border="1" alt="" width="150" height="150">
													<xsl:attribute name="src">
														<xsl:value-of select="." />
													</xsl:attribute>
													<xsl:attribute name="alt">
														<xsl:value-of select="../title" />
													</xsl:attribute>
												</img>
											</xsl:for-each>
										</xsl:for-each>
									</a>
                  <a href="article.ashx?articleId={$id}">
                    <xsl:if test="title/text()">
                      <span name="decodeable">
                        <b>
                          <font size="4">
                            <xsl:value-of select="title/text()" disable-output-escaping="yes"/>
                          </font>
                        </b>
                        <br/>
                      </span>
                    
										<!--<b>
											<font size="5">
												<xsl:apply-templates/>
											</font>
										</b>-->
									</xsl:if>
                  </a>
									<br />
									<span name="decodeable">
										<xsl:value-of select="introduction/text()" disable-output-escaping="yes"/>&#160;<a href="article.ashx?articleId={$id}">More</a>
									</span>
								</td>
							</tr>
							<tr>
								<td colspan="2">
									<img src="http://www.culinary.net/images/main/line.gif" width="430" height="1" />
									<br />
								</td>
							</tr>
						</xsl:for-each>
						<tr>
							<td colspan="2">
								<xsl:for-each select="image">
									<xsl:if test="string-length(@src)>0">
										<xsl:for-each select="@src">
											<img  align="right" vspace="2" hspace="2" 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>
                <a href="#">
                  <b>
                    <font size="4">
                      <xsl:for-each select="categoryName">
                        <xsl:apply-templates/>
                      </xsl:for-each> Resources
                    </font>
                  </b>
                </a>
								<br/>
								<a href="categorylinks.ashx?category={$categoryCode}">Helpful Links</a>

							</td>
						</tr>
						<tr>
							<td colspan="2">
								<img src="http://www.culinary.net/images/main/line.gif" width="430" height="1" />
								<br />
							</td>
						</tr>
					</table>
					

				</body>
			</xsl:for-each>
		</html>
	</xsl:template>
</xsl:stylesheet>

