- From: Erik Bruchez <ebruchez@orbeon.com>
- Date: Thu, 08 Feb 2007 20:49:59 +0100
- To: www-forms@w3.org
Mark Birbeck wrote: > > 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" /> The question is then: what would event('blah') return? Especially if you dispatch a custom event for which no properties are predefined. I know you can make event('blah') create and return a text node or an element, but I have always found that kind of suggestions quite clunky, maybe partly because it is without precedent in any XML specification that I know of. -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/
Received on Thursday, 8 February 2007 19:50:03 UTC