Subversion Repositories eFlore/Applications.del

Rev

Rev 1503 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";?>

<!DOCTYPE rdf:RDF [
<!ENTITY % HTMLlat1 PUBLIC
 "-//W3C//ENTITIES Latin 1 for XHTML//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
%HTMLlat1;
]>

<rdf:RDF 
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:dc="http://purl.org/dc/elements/1.1/" 
        xmlns="http://purl.org/rss/1.0/">

        <channel rdf:about="<?=$guid?>">
                <title><?=$titre?></title>
                <link><?=$lien_service?></link>
                <description><?=$description?></description>
                <dc:publisher><?=$editeur?></dc:publisher>
                <dc:date><?=$date_maj_W3C?></dc:date>
                
                <?php if (isset($items)) : ?>
                        <items>
                                <rdf:Seq>
                                        <?php foreach ($items as $item) : ?>
                                        <rdf:li resource="<?=$item['guid']?>" />
                                        <?php endforeach; ?>
                                </rdf:Seq>
                        </items>
                <?php endif; ?>
        </channel>

        <?php if (isset($items)) : ?>
                <?php foreach ($items as $item) : ?>
                        <item rdf:about="<?=$item['guid']?>">
                                <title><?=$item['titre']?></title>
                                <link><?=(isset($item['lien'])) ? $item['lien'] : 'http://www.tela-botanica.org/'?></link>
                                <description><?=$item['description_encodee']?></description>
                                <dc:creator><?=$item['modifier_par']?></dc:creator>
                                <dc:date><?=$item['date_maj_W3C']?></dc:date>
                        </item>
                <?php endforeach; ?>
        <?php endif; ?>
</rdf:RDF>