Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 322 | Details | Compare with Previous | Last modification | View Log | RSS feed

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