On 6/26/07, Waseem Quraishi <
[hidden email]> wrote:
> I've been struggling with this. I'm trying to copy a series of elements
> from one model to another. Here's an overview:
> [...]
If you want to copy a number of elements from one instance to another,
you can try using <xforms:insert>. For instance something like:
<xforms:insert context="instance('selected-group')"
origin="'instance('group-instance')/group[index('listGroups')]/*"/>
This assumes that the root element of the "selected-group" instance is
empty. If it is not, you might want to run an <xforms:delete> before
that:
<xforms:delete while="instance('selected-group')/*"
nodeset="instance('selected-group')/*"/>
This will delete all the elements inside the root element. Would this
work for you?
Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws