<xsl:stylesheet 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" encoding="ISO_8859-1" />
<xsl:param name="pie"></xsl:param>

<xsl:template match="/">

<html>
<head>

<xsl:if test='contains($pie, "pumpkin")'>
<title>Preparing a Pumpkin Pie</title>
<link rel="StyleSheet" type="text/css" href="rlo.css" />
</xsl:if>

<xsl:if test='contains($pie, "pecan")'>
<title>Preparing a Pecan Pie</title>
<link rel="StyleSheet" type="text/css" href="rlo.css" />
</xsl:if>

</head>

<body>

<table width="80%" border="0" align="center" valign="top" cellpadding="10" 
cellspacing="0" 
bgcolor="#FFFFFF">

<tr>
<td  colspan="2" nowrap="nowrap" class="title" align="left" valign="top">

<xsl:if test='contains($pie, "pumpkin")'>
<img src="pumpkin.gif" />
</xsl:if>

<xsl:if test='contains($pie, "pecan")'>
<img src="pecan.gif" />
</xsl:if>

</td>
</tr>

<tr>
<td colspan="2" nowrap="nowrap" class="subtitle" valign="top"
align="left">

<xsl:if test='contains($pie, "pumpkin")'>
Bake a Yummy Pumpkin Pie for the Holiday!
</xsl:if>
<xsl:if test='contains($pie, "pecan")'>
Bake a Yummy Pecan Pie for the Holiday!
</xsl:if>

</td>
</tr>

<tr>
<td width="15%" rowspan="2" valign="top" class="menu">

LINKS:<br/><br/>

<a href="recipe.html">HOME: Cooking With XML and RLOs</a><br/><br/>

<a href="flowchart.html">Project Flow Chart</a><br/><br/>

<xsl:if test='contains($pie, "pumpkin")'>
<a href="pecan.php">Brown Sugar Pecan Pie Recipe</a>   
</xsl:if>
<xsl:if test='contains($pie, "pecan")'>
<a href="pumpkin.php">Sour Cream Pumpkin Pie Recipe</a>   
</xsl:if><br/><br/>

<a href="mailto:july61@earthlink.net">e-Mail Lisa Bradshaw</a><br/><br/>
<font color="#ffffff"><b><i>
Updated Dec 6, 2003<br/><br/>
This site best viewed with Netscape 7.x<br/><br/>
</i></b></font>
</td>

<td width="85%" colspan="1" valign="top" class="header">

<div><xsl:if test='contains($pie, "pumpkin")'>
<img src="pumpkinpie.jpg" />
</xsl:if>
<xsl:if test='contains($pie, "pecan")'>
<img src="pecanpie.jpg" />
</xsl:if></div>

</td>
</tr>

<tr>
 <td colspan="1" valign="top" bgcolor="FFFFFF" class="subheader">
<xsl:apply-templates select='pierecipe/about/bodytext' />

</td>
</tr>
</table>

</body>
</html>

</xsl:template>

<xsl:template match="link"><b>
<a href="{@url}"><xsl:apply-templates /></a></b>
</xsl:template>

<xsl:template match="p">
<p class="bodytext"><xsl:apply-templates />
</p>
</xsl:template>

<xsl:template match="heading">
<p class="header"><xsl:apply-templates /></p>
</xsl:template>

<xsl:template match="subhead">
<p class="subheader"><xsl:apply-templates />
</p>
</xsl:template>

<xsl:template match="list">
<div class="list"><xsl:apply-templates /><br />
</div>
</xsl:template>

<xsl:template match="table">
<div class="table"><xsl:apply-templates /><br />
</div>
</xsl:template>

<xsl:template match="tableheader">
<div class="tableheader"><xsl:apply-templates /><br />
</div>
</xsl:template>

<xsl:template match="li">
<LI style="font-family:Verdana, Geneva, Helvetica"><xsl:apply-templates />
</LI>
</xsl:template>

<xsl:template match="ul">
<UL style="font-family:Verdana, Geneva, Helvetica"><xsl:apply-templates />
</UL>
</xsl:template>

</xsl:stylesheet>
