Changes for page SetFile
Last modified by Outhman Moustaghfir on 2024/11/28 14:50
edited by Outhman Moustaghfir
on 2024/11/28 14:50
on 2024/11/28 14:50
edited by Outhman Moustaghfir
on 2024/09/24 16:54
on 2024/09/24 16:54
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,3 +1,7 @@ 1 + 2 + 3 +=== SetFile Method Documentation === 4 + 1 1 ==== Purpose: ==== 2 2 3 3 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. ... ... @@ -8,16 +8,6 @@ 8 8 * It writes the XML content to a file. 9 9 * The file is saved in the database, and its file ID is returned for future reference. 10 10 11 -==== optional parameters: ==== 12 - 13 -* **fileName** (optional): Specifies a custom name for the saved file. If not provided (null or empty), the file will be saved with its unique file ID as the name. 14 -* **folder** (optional): Defines the folder where the file will be stored (e.g., "work", "out", etc.). If not specified (null or empty), the file will be placed in the default "work" folder. 15 -* **synchrone **(optional): Defaults to false. Determines whether the file is set synchronously or asynchronously 16 - 17 -{{code language="XML"}} 18 -SetFile(xmlContent,fileName,folder) 19 -{{/code}} 20 - 21 21 ==== Usage Example: ==== 22 22 23 23 Consider the following XSLT transformation that calls the SetFile method: ... ... @@ -31,7 +31,7 @@ 31 31 xmlns:fn="http://www.w3.org/2005/xpath-functions" 32 32 version="2.0"> 33 33 34 - <xsl:output method="xml" indent="yes" ></xsl:output>28 + <xsl:output method="xml" indent="yes"/> 35 35 36 36 <!-- Start of the Transformation --> 37 37 <xsl:template match="/"> ... ... @@ -64,12 +64,12 @@ 64 64 </xsl:variable> 65 65 66 66 <!-- Call the SetFile method and pass the XML content --> 67 - <xsl:variable name="fileId" select="ixf:SetFile($xmlContent)" ></xsl:variable>61 + <xsl:variable name="fileId" select="ixf:SetFile($xmlContent)"/> 68 68 69 69 <!-- Output the ID of the saved file --> 70 70 <returnedFiles> 71 71 <fileId> 72 - <xsl:value-of select="$fileId" ></xsl:value-of>66 + <xsl:value-of select="$fileId"/> 73 73 </fileId> 74 74 </returnedFiles> 75 75 </iXDOC> ... ... @@ -83,4 +83,4 @@ 83 83 84 84 The method will return the unique ID of the file saved in the database, which can be accessed as shown in the XSLT example. 85 85 86 -==== ==== 80 +==== ====