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

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

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Tue, 23 Apr 2019 16:24:19 +0200
To: public-xformsusers@w3.org, "XForms Users Community Group Issue Tracker" <sysbot+tracker@w3.org>
Message-ID: <op.z0peatogsmjzpq@steven-xps>
First draft.

The replace element

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

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

Special Attribute:

     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  


<replace ref="address" with="contact/address[@type='home']"/>
Received on Tuesday, 23 April 2019 14:24:46 UTC

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