<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" omit-xml-declaration="yes"/>

<xsl:template match="objeto">
<xsl:variable name="numRegistros" select="3"/>

<xsl:for-each select="atributos/atributo[@tipo=87][@posicion=1]">					
				<xsl:sort select="." order="ascending"/>						    
				<xsl:variable name="orden" select="@orden"/>	
	
	<xsl:if test="@orden &lt;= $numRegistros">			
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="145" rowspan="3"><a href="anime.jsp?xml={../atributo[@tipo=133][@orden=$orden][@posicion=1]/@enlace}&#038;serie={../atributo[@tipo=153][@orden=$orden][@posicion=1]}&#038;foro={../atributo[@tipo=154][@orden=$orden][@posicion=1]}"><img src="{../atributo[@tipo=133][@orden=$orden][@posicion=1]}" width="135" height="70" border="0"/></a></td>
          <td height="1" valign="top" background="img/pint_hoz.gif" ><img src="img/inv.gif" width="1" height="1"/></td>
        </tr>
        <tr>
          <td height="69" valign="middle"><a href="anime.jsp?xml={../atributo[@tipo=133][@orden=$orden][@posicion=1]/@enlace}&#038;serie={../atributo[@tipo=153][@orden=$orden][@posicion=1]}&#038;foro={../atributo[@tipo=154][@orden=$orden][@posicion=1]}" class="linkCajaSeries"><xsl:value-of select="../atributo[@tipo=87][@orden=$orden][@posicion=1]" disable-output-escaping="yes"/></a><br/>
          <br/>
          <span class="proxCajaSeries"> </span><br/>
          <span class="cuandoCajaSeries"> </span></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="img/inv.gif" width="1" height="8"/></td>
        </tr>
      </table>
	 </xsl:if> 
	  		
</xsl:for-each>				

</xsl:template>
</xsl:stylesheet>



