Changes for page GetXmlVar
Last modified by Outhman Moustaghfir on 2024/06/20 12:25
edited by Outhman Moustaghfir
on 2024/06/20 12:16
on 2024/06/20 12:16
edited by Outhman Moustaghfir
on 2024/06/20 12:25
on 2024/06/20 12:25
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 2 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,4 +1,4 @@ 1 -= 1 += Introduction = 2 2 3 3 Retrieves the value of an xml variable stored in the list. 4 4 ... ... @@ -9,9 +9,24 @@ 9 9 = Uses = 10 10 11 11 {{code language="XML"}} 12 -<TEST><xsl: value-of select="ixf:GetXmlVar('variableName')"></xsl:value-of></TEST>12 +<TEST><xsl:copy-of select="ixf:GetXmlVar('variableName')"></xsl:value-of></TEST> 13 13 {{/code}} 14 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 + 15 15 = Return: = 16 16 17 17 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]]
- 1718878893254-172.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.omoustaghfir - Size
-
... ... @@ -1,0 +1,1 @@ 1 +28.3 KB - Content
- 1718878929183-790.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.omoustaghfir - Size
-
... ... @@ -1,0 +1,1 @@ 1 +22.2 KB - Content