J.B. Nicholson-Owens wrote:
I maintain NewsFromNeptune.com, a website which points to an archive of
recordings of a weekly political talk show called "News from Neptune".
I'm considering using ATOM so listeners can be notified about new
episodes entering the archive.
I'd like to be able to tell the user's software that there are multiple
encodings of the same show, one in Ogg Vorbis, another in FLAC, and a
third in Speex. Given a URI to each encoding, the client could pick
which one is appropriate for downloading.
How do I specify this in ATOM?
Ideally, just like in XHTML 2.0[1], I think the type attribute should
have the option of providing multiple content-types.
So the link would become:
<link rel="enclosure" type="audio/mpeg, application/ogg, audio/x-speex"
href="show" />
Or with preferences:
<link rel="enclosure" type="application/ogg, audio/mpeg;q=0.5,
audio/x-speex;q=0.2" href="show" />
Or even with multiple languages:
<link rel="enclosure" type="audio/mpeg, application/ogg, audio/x-speex"
href="show" hreflang="en-CA, fr-CA" />
But this would require HTTP content negotiation, which I think is not
practical for most users.
[1] http://www.w3.org/TR/xhtml2/mod-handler.html#adef_handler_type
--
Sjoerd Visscher
http://w3future.com/weblog/