Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/02/2005, 13:34
Avatar de mrgubu
mrgubu
 
Fecha de Ingreso: febrero-2002
Ubicación: Granada
Mensajes: 431
Antigüedad: 23 años
Puntos: 2
Por si fuera el xsl, aquí lo dejo:

Código:
<?xml version="1.0" encoding="ISO-8859-1" ?>

<!--   Paul Millar - GrabNews
*    Copyright (C) 2001 - 2004 Paul Millar
*
*   This program is free software; you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation; either version 2 of the License, or
*   (at your option) any later version.
*
*   This program is distributed in the hope that it will be useful,
*   but WITHOUT ANY WARRANTY; without even the implied warranty of
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*   GNU General Public License for more details.
*
*   You should have received a copy of the GNU General Public License
*   along with this program; if not, write to the Free Software
*   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*
*   [email protected]
-->

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="ISO-8859-1" omit-xml-declaration="yes" indent="yes"/>

<xsl:template match="*">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr>
    <td valign="top">
	  <a style="font-size:13px;font-weight:bold;">
		<xsl:attribute name="href">
		  <xsl:for-each select="*[local-name()='link'] | *[local-name()='channel']/*[local-name()='link']">
		    <xsl:choose>
		      <xsl:when test="@rel='alternate'">
		        <xsl:value-of disable-output-escaping="yes" select="./@href"/>
		      </xsl:when>
		      <xsl:otherwise>
		        <xsl:value-of disable-output-escaping="yes" select="."/>
		      </xsl:otherwise>
		    </xsl:choose>
		  </xsl:for-each>
		</xsl:attribute>
		<xsl:value-of disable-output-escaping="yes" select="*[local-name()='channel']/*[local-name()='title'] | *[local-name()='title']"/>
	  </a>
	  <div class="separador"></div>
	</td>
  </tr>
  <tr>
    <td valign="top"><div style="line-height:15px;">
	
	  <xsl:for-each select="//*[local-name()='item'] | //*[local-name()='entry']">
	  <xsl:if test="position() &lt; 10">
	  <div>
	  <img src="imagenes/item_bullit.gif" width="9" height="9" border="0" alt="" /> <a target="blank">
	  <xsl:attribute name="href">
	  <xsl:for-each select="*[local-name()='link']">
	  <xsl:choose>
	  <xsl:when test="@rel='alternate'">
	  <xsl:value-of disable-output-escaping="yes" select="./@href"/>
	  </xsl:when>
	  <xsl:otherwise>
	  <xsl:value-of select="."/>
	  </xsl:otherwise>
	  </xsl:choose>
	  </xsl:for-each>
	  </xsl:attribute>
	  <xsl:value-of disable-output-escaping="yes" select="*[local-name()='title']"/>
	  </a>
	  </div>
	  </xsl:if>
	  </xsl:for-each>
	  </div>
	
	<div align="right"><a href="http://www.edazzle.net/#grabnews" target="blank" title="powered by grabnews">?</a></div>
	</td>
  </tr>
</table>
</xsl:template>

<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>

</xsl:stylesheet>