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

Re: RFE: context info for user-defined events

From: Mark Birbeck <mark.birbeck@x-port.net>
Date: Thu, 8 Feb 2007 17:07:04 +0000
Message-ID: <640dd5060702080907l70355817j4d964c3526ee79e3@mail.gmail.com>
To: www-forms@w3.org

John,

> 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].
>
> [...]

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

Would be a good way to write it. XML Events 2 includes the event
function, and it was always intended it to be read/write...but I have
a horrible feeling that it isn't. (Time for an edit.)

Mark

-- 
  Mark Birbeck, formsPlayer

  mark.birbeck@x-port.net * +44 (0) 20 7689 9232
  www.formsPlayer.com * internet-apps.blogspot.com

  standards. innovation.
Received on Thursday, 8 February 2007 17:07:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:08 GMT