RFE: context info for user-defined events

Several events include useful context information that can be accessed
from XPath expressions using the `event()` function.  I would like to be
able to add context information to events that are dispatched using the
`xf:dispatch` element[0].  I invision this functionality being used in
something like the following way (assuming that the `xf` prefix maps to
the XForms namespace and the `ev` prefix maps to the XML Events
namespace):

  <xf:model id="m">
    <xf:action ev:event="foo">
      <xf:message ev:event="foo"
        >Hello, <xf:output value="event('name')"/></xf:message>
      <xf:setvalue ref="event('context')/name" value="event('name')"/>
    </xf:action>
  </xf:model>

  <!-- ... -->

  <xf:dispatch name="foo" target="m">
    <xf:property name="context" value="instance('other')/context"/>
    <xf:property name="name" value="@name"/>
  </xf:dispatch>

[0] http://www.w3.org/TR/2006/WD-xforms11-20061212/#action-dispatch

Take care,

    John L. Clark  |  Systems Analyst
                   |  Cardio-Thoracic Surgery Research
 Cleveland Clinic  |  9500 Euclid Ave.   |  Cleveland, OH 44195
                   |  (216) 445-6011





Cleveland Clinic is ranked one of the top 3 hospitals in
America by U.S.News & World Report. Visit us online at
http://www.clevelandclinic.org for a complete listing of
our services, staff and locations.


Confidentiality Note:  This message is intended for use
only by the individual or entity to which it is addressed
and may contain information that is privileged,
confidential, and exempt from disclosure under applicable
law.  If the reader of this message is not the intended
recipient or the employee or agent responsible for
delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If
you have received this communication in error,  please
contact the sender immediately and destroy the material in
its entirety, whether electronic or hard copy.  Thank you.


===================================

Received on Thursday, 8 February 2007 16:17:48 UTC