Re: ACTION-2245: Spec up <replace/>

First draft.

The replace element

This action replaces the content of an instance data node, a complement of  
setvalue.

Common Attributes: Common, Events, Action Common, Single Item Binding

Special Attribute:

with
     Required expression giving a node whose content will replace that of  
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 is readonly,  
the action has no effect.

The with attribute is evaluated in the Element Evaluation Context and the  
first-item rule is applied, to give the source node; if the result is not  
an instance data node then the action has no effect.

The content of the target node is replaced with the content of the source  
node.


Example

<replace ref="address" with="contact/address[@type='home']"/>

Received on Tuesday, 23 April 2019 14:24:46 UTC