Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 207 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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