<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html><head><title>Property Listing</title>
<link rel="STYLESHEET" type="text/css" href="../css/scriptkitty.css" /></head>
<body>
<table border="0" bgcolor="white">
<tr class="orangeYellow" align="center"><td>
<h1 class="orangeYellow">Property Listing</h1>
</td></tr>
<tr><td>
<xsl:for-each select="RESIDENTIAL-LISTING/GENERAL/IMAGE">
<xsl:apply-templates select="@SRC"/>
<xsl:apply-templates select="@WIDTH"/>
<xsl:apply-templates select="@HEIGHT"/>
</xsl:for-each>
</td></tr>
<tr><td>
<xsl:for-each select="RESIDENTIAL-LISTING/GENERAL">
<xsl:apply-templates select="TYPE"/>
<xsl:apply-templates select="PRICE"/>
</xsl:for-each>
<xsl:for-each select="RESIDENTIAL-LISTING/GENERAL/LOCATION">
<xsl:apply-templates select="ADDRESS"/>
<xsl:apply-templates select="CITY"/>
<xsl:apply-templates select="@STATE"/>
<xsl:apply-templates select="@COUNTY"/>
</xsl:for-each>
<xsl:for-each select="RESIDENTIAL-LISTING/GENERAL">
<xsl:apply-templates select="LAND-AREA"/>
</xsl:for-each>
<xsl:for-each select="RESIDENTIAL-LISTING/FEATURES">
<xsl:apply-templates select="UTILITIES"/>
<xsl:apply-templates select="EXTRAS"/>
<xsl:apply-templates select="CONSTRUCTION"/>
</xsl:for-each>
<xsl:for-each select="RESIDENTIAL-LISTING/GENERAL/STRUCTURE">
<xsl:apply-templates select="NUM-BATHS"/>
<xsl:apply-templates select="NUM-BEDS"/>
</xsl:for-each>
<xsl:for-each select="RESIDENTIAL-LISTING">
<xsl:apply-templates select="REMARKS"/>
</xsl:for-each>
<xsl:for-each select="RESIDENTIAL-LISTING/FINANCIAL">
<xsl:apply-templates select="DIRECTIONS"/>
</xsl:for-each>
<xsl:for-each select="RESIDENTIAL-LISTING/CONTACTS/AGENT">
<xsl:apply-templates select="NAME"/>
<xsl:apply-templates select="PHONE"/>
</xsl:for-each>
<xsl:for-each select="RESIDENTIAL-LISTING/CONTACTS/AGENT/WEB">
<xsl:apply-templates select="E-MAIL"/>
<xsl:apply-templates select="SITE"/>
</xsl:for-each>
</td></tr>
</table>
</body>
</html>
</xsl:template>

<xsl:template match="@SRC">
<src />
<xsl:attribute name="&lt;img src">
<xsl:apply-templates/>
	<xsl:value-of/>
</xsl:attribute>
</xsl:template>

<xsl:template match="TYPE">
	<b>Type:</b>
<xsl:value-of/>
</xsl:template>

<xsl:template match="PRICE">
	<b>Price: </b>$
	<xsl:value-of/><br />
</xsl:template>

<xsl:template match="ADDRESS">
	<b>Address: </b> 
	<xsl:value-of/>,
</xsl:template>

<xsl:template match="CITY">
	<xsl:value-of/>
</xsl:template>

<xsl:template match="@STATE">
	<xsl:value-of/>.<br />
</xsl:template>

<xsl:template match="@COUNTY">
	<b>County: </b>
	<xsl:value-of/><br /><br />
</xsl:template>

<xsl:template match="LAND-AREA">
	<b>Acreage: </b>
	<xsl:value-of/><br />
</xsl:template>

<xsl:template match="UTILITIES">
	<b>Utilities: </b>
	<xsl:value-of/><br />
</xsl:template>

<xsl:template match="EXTRAS">
	<b>Extras: </b>
	<xsl:value-of/><br />
</xsl:template>

<xsl:template match="CONSTRUCTION">
	<b>Construction: </b>
	<xsl:value-of/><br />
</xsl:template>

<xsl:template match="NUM-BATHS">
	<b>Number of Baths: </b>
	<xsl:value-of/><br />
</xsl:template>

<xsl:template match="NUM-BEDS">
	<b>Number of Beds: </b>
	<xsl:value-of/><br />
</xsl:template>

<xsl:template match="REMARKS">
	<b>Remarks: </b>
	<xsl:value-of/><br /><br />
</xsl:template>

<xsl:template match="DIRECTIONS">
	<b>Directions: </b>
	<xsl:value-of/><br />
</xsl:template>

<xsl:template match="NAME">
	<b>Agents Name: </b>
	<span class="green"><xsl:value-of/></span><br />
</xsl:template>

<xsl:template match="PHONE">
	<b>For more information call: </b>
	<span class="green"><xsl:value-of/></span><br />
</xsl:template>

<xsl:template match="E-MAIL">
	<b>Agents e-mail: </b>
	<span class="green"><xsl:value-of/></span><br />
</xsl:template>

<xsl:template match="SITE">
	<b>Web Site: </b>
	<span class="blue"><xsl:value-of/></span><br />
</xsl:template>


</xsl:stylesheet>