W3C home > Mailing lists > Public > www-forms@w3.org > January 2002

insert action suggestion

From: Werner Donné <werner.donne@re.be>
Date: Tue, 08 Jan 2002 17:46:38 +0100
Message-ID: <3C3B226E.3030200@re.be>
To: www-forms@w3.org

An insert action may occur on a node-set which is allowed to be empty. In order to have
something to copy to the instance in that case, the instance element should contain some
element in which the source for the copy can be found. This can't be the last element of
the node-set we are going to insert in, because then the node-set would have to contain
at least one element, which is not good because it is allowed to be empty.

As a consequence the xforms:instance element must contain two elements: one that will
be submitted and another in which initialisation elements reside. As an example:



<repeat id="things" nodeset="my:doc/my:things/my:thing">

   <action ev:event="ev:activate">
     <insert nodeset="my:doc-init/my:things/my:thing"

I suggest an alternative which consists of allowing to specify the element to be copied
to the instance in the insert element itself. The content of the insert element would be
an alternative to the nodeset attribute.


Werner Donné  --  Re BVBA
Engelbeekstraat 8		Papenhof 15
B-3300 Tienen			B-3583 Beringen
tel: (+32) 486 425803	e-mail: werner.donne@re.be
Received on Tuesday, 8 January 2002 11:47:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:42 UTC