{preload_replace:master_channel_name="default_site"}
{preload_replace:atom_feed_location="site/atom"}

{exp:rss:feed channel="{master_channel_name}"}

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

    <title type="text"><![CDATA[{channel_name}]]></title>
    <subtitle type="text"><![CDATA[{channel_name} - {channel_description}]]></subtitle>
    <link rel="alternate" type="text/html" href="{channel_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://expressionengine.com/" version="{version}">ExpressionEngine</generator>
    <id>tag:{trimmed_url},{gmt_date format="%Y:%m:%d"}</id>

{exp:channel:entries channel="{master_channel_name}" limit="15" dynamic_start="on" disable="member_data|pagination"}
    <entry>
      <title><![CDATA[{title}]]></title>
      <link rel="alternate" type="text/html" href="{url_title_path=site/index}" />
      <id>tag:{trimmed_url},{gmt_entry_date format="%Y"}:{relative_url}/{channel_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="<![CDATA[{category_name}]]>"
        scheme="{path=site/index}"
        label="<![CDATA[{category_name}]]>" />{/categories}
      <content type="html"><![CDATA[
        {body} {extended}
      ]]></content>
    </entry>
{/exp:channel:entries}

</feed>

{/exp:rss:feed}