<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<xsl:template match="/">
    <xsl:apply-templates/>
</xsl:template>


<xsl:template match="RECIPE">
    <HTML>
    <HEAD>    
        <STYLE>
            BODY    {margin-left: 4em;
                    margin-right: 4em;
                    }
        </STYLE>
    </HEAD>
    <BODY BGCOLOR="#FFFFCC">
        <xsl:apply-templates/>
    </BODY>
    </HTML>
</xsl:template>

<xsl:template match="TITLE">
    <H1><CENTER><FONT COLOR="red">
        <xsl:value-of/>
    </FONT></CENTER></H1>
</xsl:template>

<xsl:template match="INFO">
    <P><BR/><xsl:apply-templates/></P>
</xsl:template>

<xsl:template match="COUNTRY">
    <B>Country:</B> <xsl:value-of/><BR/>
</xsl:template>

<xsl:template match="YIELD">
    <B>Yield:</B> <xsl:value-of/><BR/>
</xsl:template>

<xsl:template match="CALORIES">
    <B>Calories:</B> <xsl:value-of/><BR/>
</xsl:template>


<xsl:template match="INGREDIENTLIST">
    <HR/>
    <H2><FONT COLOR="red">Ingredients:</FONT></H2>
    <UL><xsl:apply-templates select="INGREDIENT" order-by="+PRODUCT/@AISLE; +PRODUCT"/></UL>
    <HR/>
</xsl:template>

<xsl:template match="INGREDIENT">
    <LI><xsl:apply-templates/></LI>
</xsl:template>

<xsl:template match="QUANTITY|PRODUCT">
    <xsl:value-of/>
</xsl:template>

<xsl:template match="STEPLIST">
    <H2><FONT COLOR="red">Step-by-step:</FONT></H2>
    <OL><xsl:apply-templates/></OL>
</xsl:template>

<xsl:template match="STEP">
    <LI><xsl:value-of/></LI>
</xsl:template>

</xsl:stylesheet>
