<?xml version="1.0"?>
<!--!
Generate an <author> or a <dc:creator> tag, based on the presence
of an email or not in the author's information.

Arguments:
 - author: the author to be used
-->
<rss version="2.0"
	 xmlns:py="http://genshi.edgewall.org/"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     py:strip="">
  <py:if test="author">
    <!--! Try our best to retrieve an email address if wanted and possible -->
    <py:with vars="author = format_author(author_email(author))">
      <py:choose>
        <author py:when="'@' in author">$author</author>
        <dc:creator py:otherwise="">$author</dc:creator>
      </py:choose>
    </py:with>
  </py:if>
</rss>
