<?xml version="1.0" encoding="ISO-8859-1" ?> 
<?xml-stylesheet type="text/css" href="feefo.css"?>
 <html xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>FeeFo Feedback</title>
	<link rel="stylesheet" type="text/css" href="feefo.css" />
</head>
 <body>
     <div id="page">
     <!-- tr class=row -->
           <div class="comments">


               <xsl:for-each select="FEEDBACKLIST/SUMMARY">
               <span class="hreview-aggregate">
                   <abbr class="count"><xsl:attribute name="title"><xsl:value-of select="COUNT" disable-output-escaping="yes" /></xsl:attribute></abbr>
                       <xsl:if test="string(PRICERANGE)">
                           <abbr class="pricerange">
                           <xsl:attribute name="title"><xsl:value-of select="PRICERANGE" disable-output-escaping="yes" /></xsl:attribute>
                           </abbr>
                       </xsl:if>
                   <span class="item">
                       <abbr class="fn"><xsl:attribute name="title"><xsl:value-of select="TITLE" disable-output-escaping="yes" /></xsl:attribute></abbr>
                   </span>
                   <span class="rating">
                       <abbr class="best"><xsl:attribute name="title"><xsl:value-of select="BEST" disable-output-escaping="yes" /></xsl:attribute></abbr>
                       <abbr class="worst"><xsl:attribute name="title"><xsl:value-of select="WORST" disable-output-escaping="yes" /></xsl:attribute></abbr>
                       <abbr class="average"><xsl:attribute name="title"><xsl:value-of select="AVERAGE" disable-output-escaping="yes" /></xsl:attribute></abbr>
                   </span>
               </span>
               </xsl:for-each>
               <table class="comm-table">
                 <xsl:if test="(FEEDBACKLIST/FEEDBACK)">
                   <tr>
                       <th width="15%">Date</th>
                       <th width="20%">Product</th>

                       <th>Score</th>
                       <th width="35%">Customer Comment</th>
                       <th width="20%">Supplier Response</th>
                   </tr>
                 </xsl:if>
                   <xsl:for-each select="FEEDBACKLIST/FEEDBACK">
                       <!--<xsl:choose>
                          <xsl:when test="HREVIEWRATING">
                              <tr class="hreview">
                          </xsl:when>
                          <xsl:otherwise>
                              <tr>
                          </xsl:otherwise>
                       </xsl:choose>-->
                       <tr>
                               <xsl:if test="string(HREVIEWRATING)">
                                    <xsl:attribute name="class">hreview</xsl:attribute>
                                    <span style="display: none;" class="version">0.3</span>
                                </xsl:if>
                       <td><abbr class="dtreviewed"><xsl:attribute name="title"><xsl:value-of select="HREVIEWDATE" disable-output-escaping="yes" /></xsl:attribute><xsl:value-of select="DATE" disable-output-escaping="yes" /></abbr></td>
                       <td>
                           <h3 class="item">
                            <xsl:choose>
                              <xsl:when test="string(LINK)">
                                  <a class="fn url">
                                   <xsl:attribute name="href"><xsl:value-of select="LINK" disable-output-escaping="yes" /></xsl:attribute><xsl:value-of select="DESCRIPTION" disable-output-escaping="yes" />
                                   </a>
                              </xsl:when>
                              <xsl:otherwise>
                              <span class="fn"><xsl:value-of select="DESCRIPTION" disable-output-escaping="yes" /></span>
                              </xsl:otherwise>
                            </xsl:choose>
                            </h3>

                           <xsl:if test="ADDITIONALITEMS">
                               <span class="alsobought"><ul>
                                   <li>Customer also bought: </li>
                                   <xsl:for-each select="ADDITIONALITEMS/ITEM">
                                       <li><xsl:value-of select="." disable-output-escaping="yes" /></li>
                                   </xsl:for-each>
                               </ul></span>
                            </xsl:if>
                       </td>
                       <td>
                           <xsl:if test="string(SERVICERATING)">
                               <div class="comm-rating">
                                   <em>Service</em>
                                    <xsl:if test="SERVICERATING = '++'">
                                        <img src="plus.gif" alt="#" />
                                        <img src="plus.gif" alt="#" />
                                      </xsl:if>
                                    <xsl:if test="SERVICERATING = '+'">
                                        <img src="plus.gif" alt="#" />
                                      </xsl:if>
                                    <xsl:if test="SERVICERATING = '-'">
                                        <img src="minus.gif" alt="#" />
                                      </xsl:if>
                                    <xsl:if test="SERVICERATING = '--'">
                                        <img src="minus.gif" alt="#" />
                                        <img src="minus.gif" alt="#" />
                                      </xsl:if>
                               </div>
                            </xsl:if>
                           <xsl:if test="string(PRODUCTRATING)">
                               <abbr class="rating">
                               <xsl:attribute name="title"><xsl:value-of select="HREVIEWRATING" disable-output-escaping="yes" /></xsl:attribute>
                               <div class="comm-rating">
                                   <em>Product</em>
                                    <xsl:if test="PRODUCTRATING = '++'">
                                        <img src="plus.gif" alt="#" />
                                        <img src="plus.gif" alt="#" />
                                      </xsl:if>
                                    <xsl:if test="PRODUCTRATING = '+'">
                                        <img src="plus.gif" alt="#" />
                                      </xsl:if>
                                    <xsl:if test="PRODUCTRATING = '-'">
                                        <img src="minus.gif" alt="#" />
                                      </xsl:if>
                                    <xsl:if test="PRODUCTRATING = '--'">
                                        <img src="minus.gif" alt="#" />
                                        <img src="minus.gif" alt="#" />
                                      </xsl:if>
                               </div>
                               </abbr>
                            </xsl:if>
                       </td>
                       <td>
                           <p class="description"><xsl:value-of select="SHORTCUSTOMERCOMMENT" disable-output-escaping="yes" /></p>
                           <a target="new"><xsl:attribute name="href"><xsl:value-of select="READMOREURL" disable-output-escaping="yes" /></xsl:attribute>Read More&gt; </a>
                       </td>
                       <td>
                           <xsl:choose>
                             <xsl:when test="string(SHORTVENDORCOMMENT)">
                                 <xsl:value-of select="SHORTVENDORCOMMENT" disable-output-escaping="yes" />
                              </xsl:when>

                           </xsl:choose>
                       </td>
                   </tr>
                   </xsl:for-each>
               </table>
           </div>
       </div>
</body>
</html>

