From version < 2.1 >
edited by Outhman Moustaghfir
on 2024/09/24 16:54
To version 1.1 >
edited by Outhman Moustaghfir
on 2024/09/24 16:54
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,5 +1,7 @@
1 1  
2 2  
3 +=== SetFile Method Documentation ===
4 +
3 3  ==== Purpose: ====
4 4  
5 5  The SetFile method is designed to store XML content in a database by saving it as a file and returning the file's unique identifier.
... ... @@ -23,7 +23,7 @@
23 23   xmlns:fn="http://www.w3.org/2005/xpath-functions"
24 24   version="2.0">
25 25  
26 - <xsl:output method="xml" indent="yes"></xsl:output>
28 + <xsl:output method="xml" indent="yes"/>
27 27  
28 28   <!-- Start of the Transformation -->
29 29   <xsl:template match="/">
... ... @@ -56,12 +56,12 @@
56 56   </xsl:variable>
57 57  
58 58   <!-- Call the SetFile method and pass the XML content -->
59 - <xsl:variable name="fileId" select="ixf:SetFile($xmlContent)"></xsl:variable>
61 + <xsl:variable name="fileId" select="ixf:SetFile($xmlContent)"/>
60 60  
61 61   <!-- Output the ID of the saved file -->
62 62   <returnedFiles>
63 63   <fileId>
64 - <xsl:value-of select="$fileId"></xsl:value-of>
66 + <xsl:value-of select="$fileId"/>
65 65   </fileId>
66 66   </returnedFiles>
67 67   </iXDOC>
... ... @@ -75,4 +75,4 @@
75 75  
76 76  The method will return the unique ID of the file saved in the database, which can be accessed as shown in the XSLT example.
77 77  
78 -==== ====
80 +==== ====
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian