<?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="http://purl.org/rss/1.0/">

  <channel rdf:about="[% uri.root %]">
    <title>Rubric[% ": " _ query_description IF query_description %]</title>
    <link>[% uri.root %]</link>
    <description>Rubric</description>
    <dc:language>en-us</dc:language>
    [%# <dc:date></dc:date> %]
    <items>
      <rdf:Seq>
      [% WHILE (entry = entries.next) -%]
      <rdf:li rdf:resource="[% xml_escape(uri.entry(entry)) %]"/>
      [% END %]
      </rdf:Seq>
    </items>
  </channel>
[% CALL entries.reset %]
[% WHILE (entry = entries.next) %]
  [% item = entry.link || uri.entry(entry) %]
  <item rdf:about="[% xml_escape(uri.entry(entry)) %]">
    <title>[% xml_escape(entry.title) %]</title>
    <link>[% xml_escape(item) %]</link>
    <description>[% IF entry.description %][% "<p><em>" _ entry.description _ "</em></p>" | html %][% END %][% entry.body_as('html') | html %]</description>
    <dc:date>[% entry.created.datetime %]-05:00</dc:date>
    <dc:creator>[% entry.user %]</dc:creator>
  </item>
[% END %]
</rdf:RDF>
