Question about 9.3.3 Repeat Processing note

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