Subversion Repositories eFlore/Applications.del

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1047 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>
1233 gduche 17
		<link><?=$lien_service?></link>
1047 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)) : ?>
1317 jpm 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
	</channel>
1047 aurelien 32
 
1317 jpm 33
	<?php if (isset($items)) : ?>
34
		<?php foreach ($items as $item) : ?>
35
			<item rdf:about="<?=$item['guid']?>">
36
				<title><?=$item['titre']?></title>
37
				<link><?=(isset($item['lien'])) ? $item['lien'] : 'http://www.tela-botanica.org/'?></link>
38
				<description><?=$item['description_encodee']?></description>
39
				<dc:creator><?=$item['modifier_par']?></dc:creator>
40
				<dc:date><?=$item['date_maj_W3C']?></dc:date>
41
			</item>
42
		<?php endforeach; ?>
43
	<?php endif; ?>
1047 aurelien 44
</rdf:RDF>