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

Re: RFE: context info for user-defined events

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Thu, 08 Feb 2007 20:49:59 +0100
Message-ID: <45CB7EE7.30806@orbeon.com>
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.


Orbeon Forms - Web Forms for the Enterprise Done the Right Way
Received on Thursday, 8 February 2007 19:50:03 UTC

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