Assign variable
Anatomy
<assign var="var" var_source="var" key="(no key)" key_source="(no key)"/>
Description: ASSIGN assignes the value of a source variable to a target variable.
These three statements are semantically equivalent:
These three statements are semantically equivalent:
Attributes
| Name | Type | Description | Defined By |
|---|---|---|---|
| var | var | Target variable name | assign |
| var_source | var | Source variable name | assign |
| key | string | Target key | assign |
| key_source | string | Source key | assign |
Results:
| Binding | Type | Predicate |
|---|---|---|
| var | no-result-propagation |
Examples
Example
<set var="name1">iXML</set>
<assign var="name2" var_source="name1"/>
<output>$name2</output>
<!-- iXML -->