On Tue, 2009-12-08 at 10:51 -0500, Lindsley Brett-ABL001 wrote:
> This is an old topic – was there any closure on adding additional
> media attributes to links?
> For example, a link to an image may want to specify its length/height.
> An MD5 would also be useful. Are there any recommended practices? 
I've adopted Media RSS (http://video.search.yahoo.com/mrss) - using
XML::Atom::Ext::Media perl module. It works for me, but I don't serve
Atom to users yet and using it for internal communication only, so any
sane approach would work for me - I don't worry too much if it standard
or not yet.

Media information is included into Entry element, but yes, I embed this
info in links. Using In-lining extension for Atom which is RFC draft.

http://tools.ietf.org/html/draft-mehta-atom-inline-01

so I've got something like

<link>
  <ae:inline xmlns:ae="http://purl.org/atom/ext/";>
    <entry>
      <media:thumbnail xmlns:media="http://search.yahoo.com/mrss/"; height="640" 
width="400"/>
    </entry>
  </ae:inline>
</link>

Here is XML::Atom extension I've made for In-lining support:

http://github.com/pin/xml-atom-ext-inline/blob/master/lib/XML/Atom/Ext/Inline.pm

Sorry for so perlish point of view. And I'm not sure if it relevant for
you, but hope this helps...

-- 
Dmitri Popov

Reply via email to