Subversion Repositories eFlore/Applications.coel

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1499 jpm 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>
17
		<link><?=$lien_coel?></link>
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>
38
		<link><?=$item['lien']?></link>
39
		<description><?=$item['description_encodee']?></description>
40
		<dc:date><?=$item['date_maj_W3C']?></dc:date>
41
	</item>
42
  <?php endforeach; ?>
43
  <?php endif; ?>
44
 
45
</rdf:RDF>