<?xml version="1.0"?>

<!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#160;">
<!ENTITY images "Images/">
]>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"                 xmlns:sse="urn:www-sharplabs-com:sse:search"                xmlns:sds="urn:www-sharplabs-com:sds:search"                version="1.0">

  <xsl:output method="html" doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN" cdata-section-elements="sse:Abstract" />
  
  <xsl:template match="sse:Results">
    <table width="100%" border="0" cellspacing="0" cellpadding="4" >
    <xsl:apply-templates/>
    </table>
  </xsl:template>

  <xsl:template match="sse:Result">
    <xsl:if test="sse:Active = 'true'">
      <tr><xsl:call-template name="ResultDisplay"></xsl:call-template></tr>
	</xsl:if>
    <xsl:if test="sse:Active != 'true'">
	     <xsl:if test="contains(sse:FileName, '>') = false">
		      <tr disabled="true"><xsl:call-template name="ResultDisplay"></xsl:call-template></tr>
	      </xsl:if>
	</xsl:if>
	 <tr height="1" bgcolor="#b5d7ff">
	 <td></td><td></td><td></td><td></td><td></td>
	 </tr>
  </xsl:template>

  <xsl:template name="ResultDisplay">
    <td class="Match Score,Hit Count">
	  <span class="Match Score"><b><loc id="IDS_DETAIL_SCORE">Resultado:</loc></b>&#160;<xsl:value-of select="sse:Score"/><br/></span>
      <span class="Hit Count"><b><loc id="IDS_DETAIL_HITS">Aciertos:</loc></b>&#160;<xsl:value-of select="sse:HitCount"/></span>
	</td>
    <td class="Document Name">
       <xsl:apply-templates select="sse:FileName"/>
    </td>
    <td class="Document Name,Location,Document Type,Abstract">
	  <span class="Document Name"><b><loc id="IDS_DETAIL_DOCUMENT">Documento:</loc></b>&#160;<span id="document_name"><xsl:value-of select="sse:DisplayName"/></span><br/></span>
      <span class="Location"><b><loc id="IDS_DETAIL_LOCATION">Ubicaci&#xf3;n:</loc></b>&#160;<a id="document_path" href=""><xsl:value-of select="sse:FileName"/></a><br/></span>
      <span class="Document Type"><b><loc id="IDS_DETAIL_TYPE">Tipo:</loc></b>&#160;<xsl:value-of select="sse:Type"/><br/></span>
      <span class="Abstract"><b> <loc id="IDS_DETAIL_ABSTRUCT">Resumen:</loc></b>&#160;<xsl:value-of select="sse:Title"/><br/></span>
    </td>
    <td class="Document Size"><b><loc id="IDS_DETAIL_SIZE">Tama&#xf1;o:</loc></b><br/>
      <xsl:value-of select="sse:Size"/>&#160;<loc id="IDS_DETAIL_KB">KB</loc></td>
    <td class="Modification Date"> 
       <p><b><loc id="IDS_DETAIL_MODIFIED">Modificado:</loc></b><br/><xsl:apply-templates select="sse:Date"/></p>
    </td>
  </xsl:template>
    
  <xsl:template match="sse:Date">
    <xsl:value-of select="../sse:Date"/><br/><xsl:value-of select="../sse:Time"/>
  </xsl:template>
  
  <xsl:template match="sse:FileName">
    <sds:document_view id="document_view" unique_id="{../sse:DocId}" type="thumbnail" path="{../sse:FileName}" active="{../sse:Active}" width="120" height="100" />
  </xsl:template>
      
</xsl:stylesheet>
