<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/02/xpath-functions" xmlns:xdt="http://www.w3.org/2005/02/xpath-datatypes">
<xsl:template match="/">
<html>
	<head>
		<title>Wedding Chocolate</title>
	</head>
	<body>
	
	<h1>The World of Candy</h1>
	<p>Thanks to the RSS feed from <i><xsl:value-of select="/portal/title"></xsl:value-of></i> at <a href="http://favors.weddings.designerz.com/"><xsl:value-of select="/portal/link"></xsl:value-of></a>.</p>
	
	<xsl:for-each select="/portal/sites/site">
	<xsl:sort select="title"/>
		<xsl:if test="contains(sitedescription,'wedding')">
			<font color="orange"><i>Wedding Candy:</i> </font> 
			<span style="margin-left: 5px"><xsl:value-of select="title"></xsl:value-of></span><br></br>
		</xsl:if>
	</xsl:for-each>
	<br></br><br></br>
	<xsl:for-each select="/portal/sites/site">
	<xsl:sort select="title"/>
		<xsl:if test="contains(sitedescription,'chocolate')">
			<font color="brown"><i>Chocolate: </i></font> 
			<span style="margin-left: 5px"><xsl:value-of select="title"></xsl:value-of></span><br></br>
		</xsl:if>
	</xsl:for-each>	
	<p>But let these candiers and chocolatiers deliver the cake!<br></br><br></br>
	<a href="cakeB.jpg"><img src="cakeS.jpg" alt="" align="middle"></img></a><br></br>
	<font size="1">source: www.creativecakes.com</font>
	</p>
	</body>
</html>
</xsl:template>
</xsl:stylesheet>

