Subversion Repositories eFlore/Applications.cel

Rev

Rev 506 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
416 aurelien 1
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";?>
2
 
3
<!DOCTYPE rdf:RDF [
4
<!ENTITY % HTMLlat1 PUBLIC
5
 "-//W3C//ENTITIES Latin 1 for XHTML//EN"
6
 "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
7
%HTMLlat1;
8
]>
9
 
10
<rdf:RDF
11
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
12
	xmlns:dc="http://purl.org/dc/elements/1.1/"
13
	xmlns="http://purl.org/rss/1.0/">
14
 
15
	<channel rdf:about="<?=$guid?>">
16
		<title><?=$titre?></title>
528 jpm 17
		<link><?=$lien_cel?></link>
416 aurelien 18
		<description><?=$description?></description>
19
		<dc:publisher><?=$editeur?></dc:publisher>
20
		<dc:date><?=$date_maj_W3C?></dc:date>
21
 
22
		<?php if (isset($items)) : ?>
23
		<items>
24
			<rdf:Seq>
25
				<?php foreach ($items as $item) : ?>
26
				<rdf:li resource="<?=$item['guid']?>" />
27
				<?php endforeach; ?>
28
			</rdf:Seq>
29
		</items>
30
	    <?php endif; ?>
31
 
32
	</channel>
33
 
34
  <?php if (isset($items)) : ?>
35
  <?php foreach ($items as $item) : ?>
36
	<item rdf:about="<?=$item['guid']?>">
37
		<title><?=$item['titre']?></title>
506 jpm 38
		<? if (isset($item['lien'])) : ?>
416 aurelien 39
		<link><?=$item['lien']?></link>
506 jpm 40
		<? endif; ?>
416 aurelien 41
		<description><?=$item['description_encodee']?></description>
42
		<dc:date><?=$item['date_maj_W3C']?></dc:date>
43
	</item>
44
  <?php endforeach; ?>
45
  <?php endif; ?>
46
 
47
</rdf:RDF>