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

Question about 9.3.3 Repeat Processing note

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Wed, 20 Aug 2008 12:06:27 -0700
Message-Id: <B1A2ABEB-A416-4B90-9FA5-5329A321A59F@orbeon.com>
To: "public-forms (new)" <public-forms@w3.org>

All,

About this text in 9.3.3:

"The repeat item generation and repeat index update on insertion must  
behave as if it occurs in response to the xforms-insert event  
dispatched by the insert action. The index update must behave as if it  
occurs when the xforms-insert event reaches the target instance  
element in the capture phase."

The "index update" is mentioned in the two sentences so it is clear  
for that one, but what about adding the repeat items?

First, I would reformulate this slightly differently:

"The repeat index update on insertion must behave as if it occurs when  
the xforms-insert event reaches the target instance element in the  
capture phase. The repeat item generation on insertion must behave as  
if it occurs in response to the xforms-insert event dispatched by the  
insert action."

Second, the text "in response to" above is unclear to me. We use "in  
response to" in the spec in general to say that an event is dispatched  
upon processing an action. So "in response to" means dispatching the  
event. But here in section 9.3.3 does that mean that item generation  
can occur at any time between during the event dispatch?

I would also change:

"The repeat index update on deletion behaves as if it occurs in  
response to the xforms-delete event dispatched by the delete action.  
Specifically, the index update behaves as if it occurs when the xforms- 
delete event reaches the target instance element in the capture phase."

To simply:

"The repeat index update on deletion must behave as if it occurs when  
the xforms-delete event reaches the target instance element in the  
capture phase."

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/
Received on Wednesday, 20 August 2008 19:12:00 UTC

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