<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
    <!ENTITY rfc2119 SYSTEM '../public/rfc/bibxml/reference.RFC.2119.xml'>
    <!ENTITY rfc2396 SYSTEM '../public/rfc/bibxml/reference.RFC.2396.xml'>
    <!ENTITY rfc2045 SYSTEM '../public/rfc/bibxml/reference.RFC.2045.xml'>
    <!ENTITY html4   SYSTEM '../public/rfc/bibxml4/reference.W3C.REC-html401-19991224.xml'>
    <!ENTITY xhtml10 SYSTEM '../public/rfc/bibxml4/reference.W3C.REC-xhtml1-20020801.xml'>
    <!ENTITY xml     SYSTEM '../public/rfc/bibxml4/reference.W3C.REC-xml-20001006.xml'>
    <!ENTITY atomfmt SYSTEM '../public/rfc/bibxml3/reference.I-D.ietf-atompub-format.xml'>
]>

<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>

<?rfc toc="yes" ?>
<?rfc symrefs="yes" ?>
<?rfc sortrefs="yes"?>
<?rfc iprnotified="yes" ?>
<?rfc strict="yes" ?>
<?rfc compact="yes" ?>
<?rfc comments="yes" ?>
<?rfc inline="yes" ?>
<?rfc tocdepth="3" ?>
<rfc category="std" ipr="full3978" docName="draft-ietf-atompub-autodiscovery-01.txt">

<front>

<title>Atom Feed Autodiscovery</title>

<author initials="M." surname="Pilgrim" fullname="Mark Pilgrim">
<organization abbrev="IBM">International Business Machines Corporation</organization>
<address>
<postal>
<street>4400 Silicon Drive</street>
<city>Durham</city>
<region>NC</region>
<code>27713</code>
<country>US</country>
</postal>
<email>pilgrim@gmail.com</email>
</address>
</author>

<date day="03" month="May" year="2005"/>

<abstract>
<t>This document specifies a machine-readable method of linking to an Atom feed from a HyperText Markup Language (HTML) or Extensible HyperText Markup Language (XHTML) document, using the &lt;link&gt; element.</t>
</abstract>

