Re: Target of xforms-binding-exception

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 UTC