W3C home > Mailing lists > Public > www-forms-editor@w3.org > July 2012

comment on description xf:dispatch in XForms 1.1

From: C. M. Sperberg-McQueen <cmsmcq@blackmesatech.com>
Date: Mon, 30 Jul 2012 20:56:44 -0600
Message-Id: <DDB74798-BB68-4183-9FC6-42C170F9A136@blackmesatech.com>
Cc: "C. M. Sperberg-McQueen" <cmsmcq@blackmesatech.com>
To: www-forms-editor@w3.org
The description of xf:dispatch in section 10.8
(http://www.w3.org/TR/xforms11/#action-dispatch) says

> This action dispatches an XML Event to a specific target element.

The description of targetid says

> Author-optional attribute for specifying the reference to the event target.

Nothing in section 10.8 seems to say what kinds of elements can
and what kinds of elements cannot usefully serve as the target
of an event.  (A search for 'event target' turns up no useful 

Experimentation with XSLTForms showed (eventually) that if I 

  <xf:group id="g">
    <xf:action id="a" ev:event="my-event">
      <xf:message level="modal">Hi, mom.</xf:message>


  <xf:dispatch name="my-event" targetid="g"/> 

works as  one might expect.  That is, a message reading 
"Hi, mom!" appears.  But in contrast

  <xf:dispatch name="my-event" targetid="a"/> 

does not work as one might (and I did) expect.  That is,
no message appears.

If this is the expected behavior (I confess that I have not tried
the example with a different implementation), then perhaps it
would be helpful to some readers if section 10.8 said something
about whatever property it is of xf:group and xf:action which
make one but not the other a suitable target for event

If this topic is discussed in the spec, I would be grateful for a
pointer to the discussion. If it is a consequence of the rules
for event propagation in DOM2 Events or XML Events, I'd be
glad to know that, too.

* C. M. Sperberg-McQueen, Black Mesa Technologies LLC
* http://www.blackmesatech.com 
* http://cmsmcq.com/mib                 
* http://balisage.net
Received on Tuesday, 31 July 2012 02:57:09 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:25:13 UTC