<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" exclude-result-prefixes="xml">
   <xsl:output omit-xml-declaration="yes" indent="no"/>
   <xsl:strip-space elements="*"/>
   <xsl:param name="limit" select="10" />
   <xsl:param name="class" />

   <xsl:template match="/profile">
      
   <div class="profile">
      <table>   
      <tr>
      <td>
         <a>
         <xsl:attribute name="href"> <xsl:value-of select="/profile/url"/></xsl:attribute>
         <xsl:attribute name="target">new</xsl:attribute>
         <img>
         <xsl:attribute name="src"><xsl:value-of select="/profile/avatar"/></xsl:attribute>
         <xsl:attribute name="border">0</xsl:attribute>
         </img>
         </a>
      </td>
      </tr>
      <tr>
      <td>   
      <a>
         <xsl:attribute name="href"><xsl:value-of select="/profile/url"/></xsl:attribute>
         <xsl:attribute name="target">new</xsl:attribute>
         
         <p>
         <strong class="fn"><xsl:value-of select="@username"/></strong>
         </p>
      </a>      
      </td>
      </tr>
      <tr>
         <td>
         <span class="userIcon">User</span>
         <br/>
         <xsl:if test="string('m')=/profile/gender">Male</xsl:if>
         <xsl:if test="string('f')=/profile/gender">Female</xsl:if>
         , <xsl:value-of select="/profile/age"/>
         <br/>
         <span><xsl:value-of select="/profile/country"/></span>
         </td>
      </tr>
      <tr>
      <td>
      Playcount : <xsl:value-of select="/profile/playcount"/>
      </td> 
      </tr>      
      </table>
   </div>
   
   
   </xsl:template>
</xsl:stylesheet>