<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
  xmlns:atom="http://purl.org/atom/ns#"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:dc="http://purl.org/dc/elements/1.1/">
  	<xsl:output method="html"/>
	
	<xsl:template match="/">

	<xsl:apply-templates select="/atom:feed"/>
	</xsl:template>
	
	<xsl:template match="/atom:feed">		
				<xsl:variable name="numRegistros" select="4"/>
				<xsl:apply-templates select="atom:entry[position() &lt;= $numRegistros]"/>		
	</xsl:template>
	
	
	<xsl:template match="atom:entry">
	<xsl:if test="position() mod 2 = 0">
		  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><table width="344" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="80"><img src="{atom:link[2]/@href}" width="80" height="80"/></td>
                <td width="15"> </td>
                <td valign="top"><table width="100%" height="100" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="10"><img src="img/inv.gif" width="1" height="10"/></td>
                    </tr>
                    <tr>
                      <td height="7" class="titulares_data"></td>
                    </tr>
                    <tr>
                      <td class="td_titulares_tit"><a href="{atom:link/@href}" class="titulares_hola_tit" target="_blank">

				<xsl:value-of select="atom:title"/>
					 </a></td>
                    </tr>
                    <tr>
                      <td height="9"><a href="http://www.hola.com"  target="_blank" class="titulares_link_url">www.hola.com</a></td>
                    </tr>
                    <tr>
                      <td height="10"><img src="img/inv.gif" width="1" height="10"/></td>
                    </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table>
		</xsl:if>
		<xsl:if test="position() mod 2 = 1">
		  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f7f7f9">
          <tr>
            <td><table width="344" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="80"><img src="{atom:link[2]/@href}" width="80" height="80"/></td>
                <td width="15"> </td>
                <td valign="top"><table width="100%" height="100" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="10"><img src="img/inv.gif" width="1" height="10"/></td>
                    </tr>
                    <tr>
                      <td height="7" class="titulares_data"></td>
                    </tr>
                    <tr>
                      <td class="td_titulares_tit"><a href="{atom:link/@href}" class="titulares_hola_tit" target="_blank">

				<xsl:value-of select="atom:title"/>
					 </a></td>
                    </tr>
                    <tr>
                      <td height="9"><a href="http://www.hola.com"  target="_blank" class="titulares_link_url">www.hola.com</a></td>
                    </tr>
                    <tr>
                      <td height="10"><img src="img/inv.gif" width="1" height="10"/></td>
                    </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table>
		</xsl:if>
	</xsl:template>
	
	

</xsl:stylesheet>