<note title="Editorial Note">
<t>To provide feedback on this Internet-Draft, join the <eref target="http://www.imc.org/atom-syntax/index.html"> atom-syntax mailing list (http://www.imc.org/atom-syntax/index.html)</eref>.</t>
</note>

</front>

<middle>
<section title="Introduction">
<t>Atom is an XML-based file format intended to allow lists of information, known as "feeds", to be synchronised between publishers and consumers.  Feeds are composed of a number of items, known as "entries", each with an extensible set of attached metadata.  The primary use case that Atom addresses is for syndicating web content such as weblogs and news headlines to other web sites and directly to consumers.  However, nothing precludes it from being used for other purposes and types of content.</t>

<t>The purpose of Atom autodiscovery is for clients who know the URI of a web page to find the location of page's associated Atom feed.  For example, say an end user wishes to subscribe to the Atom feed of a site.  Their Atom-aware aggregator client could prompt them to enter the home page of the site.  The client could retrieve the HTML source of the home page, find the Atom autodiscovery element, and then retrieve the Atom feed or cache the URI of the Atom feed for later retrieval.</t>

<t>Autodiscovered Atom feeds may be presented to the user in a variety of other ways.  In the past, Atom-enabled clients have implemented local proxies that monitor visited web sites and notify the end user of autodiscovered Atom feeds in real time.  Such notification could also be built directly into future versions of desktop web browsers.</t>
</section>

<section title="Notational Conventions">
<t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in <xref target="RFC2119"/>.</t>			
</section>
		
<section title="Relationship to HTML and XHTML">
<section title="Definition of an autodiscovery element">
<t>An Atom autodiscovery element is a link element, as defined in section 12.3 of <xref target="W3C.REC-html401-19991224">HTML 4</xref>.  As with other types of link elements, an autodiscovery element MAY appear within the &lt;head&gt; element of an HTML or XHTML document, but it MUST NOT appear within the &lt;body&gt;.</t>
</section> <!-- definition -->

<section title="Syntax rules inherited from HTML">
<t>When an Atom autodiscovery element appears in an HTML document, it shares all the syntax rules and restrictions of other HTML elements.  The most relevant rules are listed here:</t>
<t><list style="symbols">
<t>Element names are not case-sensitive.  For example, clients MUST treat &lt;link ...&gt; the same as &lt;LINK ...&gt;</t>
<t>Attribute names are not case-sensitive.  For example, clients MUST treat &lt;link rel="alternate" ...&gt; the same as &lt;link REL="alternate" ...&gt;.</t>
<t>Attributes may appear in any order; the order MUST NOT be considered significant.</t>
<t>Attribute values MUST be one of the following: enclosed in double quotes, enclosed in single quotes, or not enclosed in quotes at all.</t>
<t>Attribute values MAY contain leading or trailing spaces, or both.  Clients MUST ignore both leading and trailing spaces in attribute valuess.  For example, clients MUST treat all of the following the same way: &lt;link rel="alternate" ...&gt;, &lt;link rel="alternate " ...&gt;, &lt;link rel=" alternate" ...&gt;, and &lt;link rel=" alternate " ...&gt;.</t>
</list></t>
</section> <!-- behaviors/HTML -->

<section title="Syntax rules inherited from XHTML">
<t><xref target="W3C.REC-xhtml1-20020801">XHTML</xref> is a reformulation of HTML in <xref target="W3C.REC-xml-20001006">XML</xref>.  It also defines a &lt;link&gt; element, so XHTML documents are a suitable container for Atom autodiscovery elements.  When an Atom autodiscovery element appears in an XHTML document, it shares all the syntax rules and restrictions of other XHTML elements.</t>

<t>The syntax rules of XHTML documents are slightly different than HTML documents.  The most relevant differences are listed here:</t>
<t><list style="symbols">
<t>Element names are case-sensitive, and MUST be lowercase.</t>
<t>Attribute names are case-sensitive, and MUST be lowercase.</t>
<t>Attribute values MUST be enclosed in either double quotes or single quotes.</t>
<t>Empty elements (such as link elements) MUST be closed with an end tag.</t>
</list></t>
</section> <!-- behaviors/XHTML -->

</section> <!-- behaviors inherited from HTML and XHTML -->

<section title="Required attributes">
<section title="rel attribute">
<t>The rel attribute MUST be present in an Atom autodiscovery element.  As defined in section 6.12 of <xref target="W3C.REC-html401-19991224">HTML 4</xref>, the value of the rel attribute is a space-separated list of keywords.  The list of keywords MUST include the keyword "alternate" in uppercase, lowercase, or mixed case.</t>
</section> <!-- rel attribute -->

<section title="type attribute">
<t>The type attribute MUST be present in an Atom autodiscovery element.  As defined in section 12.3 of <xref target="W3C.REC-html401-19991224">HTML 4</xref>, the value of the type attribute of any link element MUST be a registered Internet media type <xref target="RFC2045"/>.  The media type for Atom is "application/atom+xml" <xref target="I-D.ietf-atompub-format"/>, so in an Atom autodiscovery element the value of the type attribute MUST contain the string "application/atom+xml" in uppercase, lowercase, or mixed case.</t>
</section> <!-- type attribute -->

<section title="href attribute">
<t>The href attribute MUST be present in an Atom autodiscovery element, and its value MUST be the URI <xref target="RFC2396"/> of an Atom feed.  The value MAY be a relative URI, and if so, clients MUST resolve it to a full URI (section 5 of <xref target="RFC2396"/>) using the document's base URI (section 12.4 of <xref target="W3C.REC-html401-19991224">HTML 4</xref>).</t>
</section> <!-- href attribute -->

</section> <!-- required attributes -->

<section title="Optional attributes">
<t>An Atom autodiscovery element MAY contain any other attributes of the link element defined in section 12.4 of <xref target="W3C.REC-html401-19991224">HTML 4</xref>.  Clients MAY ignore any attributes other than rel, type, and href.</t>

<section title="title attribute">
<t>The title attribute MAY be present in an Atom autodiscovery element.  If so, the client MAY treat the value of the title attribute as a human-readable label of the Atom feed.  Clients MAY present this label to the end user.</t>
</section> <!-- title attribute -->

</section> <!-- optional attributes -->

<section title="Multiple autodiscovery elements">
<t>An HTML or XHTML document MAY contain one or more Atom autodiscovery elements.  If multiple autodiscovery elements are present in a single document:</t>
<t><list style="symbols">
<t>Each autodiscovery element SHOULD point to a different Atom feed.</t>
<t>Each autodiscovery element SHOULD include a title attribute that gives a human-readable label for the feed that the element points to.  Clients MAY use these titles to present a list of available Atom feeds to the end user.</t>
<t>The order of the autodiscovery elements is significant.  The first element SHOULD point to the publisher's preferred feed for the document.</t>
<t>Clients who present a list of autodiscovered feeds to the end user SHOULD present them in the same order as the autodiscovery elements appear in the document.</t>
<t>Clients who wish to choose exactly one feed without user input SHOULD choose the one pointed to by the first autodiscovery element.</t>
</list>
</t>
</section> <!-- multiple atom autodiscovery elements -->

<section title="Examples">

<section title="rel attribute variations">
<!-- rel attr examples -->
<t>The following is a non-exhaustive list of valid rel attributes for an Atom autodiscovery element in an HTML or XHTML document:</t>
<t><list style="empty">
<t><![CDATA[rel="alternate"]]></t>
<t><![CDATA[rel="alternate "]]></t>
<t><![CDATA[rel=" alternate"]]></t>
<t><![CDATA[rel=" alternate "]]></t>
<t><![CDATA[rel="foo alternate"]]></t>
<t><![CDATA[rel="alternate bar"]]></t>
<t><![CDATA[rel="foo alternate bar"]]></t>
<t><![CDATA[rel="ALTERNATE"]]></t>
<t><![CDATA[rel="Alternate"]]></t>
<t><![CDATA[rel="AlTeRnAtE"]]></t>
<t><![CDATA[rel='alternate']]></t>
<t><![CDATA[rel="&#65;lternate"]]></t>
</list></t>
<t>In an HTML document, the following forms are also valid:</t>
<t><list style="empty">
<t><![CDATA[REL="alternate"]]></t>
<t><![CDATA[rel=alternate]]></t>
</list></t>
</section>

<section title="type attribute variations">
<!-- type attr examples -->
<t>The following are examples of valid type attributes for an Atom autodiscovery element in an HTML or XHTML document:</t>
<t><list style="empty">
<t><![CDATA[type="application/atom+xml"]]></t>
<t><![CDATA[type="application/atom+xml "]]></t>
<t><![CDATA[type=" application/atom+xml"]]></t>
<t><![CDATA[type=" application/atom+xml "]]></t>
<t><![CDATA[type="APPLICATION/ATOM+XML"]]></t>
<t><![CDATA[type="Application/Atom+Xml"]]></t>
</list></t>
<t>In an HTML document, the following form is also valid:</t>
<t><list style="empty">
<t><![CDATA[TYPE="application/atom+xml"]]></t>
</list></t>
</section>

<section title="Link element variations">
<t>Each of the following examples represents an Atom autodiscovery element in an HTML document located at <vspace/> http://www.example.com/index.html.  Each example points to an Atom feed located at http://www.example.com/xml/index.atom.</t>
<t><list style="empty">
<t><figure><artwork><![CDATA[<link rel="alternate" type="application/atom+xml"
href="http://www.example.com/xml/index.atom">]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel="alternate" type="application/atom+xml"
href="xml/index.atom">]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel="alternate" type="application/atom+xml"
href="/xml/index.atom">]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel='alternate' type='application/atom+xml'
href='http://www.example.com/xml/index.atom'>]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel=alternate type='application/atom+xml'
href="http://www.example.com/xml/index.atom">]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel="AlTeRnAtE" type="application/atom+xml"
href="http://www.example.com/xml/index.atom">]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel="alternate" type="APPLICATION/ATOM+XML"
href="http://www.example.com/xml/index.atom">]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<LINK REL="alternate" TYPE="application/atom+xml"
HREF="http://www.example.com/xml/index.atom">]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link href="http://www.example.com/xml/index.atom"
type="APPLICATION/ATOM+XML" rel="alternate">]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel="alternate foo" type="application/atom+xml"
href="http://www.example.com/xml/index.atom">]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel="foo alternate" type="application/atom+xml"
href="http://www.example.com/xml/index.atom">]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel="foo alternate bar" type="application/atom+xml"
href="http://www.example.com/xml/index.atom">]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel="&#65;lternate" type="application/atom+xml"
href="http://www.example.com/xml/index.atom">]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel="alternate" type="application/atom&#43;xml"
href="http://www.example.com/xml/index.atom">]]></artwork></figure></t>
</list></t>

