copying XML fragment with xforms:setvalue or xforms input controls

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

copying XML fragment with xforms:setvalue or xforms input controls

Henrik Pettersen
All,

I keep running into this problem. I find myself often wanting to copy an xml fragment from one instance to another when a user takes an action (e.g. clicks a link). However, the only method that I have found is to create a template for the xml fragment and copy each element value explicitely. What I really want is the equivalent of an XSLT copy-of operation.

Is anyone experiencing the same problem? If so, what was your solution?

Thanks!

Sincerely,
Henrik Pettersen
Advanced Computation Laboratory
Cancer Research UK


--
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
Reply | Threaded
Open this post in threaded view
|

Re: copying XML fragment with xforms:setvalue or xforms input controls

Erik Bruchez
Administrator
Henrik,

Here again I think xforms:insert with @context and @origin would be your
friend!

-Erik

Henrik Pettersen wrote:

> All,
>
> I keep running into this problem. I find myself often wanting to copy an
> xml fragment from one instance to another when a user takes an action
> (e.g. clicks a link). However, the only method that I have found is to
> create a template for the xml fragment and copy each element value
> explicitely. What I really want is the equivalent of an XSLT copy-of
> operation.
>
> Is anyone experiencing the same problem? If so, what was your solution?
>
> Thanks!
>
> Sincerely,
> Henrik Pettersen
> Advanced Computation Laboratory
> Cancer Research UK
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
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