Wiki source code of GetXmlVar
Last modified by Outhman Moustaghfir on 2024/06/20 12:25
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = Introduction = | ||
2 | |||
3 | Retrieves the value of an xml variable stored in the list. | ||
4 | |||
5 | = Parameters = | ||
6 | |||
7 | * **"Variable Name":** The name of the variable whose value you want to retrieve (Mandatory). | ||
8 | |||
9 | = Uses = | ||
10 | |||
11 | {{code language="XML"}} | ||
12 | <TEST><xsl:copy-of select="ixf:GetXmlVar('variableName')"></xsl:value-of></TEST> | ||
13 | {{/code}} | ||
14 | |||
15 | = Note: = | ||
16 | |||
17 | To retrieve the value of a variable with XML content, you need to use copy-of instead of value-of. | ||
18 | |||
19 | = Return: = | ||
20 | |||
21 | The function returns the value of the searched variable. | ||
22 | |||
23 | = Exemple: = | ||
24 | |||
25 | to retrieve the value of a variable with xml as value | ||
26 | |||
27 | [[image:1718878893254-172.png]] | ||
28 | |||
29 | |||
30 | The result should look like this: | ||
31 | |||
32 | [[image:1718878929183-790.png]] |