Re: XML Events: event handlers for multiple events?

Hi Erik,

> Am I right to say that it is not possible to register an action as an
> event handler for multiple events with XML Events / XForms?

You can do that with the handler attribute:

  <ev:listener event="xforms-valid" handler="#h" />
  <ev:listener event="xforms-enabled" handler="#h" />

  <xf:action id="h">
    ...
  </xf:action>

> Wouldn't it be reasonable to be able to write something like:
>
> <xforms:action ev:event="xforms-valid xforms-enabled">
>    ...
> </xforms:action>

I don't see what harm it would do. :)

Regards,

Mark

-- 
Mark Birbeck
CEO
x-port.net Ltd.

e: Mark.Birbeck@x-port.net
t: +44 (0) 20 7689 9232
w: http://www.formsPlayer.com/
b: http://internet-apps.blogspot.com/

Download our XForms processor from
http://www.formsPlayer.com/

Received on Saturday, 5 August 2006 17:12:06 UTC