<fx-setvalue>

Description

Sets a value to a bound node. fx-setvalue always assigns a string value - if value evaluates to a node, its string value (textContent) is used, never the node itself. This preserves the identity (tag name, attributes, structure) of the bound node. To replace a node’s structure with another node wholesale, use fx-replace instead.

Attributes

NameDescription
refXPath reference pointing to the bound node
valueXPath expression to be set as value

Events

none

Examples