<?cs set:cgiout.ContentType = "text/xml" ?><?xml version="1.0" ?>
<?xml-stylesheet href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"?>
<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="http://alanb.com/rss.xml">
  <title>alanb's blog</title>
  <link>http://alanb.com/</link>
  <description>Alan Braverman's Web Log</description>
  <dc:publisher>alanb.com</dc:publisher>
  <language>en-us</language>
  <items>
    <rdf:Seq>
      <?cs set:count = #0 ?>
      <?cs each:art = cs.blog ?>
        <?cs if:count < #10 ?>
        <rdf:li rdf:resource="http://alanb.com/article.html?x=<?cs var:art.id ?>" />
	<?cs /if ?>
	<?cs set:count = count + #1 ?>
      <?cs /each ?>
    </rdf:Seq>
  </items>
</channel>
  <?cs set:count = #0 ?>
  <?cs each:art = cs.blog ?>
    <?cs if:count < #10 ?>
    <item rdf:about="http://alanb.com/article.html?x=<?cs var:art.id ?>">
      <title><?cs var:html_escape(art.headline) ?></title>
      <link>http://alanb.com/article.html?x=<?cs var:art.id ?></link>
      <description>
        <?cs var:html_escape(html_strip(art.body)) ?>
      </description>
      <dc:creator>Alan</dc:creator>
      <dc:date><?cs var:art.date ?></dc:date>
    </item>
    <?cs /if ?>
    <?cs set:count = count + #1 ?>
  <?cs /each ?>
</rdf:RDF>