<t>Each of the following examples represents an Atom autodiscovery element in an XHTML document located at <vspace/> http://www.example.com/index.xhtml.  Each example points to an Atom feed located at http://www.example.com/xml/index.atom.</t>
<t><list style="empty">
<t><figure><artwork><![CDATA[<link rel="alternate" type="application/atom+xml"
href="http://www.example.com/xml/index.atom" />]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel="alternate" type="application/atom+xml"
href="xml/index.atom" />]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel="alternate" type="application/atom+xml"
href="/xml/index.atom" />]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel='alternate' type='application/atom+xml'
href='http://www.example.com/xml/index.atom' />]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel="AlTeRnAtE" type="application/atom+xml" 
href="http://www.example.com/xml/index.atom" />]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel="alternate" type="APPLICATION/ATOM+XML" 
href="http://www.example.com/xml/index.atom" />]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link href="http://www.example.com/xml/index.atom" 
type="APPLICATION/ATOM+XML" rel="alternate" />]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel="alternate foo" type="application/atom+xml" 
href="http://www.example.com/xml/index.atom" />]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel="foo alternate" type="application/atom+xml" 
href="http://www.example.com/xml/index.atom" />]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel="foo alternate bar" type="application/atom+xml" 
href="http://www.example.com/xml/index.atom" />]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel="&#65;lternate" type="application/atom+xml"
href="http://www.example.com/xml/index.atom" />]]></artwork></figure></t>
<t><figure><artwork><![CDATA[<link rel="alternate" type="application/atom&#43;xml"
href="http://www.example.com/xml/index.atom" />]]></artwork></figure></t>
</list></t>
</section>

