Re: xf:duplicate emulation

In the next day or two, the new 1.1 working draft will appear.
In it, you'll see that we've scrapped duplicate and destroy in favor of 
simple modifications of insert and delete that cover the functionality 
of duplicate and destroy.

The main problems for insert were how to identify a nodeset that 
could become empty and how to get a prototypical subtree from 
someplace else.

By simply adding the new attributes to insert rather than inventing a 
new action, we found we could achieve the desired results.  We also 
found that insert's separation of the target location into nodeset, at 
and position made it easier than was the case with duplicate to 
express the most common use case of inserting a new homogeneous 
collection item into a repeat after the currently indexed repeat item. 
Also, an insert with a target of the root document element of the 
instance results in replacing the instance.

Details and examples to be published shortly.

John M. Boyer, Ph.D.
Senior Product Architect/Research Scientist
Workplace, Portal and Collaboration Software
IBM Victoria Software Lab
E-Mail: boyerj@ca.ibm.com  http://www.ibm.com/software/





Alexander Anokhin <ava@vaz.ru> 
Sent by: www-forms-request@w3.org
12/12/2005 06:52 AM
Please respond to
ava


To
www-forms@w3.org
cc

Subject
xf:duplicate emulation






Hi all,

Is there any workaround to emulate "duplicate" with XForms1.0 only (e.g. 
XForms firefox extension)?
Seems like in FormsPlayer (which is more progressive :) even a simple 
"setvalue" action will effect like "duplicate" (or not?), but now I'm 
gonna make it work on FireFox too and just can't figure out how to:
1. Construct SOAP-message instance from parts of another ones, since in 
XForms1.0 "setvalue" takes just string value of node to set.
2. Reset instance with initial structure from SOAP-template instance
for kind of XForms_WebService_GUI form?



--
Alexander Anokhin
AVTOVAZ JSC
email: ava@vaz.ru
icq: 123275798

Received on Monday, 12 December 2005 23:41:35 UTC