--- In rss-media@yahoogroups.com, Sam Ruby <rubys@...> wrote:
>
> snazzysven wrote:
> >
> > From the spec:
> >
> > <media:group>
> >
> > <media:group> is a sub-element of <item>. It allows grouping of
> > <media:content> elements that are effectively the same content, yet
> > different representations. For instance: the same song recorded in
> > both the WAV and MP3 format. It's an optional element that must only
> > be used for this purpose.
> >
> > The last sentence on this is troubling, and I'd like to see it made
> > more clear. Does this mean that media:group must only be used to
> > group related items, or it must only be used when there are multiple
> > media:content elements?
> >
> > If the latter, this makes a feed where some items have multiple
> > media:content elements, and some do not, more annoying to parse. So
> > this needs to be cleared up in the spec. For a specific example of
> > why this is annoying, see:
> >
http://validator.w3.org/feed/docs/error/MediaGroupWithoutAlternatives.html
> >
<http://validator.w3.org/feed/docs/error/MediaGroupWithoutAlternatives.html>
>
> Prior discussion on the topic:
>
> http://www.therssweblog.com/?guid=20070929094626
That discussion, while informative, doesn't touch on the question
above. Is 2 or more really a good choice for deciding between group
and content? 1 or more seems like a much better option.
Additionally, it lets you do this:
<media:group>
<media:content ...item 1.../>
<media:thumbnail ...first item 1 thumbnail.../>
<media:thumbnail ...second item 1 thumbnail.../>
</media:group>
<media:group>
<media:content ...item 2.../>
<media:thumbnail ...first item 2 thumbnail.../>
<media:thumbnail ...second item 2 thumbnail.../>
</media:group>
If media:group REQUIRES 2 or more media:content elements, you cannot
say the above with media:rss.
So I think its obvious media:group should require related media
content elements, but not necessarily 2 or more mediarss elements.
Whoever is in charge of the mediarss spec, can you fix this please?
We're going to continue to use mediarss this way, ideally we'd like to
do so without contradicting the spec and/or feed validator.
>
> > -Sven
>
> - Sam Ruby
>