XML technologies / RSS & Atom / Reference: Atom elements / atom:link

atom:link

(Excerpt from "Newsfeeds with RSS and Atom" by Heinz Wittenbrink, published by Galileo Press, 2005)

Meaning

Reference from a feed or entry to a resource on the Web.

Schema

atomLink =
      element atom:link {
         atomCommonAttributes,
         attribute href { atomUri },
         attribute rel { atomNCName | atomUri }?,
         attribute type { atomMediaType }?,
         attribute hreflang { atomLanguageTag }?,
         attribute title { text }?,
         attribute length { text }?,
         undefinedContent
      } 






Ancestors

feed, entry, source

Descendants/content

None

Attributes

Common attributes

Name

Value

href

IRI reference according to RFC 3987 (required).

rel

Specifies the relationship to the referenced resource (optional). Currently supported values are alternate, related, self, enclosure and via. Additional values can be registered with IANA. If the attribute is not explicitly specified, its value is assumed to be alternate. For more information about the attributes of atom:link see the page Links in Atom.

type

valid MIME media type of the representation of the referenced resource (optional).

hreflang

Specifies the target resource’s language using a language tag according to RFC 3066 (optional).

title

Human-readable information about the link (optional).

length

Length of the linked content in 8-bit characters (optional).

Example

<atom:feed xmlns="http://www.w3.org/2005/Atom">
   ...
   <atom:link rel="alternate" href="http://www.celawi.com/webtrends.html"/>
   <atom:link rel="via" type="text/html" href="http://blog.ask.com/2005/04/jeeves_habla_es.html"/> 
</atom:feed>

Notes

None

Equivalents

RSS 2.0

RSS 1.0

RSS 1.1

link

rss:link

rss:link

   

 

 

 

Creative Commons license
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

back to top