Changes for page 3. Variables
Last modified by Outhman Moustaghfir on 2024/01/23 13:58
Change comment:
Update document after refactoring.
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. omoustaghfir1 +XWiki.achmiti - Content
-
... ... @@ -68,6 +68,7 @@ 68 68 1**. **iXEnv**: used especially when the developper wants to switch the environment and use another scenario in another environment. It is a variable that precise the name of the new environment 69 69 1**. [[image:1649942613906-103.png]] 70 70 71 + 71 71 (% class="wikigeneratedid" id="H" %) 72 72 When you change the environment, make sure to verify that the variable iXSwitchEnv has the value true. 73 73 ... ... @@ -80,17 +80,10 @@ 80 80 81 81 82 82 {{code language="XML"}} 83 -<xsl:value-of select=" ixf:SetVar('newVar', 'var Number 1' ,'false')"></xsl:value-of>84 +<xsl:value-of select=" ixf:SetVar('newVar', 'var Number 1')"></xsl:value-of> 84 84 85 85 {{/code}} 86 86 87 -=== Explanation: === 88 - 89 -* ixf:SetVar: Presumably a custom function or extension function that sets a variable. 90 -* 'newVar': The name of the variable being created. 91 -* 'var Number 1': The value assigned to the variable. 92 -* 'false': The third argument determining whether the variable is global (true) or local (false). if the argument equals true so this means we can get the variable from the parent scenario. 93 - 94 94 The call of this new variable in the scenario is similar to previous system variables: **${newVar}.** 95 95 96 96 To get 'newVar' inside an XSL file :