<section title="HTML variations">

<t>This is an example of a complete HTML document located at <vspace/> http://www.example.com/index.html.  It contains an Atom autodiscovery element that points to an Atom feed at http://www.example.com/index.html?format=atom.</t>
<t><figure><artwork><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<link rel="alternate"
      type="application/atom+xml"
      href="?format=atom">
</head>
</html>]]></artwork></figure></t>

<t>This is an example of a complete HTML document located at <vspace/> http://www.example.com/index.html.  It contains an Atom autodiscovery element that points to an Atom feed at http://www.example.org/index.atom.  It uses a relative URI which is relative to the base URI specified in the &lt;base&gt; element.</t>
<t><figure><artwork><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<base href="http://www.example.org/">
<link rel="alternate"
      type="application/atom+xml"
      href="index.atom">
</head>
</html>]]></artwork></figure></t>

<t>This is an example of a complete HTML document located at <vspace/> http://www.example.com/index.html.  It contains three autodiscovery elements that point to Atom feeds at http://www.example.com/xml/index.atom, http://www.example.com/xml/comments.atom, and http://example.org/index.atom respectively.  It uses the optional title attribute to label each autodiscovery element.</t>
<t><figure><artwork><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<link rel="alternate"
      type="application/atom+xml"
      title="Main Atom feed"
      href="/xml/index.atom">
