<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"
  xmlns:tal="http://xml.zope.org/namespaces/tal"
  xmlns:silvanews="http://infrae.com/namespaces/silvanews"
  tal:define="data view/get_data">
  <id tal:content="data/id" />
  <title type="text" tal:content="data/title"/>
  <subtitle tal:content="data/description" />
  <link rel="self" tal:attributes="href string:${data/url}/atom" />
  <author tal:repeat="author data/authors">
    <name tal:content="author"/>
  </author>
  <tal:block condition="data/date_updated">
    <updated tal:content="python: data['date_updated'].HTML4()" />
  </tal:block>
  <entry tal:repeat="item data/entries">
    <title tal:content="item/title"/>
    <link rel="alternate" type="text/html" tal:attributes="href item/url" />
    <id tal:content="item/id"/>
    <tal:block condition="item/date_published">
      <published tal:content="python: item.date_published().HTML4()"/>
    </tal:block>
    <tal:block condition="item/date_updated">
      <updated tal:content="python: item.date_updated().HTML4()"/>
    </tal:block>
    <author tal:repeat="author item/authors">
      <name tal:content="author"/>
    </author>
    <tal:repeat repeat="keyword item/keywords">
     <category tal:condition="keyword"
       tal:attributes="term keyword" />
    </tal:repeat>
    <summary type="xhtml">
      <div tal:content="structure item/html_description" />
    </summary>
    <silvanews:location tal:condition="item/location|nothing" tal:content="item/location" />
    <silvanews:start_datetime tal:condition="item/start_datetime|nothing" 
               tal:content="item/start_datetime" />
    <silvanews:end_datetime tal:condition="item/end_datetime|nothing" 
               tal:content="item/end_datetime" />
  </entry>
</feed>
