W3C home > Mailing lists > Public > public-xformsusers@w3.org > March 2019

Re: copy action

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Thu, 21 Mar 2019 14:25:50 -0700
Message-ID: <CAAc0PEU8XTYqdgu2D5hF+UGGcDP6KmGSsTYR3LY0ie+RH+zfNA@mail.gmail.com>
To: Steven Pemberton <steven.pemberton@cwi.nl>
Cc: XForms <public-xformsusers@w3.org>
> I am not against a `<replace>` action, in fact it is a pretty fundamental
> operation which I think we should have.
> But I am not sure that would have to mean "keep the element and replace
> its content". What if the `with` points to an element with a different name?
> Well, that is how setvalue works, so I thought it good to keep it
> consistent.

One could argue that `<setvalue>` removes the existing text node(s) and
adds new ones.

> But I might not have understood your suggestion clearly.
> I suggest that a `<replace>` action would in effect have to remove the
> existing element and replace it with another, but it would do so as an
> indivisible operation from the perspective of the user of the action.
> Sounds feasible.

Yes :)

Received on Thursday, 21 March 2019 21:26:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:37:51 UTC