1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes" />
<xsl:template match="/">
<xsl:for-each select="/rss/channel/item">
<!-- TRI par date DESC -->
<xsl:sort select="pubDate" data-type="text" order="descending"/>
<div>
<em>Pub Date</em> : <xsl:value-of select="pubDate"/>
<em>Titre</em> : <xsl:value-of select="title"/> --
<em>Description</em> : <xsl:value-of select="description"/>
</div>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet> |