Global variable
Anatomy
<global var="var"/>
Description: Global declares a variable as global.
Attention:
Global variables have global scope.
Attributes
| Name | Type | Description | Defined By |
|---|---|---|---|
| var | var | Variable name | global |
Results:
| Binding | Type | Predicate |
|---|---|---|
| var | no-result-propagation |
Examples
Example
<global var="name"/>
<function var="outputName">
<output>$name</output>
</function>
<set var="name">iXML</set>
<call func="outputName"/>
<!-- iXML -->
Example
<global var="name"/>
<function var="setName">
<set var="name">iXML</set>
</function>
<call func="setName"/>
<output>$name</output>
<!-- iXML -->