Wiki source code of GetXmlVar
Last modified by Outhman Moustaghfir on 2024/06/20 12:25
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
2.1 | 1 | = Introduction = |
![]() |
1.1 | 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"}} | ||
![]() |
2.1 | 12 | <TEST><xsl:copy-of select="ixf:GetXmlVar('variableName')"></xsl:value-of></TEST> |
![]() |
1.1 | 13 | {{/code}} |
14 | |||
![]() |
2.1 | 15 | = Note: = |
16 | |||
![]() |
6.1 | 17 | To retrieve the value of a variable with XML content, you need to use copy-of instead of value-of. |
![]() |
2.1 | 18 | |
![]() |
1.1 | 19 | = Return: = |
20 | |||
21 | The function returns the value of the searched variable. | ||
![]() |
6.1 | 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]] |