W3C home > Mailing lists > Public > www-html-editor@w3.org > April to June 2008

Suggestion for XML Events 2: listening to events in a separate document

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Thu, 3 Apr 2008 20:50:24 -0700
Message-Id: <C9F286B5-89D6-468A-BD40-33DC7A675291@orbeon.com>
To: www-html-editor@w3.org


We have this situation in XForms that the XForms document may refer to
separate documents known as XForms instances. Those can be specified

<xforms:instance id="my-instance">

or they can be loaded externally:

<xforms:instance id="my-instance" src="http://example.org/ 

or they can even be replaced at runtime through xforms:submissions.

At any rate, instances are considered separate DOMs by the XForms

Therefore, one thing which we can't do at the moment is attaching
event listeners in the XForms document to nodes in the instances, as
attaching using the @observer attribute would refer to ids located in
the XForms document, not ids in the instance.

One useful case for this would be listening to DOM Mutation Events
happening in an instance.

It would be good if XML Events 2 proposed a solution to that problem,
although a the moment I don't have a concrete proposal on the table.



Orbeon Forms - Web Forms for the Enterprise Done the Right Way
Received on Friday, 4 April 2008 03:52:27 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:08:56 UTC