- From: Steven Pemberton <steven.pemberton@cwi.nl>
- Date: Wed, 08 May 2019 11:28:06 +0200
- To: public-xformsusers@w3.org, "XForms Users Community Group Issue Tracker" <sysbot+tracker@w3.org>
The replace element This action replaces an instance data node with another, a complement of setvalue. Common Attributes: Common, Events, Action Common, Single Item Binding Special Attribute: with Required expression giving an item which will replace the Single Item Binding. Content: EMPTY. The Single Item Binding is evaluated to give the target node; if it does not select an instance data node, or the instance data node or its parent is readonly, the action has no effect. The with attribute is evaluated in the Element Evaluation Context to give an item; the first-item rule is applied if necessary. If the item is an atomic value, a text node is created from it. If there is a node type conflict between the source node and the target (for example, trying to replace an attribute with an element), an xforms-action-error event with an error-type of replace-with is dispatched, and the action has no further effect. The target node is replaced with the source node (including its entire subtree), and the xforms-replace event is dispatched with appropriate context information to the instance containing the target node. Example <replace ref="address" with="contact/address[@type='home']"/> On Wed, 01 May 2019 15:13:56 +0200, XForms Users Community Group Issue Tracker <sysbot+tracker@w3.org> wrote: > ACTION-2254: Revise <replace/> > > https://www.w3.org/2005/06/tracker/xforms/actions/2254 > > Assigned to: Steven Pemberton > > > > > > >
Received on Wednesday, 8 May 2019 09:28:31 UTC