<link rel="alternate"
      type="application/atom+xml"
      title="Recent comments feed"
      href="/xml/comments.atom">
<link rel="alternate"
      type="application/atom+xml"
      title="Atom feed (mirror)"
      href="http://example.org/index.atom">
</head>
</html>]]></artwork></figure></t>
</section>

</section> <!-- examples -->

<section title="IANA Considerations">
<t>This document relies on the registration of the Atom media type, which is defined in <xref target="I-D.ietf-atompub-format"/>.</t>
</section> <!-- IANA considerations -->

<section title="Security Considerations">
<t>Since the entire purpose of an Atom autodiscovery element is for clients to dereference the URI given in the href attribute, the security issues listed in section 7 of <xref target="RFC2396"/> should be considered.</t>

<t>A publisher could construct a malicious URI in the href attribute, such as a "javascript:" URI to include an inline script, or some other URI scheme that typically launches an external program when dereferenced.  Clients should be aware of the security context in which they execute scripts, and they should give the end user the ability to disable the automatic execution of external programs when dereferencing autodiscovery URIs.</t>
</section> <!-- security considerations -->

</middle>

<back>

<references title="Normative References">&rfc2119; &rfc2396; &xml; &atomfmt;</references>

<references title="Informative References">&rfc2045; &html4; &xhtml10;</references>

<section title="Contributors">
<t>The following people contributed to this specification's content: Joe Gregorio, Paul Hoffman, and the members of the atom-syntax mailing list.</t>
</section> <!-- contributors -->

<section title="Revision History">
<t><list style="hanging">
<t hangText="2005-05-03: ">
<list>
<t>Updated boilerplate to RFC 3978</t>
</list>
</t>
</list></t>
<t><list style="hanging">
<t hangText="2004-08-17: ">
<list>
<t>Consolidated examples</t>
<t>Updated author address</t>
<t>Added IPR</t>
<t>Removed reference to RFC 1808</t>
</list>
</t>
</list></t>
<t><list style="hanging">
<t hangText="2003-12-23: ">
<list>
<t>Added security considerations</t>
<t>Added note about order significance with multiple autodiscovery elements</t>
</list>
</t>
<t hangText="2003-12-22: ">
<list>
<t>Rearranged the "Relationship to HTML and XHTML" section</t>
<t>Added examples of single-quoted attribute values</t>
<t>Added examples of numeric entities in rel and type attributes</t>
</list>
</t>
<t hangText="2003-12-21: ">
<list>
<t>First draft</t>
</list>
</t>
</list>
</t>
</section> <!-- revision history -->

</back>

</rfc>



<!--
Notes:
- Structure of an autodiscovery <link> element
  - @rel (MUST be present)
    - "alternate"
    - value is case-insensitive [HTML4, 6.12]
  - @type (MUST be present)
    - "application/atom+xml"
    - value is case-insensitive [HTML4, 6.7]
  - @href (MUST be present)
    - URI for Atom feed [REF AtomFeedFormat]
    - value is case-sensitive [HTML4, 6.4]
    - value MUST be a URI
    - value MAY be a relative URI [HTML4, 6.4]
    - before dereferencing the URI, clients MUST resolve it to a full URI [RFC 1808 section 3] using the current document's base URI [HTML4, 12.4]
  - @title (MAY be present)
    - [HTML4, 7.4.3]
    - if present, clients MAY present the title attribute to the end user
  - other attributes MAY be present, as specified in [HTML4, 12.3]
