FrameBeurk File
Fmbk/public/ZenpaRss.xsl.php
<?php //FrameBeurk V0.65 Copyright ToolOscope 2016. Licence CeCILL-C.
// Patron pour les transactions RSS
header('Content-Type: application/xml; charset=utf-8');
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + $CONFIG['Param']['DureeCacheBrowser']) . ' GMT'); //durée de vie du fichier en cache paramétrée dans bootstrap.php
header('Pragma: cache');
header('Cache-Control: max-age=' . $CONFIG['Param']['DureeCacheBrowser']);
header('User-Cache-Control: max-age=' . $CONFIG['Param']['DureeCacheBrowser']);
echo '<?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"/>
<xsl:template match="/rss">
<html>
<head>
<xsl:element name="link">
<xsl:attribute name="href">
<xsl:value-of select="channel/@data-css" />
</xsl:attribute>
<xsl:attribute name="rel">stylesheet</xsl:attribute>
<xsl:attribute name="type">text/css</xsl:attribute>
</xsl:element>
</head>
<body>
<h2 class="h_recherche">
<xsl:value-of select="channel/title" />
</h2>
<div class="listeMajs">
<xsl:element name="a">
<xsl:attribute name="class">maj</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="channel/link" />
</xsl:attribute>
<xsl:value-of select="channel/description" />
</xsl:element>
</div>
<div style="clear:both;"></div>
<div>
<xsl:for-each select="channel/item">
<div class="{concat(@data-entite, '_l', @data-sufx)}">
<div class="{concat(@data-entite, '_c1')}">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="link"/>
</xsl:attribute>
<xsl:value-of select="title"/>
</xsl:element>
</div>
<div class="{concat(@data-entite, '_c2')}">
<xsl:value-of select="title/@data-info" />
</div>
<div class="{concat(@data-entite, '_c3')}">
<xsl:value-of select="author" />, <xsl:value-of select="pubDate" />
</div>
</div>
<div class="{concat(@data-entite, '_l', @data-sufx)}">
<div class="{concat(@data-entite, '_c6')}">
<xsl:value-of select="description" disable-output-escaping="yes" />
</div>
</div>
</xsl:for-each>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
© 2010-2015 by ToolOscope SASU. © 2016-2018 by Arnaud De Rette. All rights reserved