- From: T. V. Raman <tvraman@almaden.ibm.com>
- Date: Mon, 14 Jan 2002 14:36:44 -0800
- To: werner.donne@re.be
- Cc: www-forms@w3.org
The prototypical instance comes from element <instance>...</instance> in the authored (static) version of the document. Inserts and deletes happen against the run-time instance data >>>>> "Werner" == Werner Donné <werner.donne@re.be> writes: Werner> Hi, An insert action may occur on a node-set Werner> which is allowed to be empty. In order to have Werner> something to copy to the instance in that case, Werner> the instance element should contain some element Werner> in which the source for the copy can be Werner> found. This can't be the last element of the Werner> node-set we are going to insert in, because then Werner> the node-set would have to contain at least one Werner> element, which is not good because it is allowed Werner> to be empty. Werner> As a consequence the xforms:instance element Werner> must contain two elements: one that will be Werner> submitted and another in which initialisation Werner> elements reside. As an example: Werner> <model> <instance> <my:doc> <my:things> Werner> </my:things> </my:doc> <my:doc-init> <my:things> Werner> <my:thing>...</my:thing> </my:things> Werner> </my:doc-init> </instance> Werner> <submitinfo ref="my:doc" ... /> </model> Werner> <repeat id="things" Werner> nodeset="my:doc/my:things/my:thing"> ... Werner> </repeat> Werner> <button> <action ev:event="ev:activate"> <insert Werner> nodeset="my:doc-init/my:things/my:thing" Werner> at="cursor('things')" position="after"/> Werner> </action> </button> Werner> I suggest an alternative which consists of Werner> allowing to specify the element to be copied to Werner> the instance in the insert element itself. The Werner> content of the insert element would be an Werner> alternative to the nodeset attribute. Werner> Regards, Werner> Werner. -- Werner Donné -- Re BVBA Werner> Engelbeekstraat 8 Papenhof 15 B-3300 Tienen Werner> B-3583 Beringen tel: (+32) 486 425803 e-mail: Werner> werner.donne@re.be -- Best Regards, --raman ------------------------------------------------------------ T. V. Raman: PhD (Cornell University) IBM Research: Human Language Technologies Conversational And Multimodal WWW Standards Phone: 1 (408) 927 2608 Fax: 1 (408) 927 3012 Email: tvraman@us.ibm.com WWW: http://www.cs.cornell.edu/home/raman PGP: http://emacspeak.sf.net/raman.asc Snail: IBM Almaden Research Center, 650 Harry Road San Jose 95120
Received on Monday, 14 January 2002 17:37:28 UTC