[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Enclosures in Atom?
Pete Prodoehl wrote:
There must be a way to do this, but I'm not sure how...
RSS 2.0 has the concept of enclosures:
http://blogs.law.harvard.edu/tech/rss#ltenclosuregtSubelementOfLtitemgt
Putting aside all the reasons people might not think enclosures are a
good idea, how could something similar be implemented in Atom? Namely,
the idea that an entry points to a url that a client may or may not wish
to download?
Would the entry have a specific content type different than the common
application/xhtml+xml?
Would the entry have a value pointing to the url of the enclosure?
What would the syntax be? Is there an existing example?
In RSS 2.0, enclosures are child elements of items.
An Atom entry can have multiple link tags, each specifying whevever
content type is appropriate. My guess is that what needs to be settled
on is the value of the "rel" attribute for these link tags.
So, something along the lines of:
<link rel="???" type="audio/mpeg" href="http://..." />
- Sam Ruby