<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:output method="html"/>

  <xsl:param name="pressReleaseToDisplay"/>
  <xsl:param name="Language"/>

  <xsl:variable name="prFooterStr">
    <xsl:choose><xsl:when test="$Language = 'FRA'">Détails</xsl:when><xsl:otherwise>More</xsl:otherwise></xsl:choose>  
  </xsl:variable>
  
  <xsl:template match="rss/channel">
    <xsl:apply-templates select="item[position()&lt;$pressReleaseToDisplay + 1]">
    </xsl:apply-templates>    
  </xsl:template>
            
  <xsl:template match="item">

    <p><xsl:attribute name="class">corpo-texte</xsl:attribute><xsl:value-of select="displayDate"/><br/>
    <b><xsl:value-of select="title"/></b>
    <br/>
    <span><xsl:attribute name="class">corpo-texte-petit</xsl:attribute><xsl:value-of select="description" disable-output-escaping="yes"/>&#160;&#160;[&#160;<a><xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute><xsl:value-of select="$prFooterStr"/></a>&#160;]</span></p>
  </xsl:template>
</xsl:stylesheet>