<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#160;">]>

<!--
  $Id: news-latest.fr.xsl 2134 2011-05-24 08:40:01Z loic $

  The goal of this stylesheet is to output only the 10 first news
  items 
-->

<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:output method="xml" encoding="ISO-8859-1" indent="yes" />

  <xsl:template match="/rss/channel">
   <p>
    <xsl:for-each select="item">
     <xsl:if test="not(position() > 10)">

      <p>

      <table border="0" cellpadding="0" cellspacing="0">
	<tr class="TopArticle" valign="top">
	  <td class="TopArticle">
	    <a href="{link}"><xsl:value-of select="title" /></a>
	    <xsl:value-of select="substring-before(description, '.')"/>
	  </td>
	</tr>
      </table>

      <table border="0" cellspacing="0" cellpadding="1" bgcolor="#736199">
	<tr>
	  <td valign="bottom">
	    <table border="0" bgcolor="#cacaca" cellspacing="0" cellpadding="3">
	      <tr>
		<td class="newstext">
		  <xsl:value-of disable-output-escaping="yes" select="substring-after(description, '.')" />
                  <a href="{link}">Lire la suite</a>
		</td>
	      </tr>
	    </table>
	  </td>
	</tr>
      </table>
      </p>

     </xsl:if>
    </xsl:for-each>
   </p>
  </xsl:template>

  <xsl:template match="@*|node()" priority="-1">
    <xsl:apply-templates select="@*|node()"/>
  </xsl:template>

  <!--
  Local Variables: ***
  mode: xml ***
  End: ***
  -->
</xsl:stylesheet>