- Multiple autodiscovery <link> elements
  - An HTML document MAY contain one or more Atom autodiscovery <link> elements
  - Each autodiscovery <link> element SHOULD point to a different Atom feed
  - If multiple autodiscovery <link> elements are present, each element SHOULD include a descriptive title in the title attribute.  Clients MAY use these titles to present a list of available Atom feeds to the end user.
- Compatibility with different versions of HTML and XHTML
  - HTML 2/3.2/4.0/4.01
    - use <link> (empty element, no end tag)
    - element names are not case-sensitive
    - attribute names are not case-sensitive
    - quotes around attribute values are optional
  - XHTML 1.0/1.1
    - use <link ... /> (empty element, Appendix-C-compatible end slash with leading space)
    - element and attribute names are case-sensitive and MUST be lowercase [XHTML1, 4.2]
    - attribute values must always be quoted [XHTML1, 4.4]
- Examples
  - Each of the following examples assume an autodiscovery <link> element in an HTML document located at http://www.example.com/.  They each reference an Atom feed at http://www.example.com/xml/index.atom.

    - <link rel="alternate" type="application/atom+xml" href="http://www.example.com/xml/index.atom">
    - <link rel="alternate" type="application/atom+xml" href="xml/index.atom">
    - <link rel="alternate" type="application/atom+xml" href="/xml/index.atom">
    - <link rel=alternate type=application/atom+xml href=http://www.example.com/xml/index.atom>
    - <link rel="AlTeRnAtE" type="application/atom+xml" href="http://www.example.com/xml/index.atom">
    - <link rel="alternate" type="APPLICATION/ATOM+XML" href="http://www.example.com/xml/index.atom">
    - <LINK REL="alternate" TYPE="application/atom+xml" HREF="http://www.example.com/xml/index.atom">
    - <link href="http://www.example.com/xml/index.atom" type="APPLICATION/ATOM+XML" rel="alternate">

  - Each of the following examples assume an autodiscovery <link> element in an XHTML document located at http://www.example.com/.  They each reference an Atom feed at http://www.example.com/xml/index.atom.

    - <link rel="alternate" type="application/atom+xml" href="http://www.example.com/xml/index.atom" />
    - <link rel="alternate" type="application/atom+xml" href="xml/index.atom" />
    - <link rel="alternate" type="application/atom+xml" href="/xml/index.atom" />
    - <link rel="AlTeRnAtE" type="application/atom+xml" href="http://www.example.com/xml/index.atom" />
    - <link rel="alternate" type="APPLICATION/ATOM+XML" href="http://www.example.com/xml/index.atom" />
    - <link href="http://www.example.com/xml/index.atom" type="APPLICATION/ATOM+XML" rel="alternate" />

  - The following example is a complete HTML document located at http://www.example.com/.  It references an Atom feed at http://www.example.com/?format=atom.  It uses a relative URI with a query string.

<html>
<head>
<link rel="alternate" type="application/atom+xml" href="?format=atom">
</link>
</head>
<body>
</body>
</html>

  - The following example is a complete HTML document located at http://www.example.com/.  It references an Atom feed at http://example.org/index.atom.  It uses a relative URI which is relative to the base URI specified in the <base> element.

<html>
<head>
<base href="http://example.org/">
<link rel="alternate" type="application/atom+xml" href="index.atom">
</link>
</head>
<body>
</body>
</html>

  - The following example is a complete HTML document located at http://www.example.com/.  It references multiple Atom feeds, located at http://www.example.com/xml/index.atom, http://www.example.com/xml/comments.xml, and http://example.org/index.atom respectively.  It uses the optional title attribute to label each feed.

<html>
<head>
<link rel="alternate" type="application/atom+xml" title="Main Atom feed" href="/xml/index.atom">
<link rel="alternate" type="application/atom+xml" title="Recent comments feed" href="/xml/comments.xml">
<link rel="alternate" type="application/atom+xml" title="Atom feed (mirror)" href="http://example.org/index.atom">
</link>
</head>
<body>
</body>
</html>




Things to read:
- SMTP RFC
- FTP RFC
- TCP/IP RFC
-->
