<
From version < 2.1 >
edited by Outhman Moustaghfir
on 2024/01/22 10:18
To version < 1.3 >
edited by Outhman Moustaghfir
on 2024/01/22 10:09
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -23,27 +23,8 @@
23 23  ==== Example 1: Setting a Local Variable ====
24 24  
25 25  {{code language="XML"}}
26 -<xsl:value-of select=" ixf:SetVar('local_variable', '42')"></xsl:value-of>
26 +<xsl:value-of select=" ixf:SetVar("local_variable", 42)"></xsl:value-of>
27 27  
28 28  {{/code}}
29 29  
30 -This sets a local variable named "local_variable" with a value of 42. Local variables are only accessible within the current scenario.
31 31  
32 -==== Example 2: Setting a Global Variable ====
33 -
34 -{{code language="XML"}}
35 -<xsl:value-of select=" ixf:SetVar('global_variable', 'hello', 'true')"></xsl:value-of>
36 -
37 -{{/code}}
38 -
39 -This sets a global variable named "global_variable" with the value "hello". Global variables can be accessed from the parent scenario.
40 -
41 -=== Retrieving Variable Values ===
42 -
43 -To retrieve the value of a variable, use the GetVar function:
44 -
45 -{{code language="XML"}}
46 -<xsl:value-of select="ixf:GetVar('variable_name')"></xsl:value-of>
47 -{{/code}}
48 -
49 -**variable_name**: The name of the variable whose value you want to retrieve.
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian