W3C home > Mailing lists > Public > www-forms@w3.org > February 2007

RFE: context info for user-defined events

From: Clark, John <CLARKJ2@ccf.org>
Date: Thu, 8 Feb 2007 11:17:30 -0500
Message-ID: <F122C25B4CD6F34BB119A97593679601027CA805@CCHSCLEXMB59.cc.ad.cchs.net>
To: www-forms@w3.org

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

  <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:dispatch name="foo" target="m">
    <xf:property name="context" value="instance('other')/context"/>
    <xf:property name="name" value="@name"/>

[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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:55 UTC