[ XML ][ XSL ] tri par date
bonjour,
je voudrais récupérer les noeuds dont la date est inférieur à une date_fin
voici mon code;
mais ca fonctionne pas au niveau du test...
une idée?
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| <xsl:for-each select="INFORMATION">
<!-- <xsl:sort select="DATE" order="descending" />-->
<xsl:if test="DATE_LIMITE<='12/08/04'">
<table width="335" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><font color="000080"><u><xsl:value-of select="TITRE" /></u></font></td>
<td></td>
<td align="right"><font color="000080"><i><xsl:value-of select="DATE" /></i></font></td>
</tr>
<tr colspan="3">
<td><font color="000080"><xsl:apply-templates select="PARAGRAPHE" /></font></td>
</tr>
<tr>
<td align="left"><font color="000080"><i><xsl:value-of select="AUTEUR" /></i></font></td>
<td></td>
<td align="right"><font color="000080"><i><xsl:value-of select="DATE_PREVISION" /></i></font></td>
</tr>
</table>
</xsl:if>
<br/>
</xsl:for-each> |