W3C home > Mailing lists > Public > www-forms@w3.org > December 2002

Re: Target of xforms-binding-exception

From: Mikko Honkala <honkkis@tml.hut.fi>
Date: Thu, 19 Dec 2002 16:56:05 +0200
Message-ID: <3E01DE05.5050104@tml.hut.fi>
To: Jérôme Nègre <jerome.negre@e-xmlmedia.fr>, www-forms@w3.org

Hi,

of course the edge case is where you don't have any models. And, 
actually, if you look at XML Events spec, you can listen to events at 
any element, which has an id.

-mikko

Jérôme Nègre wrote:
> 
> Hi Mikko,
> 
>> This is a good question. One way to solve this would be to change the
>> target of this event to the element, which contained the flawed binding
>> expression. Since it bubbles, it would be possible for the author to
>> catch it e.g. at the root anyway. Would this make sense for you?
> 
> 
> But you can't have an action anywhere in the document. For instance, how 
> do you trigger a <message> action on the xforms-binding-exception in the 
> following form:
> 
> <html xmls=...>
>   <head>
>     <xform:model id="m1">
>       <xform:instance>
>         <my:data/>
>       </xform:instance>
>     </xform:model>
>   </head>
>   <body>
>     <!-- b1 points nowhere -->
>     <xform:output bind="b1"/>
>   </body>
> </html>
> 
> I suggest sending the event to the first (default) model or to all models.
> 
> Regards,
> Jérôme
Received on Thursday, 19 December 2002 09:51:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:54 GMT