Re: Event questions.

On Thu, 27 Jul 2006 14:42:42 +0200, Rogelio Pérez Cano <rogeliop@satec.es>  
wrote:
> 1- The latest XForms 1.0 recommendation doesn´t forbid a handler  
> attribute
> in an <action> element,so does it mean that an <action> can be defined  
> with
> a handler attribute pointing to another <action>?
>
> (This can be usefull in order to reuse code).

In theory there is no reason why this shouldn't work. (But do you know the  
difference between theory in practice? In theory they are the same, but in  
practice they aren't.)

> 2- What is the interpretation of an <action> in terms of XML Events, is  
> it a
> listener or can be always considered like a handler?

Usually <action> is a handler.

> 3- What is the aim of having events in a <model> element, more  
> specifically
> what does this sentence mean?
>
> "Attributes from XML Events are allowed on this element to facilitate
> creating observers"

There are some events targeted to the <model> element. See
http://www.w3.org/TR/xforms/slice4.html#rpm-events

Best wishes,

Steven Pemberton

Received on Friday, 28 July 2006 17:01:13 UTC