You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Paul Lindner <li...@inuus.com> on 2010/03/02 11:46:10 UTC

Re: opensocial template bug? no way to access feed's elements with : in its name.

>
> This does seem like an issue with the spec.  I see in
>
>
> http://opensocial-resources.googlecode.com/svn/spec/draft/OpenSocial-Templating.xml#rfc.section.7.2
>
>
> <http://opensocial-resources.googlecode.com/svn/spec/draft/OpenSocial-Templating.xml#rfc.section.7.2>That
> it mentions that namespaces are not supported.  You might consider dropping
> the namespace, or consider accessing this data via javascript dom and quote
> the namespace value.  In any case it's an ill-defined area of the spec..
>
>
> On Wed, Dec 16, 2009 at 5:38 AM, Gabriel Barros <gb...@yahoo-inc.com>wrote:
>
>> most feeds and rest APIs have items named "media:content"
>>
>> opensocial template simply ignores those.
>>
>> <os:Repeat expression="${youtube.content.value.items}" if="${Context.Index
>> lt 12}">
>> title: ${Cur.title} <!-- will show up okay-->
>> img: ${Cur.media:content} <!-- will be blatantly ignored -->
>> </os:Repeat>
>>
>>
>> sample feed: http://gdata.youtube.com/feeds/api/videos?v=2&q=shindig
>>
>>
>> Is it a bug or am I messing up?
>>
>> thank you,
>> --gbarros
>>
>
>

Re: opensocial template bug? no way to access feed's elements with : in its name.

Posted by Evan Gilbert <ui...@google.com>.
${Cur['media:content']} might work, but not positive.

(@Paul - possibly that's what you meant by "accessing via the JS DOM", but
wanted to be expilcit)

On Tue, Mar 2, 2010 at 2:46 AM, Paul Lindner <li...@inuus.com> wrote:

> >
> > This does seem like an issue with the spec.  I see in
> >
> >
> >
> http://opensocial-resources.googlecode.com/svn/spec/draft/OpenSocial-Templating.xml#rfc.section.7.2
> >
> >
> > <
> http://opensocial-resources.googlecode.com/svn/spec/draft/OpenSocial-Templating.xml#rfc.section.7.2
> >That
> > it mentions that namespaces are not supported.  You might consider
> dropping
> > the namespace, or consider accessing this data via javascript dom and
> quote
> > the namespace value.  In any case it's an ill-defined area of the spec..
> >
> >
> > On Wed, Dec 16, 2009 at 5:38 AM, Gabriel Barros <gbarros@yahoo-inc.com
> >wrote:
> >
> >> most feeds and rest APIs have items named "media:content"
> >>
> >> opensocial template simply ignores those.
> >>
> >> <os:Repeat expression="${youtube.content.value.items}"
> if="${Context.Index
> >> lt 12}">
> >> title: ${Cur.title} <!-- will show up okay-->
> >> img: ${Cur.media:content} <!-- will be blatantly ignored -->
> >> </os:Repeat>
> >>
> >>
> >> sample feed: http://gdata.youtube.com/feeds/api/videos?v=2&q=shindig
> >>
> >>
> >> Is it a bug or am I messing up?
> >>
> >> thank you,
> >> --gbarros
> >>
> >
> >
>