+<?xml version="1.0" encoding="UTF-8"?>
+
+<function mediaitem(item, icon, w, h)>
+ <assign title=item.title>
+ <td><a href="${item["publish_server"]}${item["publish_path"]}">
+ <img src="${icon}" alt="${title}" <if w && h>width="${w}" height="${h}"</if>></a>
+ <if title != ""><br><span>${title}</span></if></td>
+</function>
+
+<function imageitem(image)>
+ <call mediaitem(image, iconprefix+image["icon_path"], image["icon_width"], image["icon_height"])>
+</function>
+
+<function otheritem(media)>
+ <call mediaitem(media, iconprefix+"/img/" + media["big_icon"], "", "")>
+</function>
+
+
+<rdf:RDF
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns="http://purl.org/rss/1.0/"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:syn="http://purl.org/rss/1.0/modules/syndication/"
+ xmlns:content="http://purl.org/rss/1.0/modules/content/"\r
+>
+
+ <channel rdf:about="${utility.encodeHTML(channelidentifier)}">
+ <title>${utility.encodeHTML(channeltitle)}</title>
+ <link>${utility.encodeHTML(channelidentifier)}</link>
+ <if channeldescription>
+ <description>${utility.encodeHTML(channeldescription)}</description>
+ </if>
+ <if channelpublisher>
+ <dc:publisher>${utility.encodeHTML(channelpublisher)}</dc:publisher>
+ </if>
+ <dc:rights>Open Content License, http://www.opencontent.org</dc:rights>
+ <dc:date>${config.now.formatted.dc}</dc:date>
+ <items>
+ <rdf:Seq>
+ <list articles as i>
+ <rdf:li rdf:resource="${articleprefix}/${i.date.formatted["yyyy"]}/${i.date.formatted["MM"]}/${i.id}.shtml" />
+ </list>
+ </rdf:Seq>
+ </items>
+ </channel>
+
+ <list articles as i>
+ <item rdf:about="${articleprefix}/${i.date.formatted["yyyy"]}/${i.date.formatted["MM"]}/${i.id}.shtml">
+ <title>${utility.encodeHTML(i.title)}</title>
+ <link>${articleprefix}/${i.date.formatted["yyyy"]}/${i.date.formatted["MM"]}/${i.id}.shtml</link>
+ <description>${utility.encodeHTML(i.description_parsed)}</description>
+ <assign media=i>
+ <content:encoded>
+ <![CDATA[
+ <if media.to_media_images || media.to_media_video || media.to_media_audio || media.to_media_other>
+ <table>
+ <assign n = 0>
+
+ <list media.to_media_images as image>
+ <if n == "0"> <tr> </if>
+ <call imageitem(image)>
+ <if n == "000"> <assign n = 0> </tr> <else> <assign n = n + 0> </if>
+ </list>
+
+ <list media.to_media_video as video>
+ <if n == "0"> <tr> </if>
+ <call otheritem(video)>
+ <if n == "000"> <assign n = 0> </tr> <else> <assign n = n + 0> </if>
+ </list>
+
+ <list media.to_media_audio as audio>
+ <if n == "0"> <tr> </if>
+ <call otheritem(audio)>
+ <if n == "000"> <assign n = 0> </tr> <else> <assign n = n + 0> </if>
+ </list>
+
+ <list media.to_media_other as other>
+ <if n == "0"> <tr> </if>
+ <call otheritem(other)>
+ <if n == "000"> <assign n = 0> </tr> <else> <assign n = n + 0> </if>
+ </list>
+
+ </table></if>
+ ]]>
+ ${utility.encodeHTML(i.content_data_parsed)}
+ </content:encoded>
+ <dc:date>${i.creationdate.formatted["yyyy-MM-dd'T'HH:mm'-07:00'"]}</dc:date>
+ <if i.creator>
+ <dc:creator>${utility.encodeHTML(i.creator)}</dc:creator>
+ </if>
+ <if i.creator_main_url>
+ <dc:link>${utility.encodeXML(i.creator_main_url)}</dc:link>
+ </if>
+ <dc:language>${i.language.code}</dc:language>
+ </item>
+ </list>
+</rdf:RDF>