Changes for page SplitFile
Last modified by Outhman Moustaghfir on 2024/08/09 17:37
<
>
edited by Outhman Moustaghfir
on 2024/08/09 17:26
on 2024/08/09 17:26
edited by Outhman Moustaghfir
on 2024/08/08 12:35
on 2024/08/08 12:35
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4,7 +4,7 @@ 4 4 5 5 [[image:1723111201862-594.png]] 6 6 7 -The splitFile connector is a utility designed to split files based on specific configurations defined in an XML format. The connector supports two modes of operation: ** line** and **message**mode. Below is the functional documentation for each mode, including the expected format file, sample input file, and corresponding output files.7 +The splitFile connector is a utility designed to split files based on specific configurations defined in an XML format. The connector supports two modes of operation: **per_identifier** and **per_bloc **mode. Below is the functional documentation for each mode, including the expected format file, sample input file, and corresponding output files. 8 8 9 9 == Usage == 10 10 ... ... @@ -21,7 +21,7 @@ 21 21 xmlns:ix="localFunction" 22 22 xmlns:fn="http://www.w3.org/2005/xpath-functions"> 23 23 24 - <Split400 mode="" headers="" footers="" e xcluded="" included=""endLine="" position ="" size=""optionChar="" ></Split400>24 + <Split400 mode="" headers="" footers="" ignoreItems="" identifiers="" lineseparator="" position ="" size=""/> 25 25 </ixDOC> 26 26 27 27 {{/code}} ... ... @@ -32,15 +32,14 @@ 32 32 === Key Attributes: === 33 33 34 34 * **Headers and Footers:** Specify header and footer lines to be included in each output file. 35 -* **endLine:** Define the character used to separate lines in the file, default value is newLine char. 36 -* **included : :** Include specific lines from the output by defining them in the include attribute. 37 -* **excluded:** Exclude specific lines from the output by defining them in the exclude attribute. 38 -* **Position and Size:** Used to locate and define the include in the input file. 35 +* **Line Separator:** Define the character used to separate lines in the file. 36 +* **Ignored Items:** Exclude specific lines from the output by defining them in the ignoreItems attribute. 37 +* **Position and Size:** Used in **per_identifier** mode to locate and define the identifier in the input file. 39 39 40 40 === 1. Mode: per_identifier === 41 41 42 42 43 -=== Input File Example : === 42 +=== Input File Example : === 44 44 45 45 46 46 {{code language="txt"}} ... ... @@ -272,8 +272,10 @@ 272 272 {{/code}} 273 273 274 274 275 -==== Example 1: without specifying identifiers====274 +==== Example 1: ==== 276 276 276 +==== Example 2: without specifiying identifiers ==== 277 + 277 277 when we don't use identifiers . it means for each output file we are going to have headers and footers and also for the identifiers we will defined them by position and size so for each line at a specific position and with a size this is the identifier . 278 278 279 279 {{{ ... ... @@ -286,12 +286,12 @@ 286 286 xmlns:ix="localFunction" 287 287 xmlns:fn="http://www.w3.org/2005/xpath-functions"> 288 288 289 - <Split400 mode="per_identifier" headers="UNA;UNB" footers="UNZ1;UNZ" ignoreItems="QTY" identifiers="" lineseparator="'" position ="25" size="9" ></Split400>290 + <Split400 mode="per_identifier" headers="UNA;UNB" footers="UNZ1;UNZ" ignoreItems="QTY" identifiers="" lineseparator="'" position ="25" size="9"/> 290 290 </ixDOC> 291 291 292 292 {{/code}} 293 293 294 -== output files : == 295 +== output files : == 295 295 296 296 [[image:1723112876572-265.png]] 297 297 ... ... @@ -331,7 +331,7 @@ 331 331 xmlns:ix="localFunction" 332 332 xmlns:fn="http://www.w3.org/2005/xpath-functions"> 333 333 334 - <Split400 mode="Per_bloc" headers="UNA;UNB" footers="UNZ1;UNZ" ignoreItems="QTY" identifiers="UNH" lineseparator="'" ></Split400>335 + <Split400 mode="Per_bloc" headers="UNA;UNB" footers="UNZ1;UNZ" ignoreItems="QTY" identifiers="UNH" lineseparator="'"/> 335 335 </ixDOC> 336 336 337 337 {{/code}} ... ... @@ -380,4 +380,4 @@ 380 380 381 381 {{/code}} 382 382 383 -=== === 384 +=== ===