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

Re: Target of xforms-binding-exception

From: Jérôme Nègre <jerome.negre@e-xmlmedia.fr>
Date: Thu, 19 Dec 2002 15:42:56 +0100
Message-ID: <3E01DAF0.6050301@e-xmlmedia.fr>
To: Mikko Honkala <honkkis@tml.hut.fi>
CC: www-forms@w3.org

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:44:52 GMT

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