W3C home > Mailing lists > Public > public-forms@w3.org > September 2008

Analysis of the effects of moving to XML Events 2 for XForms 1.2

From: <Nick_Van_den_Bleeken@inventivegroup.com>
Date: Tue, 16 Sep 2008 11:02:10 +0200
To: XForms <public-forms@w3.org>
Message-ID: <OF28D43FA3.25EA6BFA-ONC12574C6.00318F04-C12574C6.0031A4FF@inventivegroup.com>
All,

After a detailed analysis of the effects of moving to XML Events 2[1] for 
XForms 1.2 I came to the following differences between the action module, 
which was based on XForms 1.1 and XML Events 2:

Events attribute group
===================

* The 'taget' attribute is renamed to 'targetid'
* phase has extra values 'bubble' and 'target'


The dispatch Element
====================

* Element is renamed to 'dispatchEvent'
* The 'name' attribute is renamed to 'raise'
* The 'target' attribute is renamed to 'to'
* The delay attribute isn't supported
* 'name', 'target' and 'delay' can't be dynamic (xpath-expressions)

Extra functionality in XML events 2
========================

* addEventListener : allows the addition of a listener at run time (also 
introduces the declare attribute on listeners)
* removeEventListener : allows removing  of a listener at run time
* stopPropagation : action that stops propagation of an event (to support 
conditional stopping of propagation of events)
* preventDefault : action cancels the event (to support conditional 
cancelation of events)
* optional script element


After doing this detailed analysis I come to the same conclusions we came 
on the previous thread[2]:

   XML events 2 = our Action module + some not hard to implement new 
features + some renames - (delay, dynamic values for 'name' 'target' and 
'delay')


What does everybody think about me ( or somebody else) sending an e-mail 
the XHTML 2 Working Group with Forms WG in CC asking why they have chosen 
dispatchEvent over dispatch (how it was called in XForms), why they 
changed attribute 'target' to 'targetid' and call it 'to' on 
'dispatchEvent', and if they could add 'delay' and allow xpath expressions 
for 'name', 'target' and 'delay'.

Regards,

Nick Van den Bleeken  -  Research & Development Manager
Inventive Designers
Phone: +32 - 3 - 8210170
Fax: +32 - 3 - 8210171
Email: Nick_Van_den_Bleeken@inventivegroup.com

1: http://www.w3.org/MarkUp/2008/ED-xml-events-20080625/
2:http://lists.w3.org/Archives/Public/public-forms/2008Aug/0029.html 
Inventive Designers' Email Disclaimer:   http://www.inventivedesigners.com/email-disclaimer =
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
Received on Tuesday, 16 September 2008 09:03:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:49 UTC