<?xml version="1.0"?>
<rdf:RDF 
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  xmlns="http://purl.org/rss/1.0/"
  xmlns:tal="http://xml.zope.org/namespaces/tal"
>
<channel tal:attributes="rdf:about here/absolute_url">

    <title tal:define="portal_title here/portal_properties/title;
                       here_title here/title_or_id;
                       template_title template/title_or_id;
                       here_title python:test( portal_title != here_title,
                                               here_title,
                                               template_title )"
           tal:content="string:$portal_title - $here_title">Title of page</title>
  <link tal:content="here/portal_url"></link>
  <description tal:content="here/Description">
    
  </description>
  <image rdf:resource="logo.jpg" />
  <sy:updatePeriod><tal:replace replace="here/portal_syndication/getUpdatePeriod" /></sy:updatePeriod>
  <sy:updateFrequency><tal:replace replace="here/portal_syndication/getUpdateFrequency" /></sy:updateFrequency>
  <sy:updateBase><tal:replace replace="python: here.portal_syndication.getHTML4UpdateBase(here)" /></sy:updateBase>
  <items>
    <rdf:Seq>
        <tal:define define="max_items here/portal_syndication/getMaxItems">
          <tal:repeat repeat="item python:here.portal_syndication.getSyndicatableContent(here)">
              <rdf:li tal:attributes="resource item/absolute_url" />
          </tal:repeat>
        </tal:define>
   </rdf:Seq>
  </items>
</channel>
<tal:define define="max_items here/portal_syndication/getMaxItems">
<tal:repeat repeat="item python: here.portal_syndication.getSyndicatableContent(here)">
<item tal:attributes="rdf:about item/Identifier">
<title tal:content="item/Title"></title>
<link tal:content="item/Identifier"></link>
<description tal:content="item/Description">
</description>
<dc:publisher tal:content="item/Publisher"></dc:publisher>
<dc:creator tal:content="item/Creator"></dc:creator>
<dc:rights tal:content="item/Rights"></dc:rights>
<tal:repeat repeat="subj item/Subject">
<dc:subject tal:content="subj">
</dc:subject>
</tal:repeat>
<dc:date tal:content="python: DateTime(item.Date()).strftime('%Y-%m-%dT%H:%M+00:00')"></dc:date>
</item>
</tal:repeat>
</tal:define>
</rdf:RDF>


