{assign_variable:master_weblog_name="default_site"}
{assign_variable:atom_feed_location="site/atom"}

{exp:rss:feed weblog="{master_weblog_name}"}

<?xml version="1.0" encoding="{encoding}"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{weblog_language}">

    <title type="text">{exp:xml_encode}{weblog_name}{/exp:xml_encode}</title>
    <subtitle type="text">{exp:xml_encode}{weblog_name}:{weblog_description}{/exp:xml_encode}</subtitle>
    <link rel="alternate" type="text/html" href="{weblog_url}" />
    <link rel="self" type="application/atom+xml" href="{path={atom_feed_location}}" />
    <updated>{gmt_edit_date format='%Y-%m-%dT%H:%i:%sZ'}</updated>
    <rights>Copyright (c) {gmt_date format="%Y"}, {author}</rights>
    <generator uri="http://www.pmachine.com/" version="{version}">ExpressionEngine</generator>
    <id>tag:{trimmed_url},{gmt_date format="%Y:%m:%d"}</id>

{exp:weblog:entries weblog="{master_weblog_name}" limit="15" rdf="off" dynamic_start="on" disable="member_data|trackbacks"}
    <entry>
      <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
      <link rel="alternate" type="text/html" href="{url_title_path=site/index}" />
      <id>tag:{trimmed_url},{gmt_entry_date format="%Y"}:{relative_url}/{weblog_id}.{entry_id}</id>
      <published>{gmt_entry_date format="%Y-%m-%dT%H:%i:%sZ"}</published>
      <updated>{gmt_edit_date format='%Y-%m-%dT%H:%i:%sZ'}</updated>
      <author>
            <name>{author}</name>
            <email>{email}</email>
            {if url}<uri>{url}</uri>{/if}
      </author>
{categories}
      <category term="{exp:xml_encode}{category_name}{/exp:xml_encode}"
        scheme="{path=site/index}"
        label="{exp:xml_encode}{category_name}{/exp:xml_encode}" />{/categories}
      <content type="html"><![CDATA[
        {body} {extended}
      ]]></content>
    </entry>
{/exp:weblog:entries}

</feed>

{/exp:rss:feed}
