W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2008

[Widgets] Requirements LC

From: Marcos Caceres <marcosscaceres@gmail.com>
Date: Fri, 20 Jun 2008 17:03:22 +1000
Message-ID: <b21a10670806200003q10742d0bseffef8186d794e79@mail.gmail.com>
To: "public-webapps@w3.org" <public-webapps@w3.org>

I accidentally sent this discussion to Timeless without including the list....


---------- Forwarded message ----------
From: Marcos Caceres <marcosscaceres@gmail.com>
Date: Thu, Jun 19, 2008 at 6:20 PM
Subject: Re: [Widgets] Requirements LC
To: timeless@gmail.com


On Thu, Jun 19, 2008 at 6:02 PM, timeless <timeless@gmail.com> wrote:
> On 6/18/08, Marcos Caceres <marcosscaceres@gmail.com> wrote:
>>  R35. Configuration Document Data
>>  A conforming specification SHOULD specify a means that allows authors
>>  to access any relevant data they declared in the configuration
>>  document for the widget resource.
>
> On 6/19/08, Marcos Caceres <marcosscaceres@gmail.com> wrote:
>> This just means that you should be able to get at the stuff in the
>>  config.xml file (so you don't need to declare the metadata again in
>>  the start file).
>
> oh, well that definitely isn't what i misinterpreted it to mean :)
>
> what is the reason not to require access to irrelevant information?

If it was irrelevant, it would not have been declared in the config. I
don't understand why you think it is irrelevant?

> i guess it's implementation simplicity...
>
>> How would you suggest I rewrite it?
>
> i think my concern is "they declared". I treated that is a "link" and
> read the block to mean that the host would "resolve the link" on
> retrieval.
>
> declare: foo=get_data_from(http://somewhere)
>
> means: retrieve(foo)
>
> result:
>  data from somewhere is loaded
>
> your goal:
>  "get_data_from(http://somewhere)"
>

Yes, that is possible (using XHR to load the config from within the
package), but then you have to walk an XML tree which sucks. The other
way is to use the properties that we have bound to the Widget object.
Check out http://dev.w3.org/2006/waf/widgets-api/Overview.src.html

--
Marcos Caceres
http://datadriven.com.au
http://standardssuck.org
Received on Friday, 20 June 2008 07:04:08 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:26 GMT