Changes for page SplitFile
Last modified by Outhman Moustaghfir on 2024/08/09 17:37
<
>
edited by Outhman Moustaghfir
on 2024/08/09 17:32
on 2024/08/09 17:32
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 - <Split Bymode="" headers="" footers="" excluded="" included=""endLine="" position ="" size=""optionChar="" ></SplitBy>24 + <Split400 mode="" headers="" footers="" ignoreItems="" identifiers="" lineseparator="" position ="" size=""/> 25 25 </ixDOC> 26 26 27 27 {{/code}} ... ... @@ -32,18 +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 -* ((( 37 -**optionChar : **Define the character used to separate lines in output file, default value is newLine char. 38 -))) 39 -* **included : :** Include specific lines from the output by defining them in the include attribute. 40 -* **excluded:** Exclude specific lines from the output by defining them in the exclude attribute. 41 -* **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. 42 42 43 -=== 1. Mode: line ===39 +=== 1. Mode: per_identifier === 44 44 45 45 46 -=== Input File Example : === 42 +=== Input File Example : === 47 47 48 48 49 49 {{code language="txt"}} ... ... @@ -275,10 +275,12 @@ 275 275 {{/code}} 276 276 277 277 278 -==== Example 1: without specifying include attribute====274 +==== Example 1: ==== 279 279 280 - whenwe don't use includeattribute. itmeans for each output fileweare goingtohave headers and footersand also for theinclude we will defined them bypositionand sizeso for each line ata specific position and with a sizethisis the include .276 +==== Example 2: without specifiying identifiers ==== 281 281 278 +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 . 279 + 282 282 {{{ 283 283 }}} 284 284 ... ... @@ -289,12 +289,12 @@ 289 289 xmlns:ix="localFunction" 290 290 xmlns:fn="http://www.w3.org/2005/xpath-functions"> 291 291 292 - <Split Bymode="line" headers="UNA;UNB" footers="UNZ1;UNZ" excluded="QTY" includeendLine="'" position ="25" size="9"></SplitBy>290 + <Split400 mode="per_identifier" headers="UNA;UNB" footers="UNZ1;UNZ" ignoreItems="QTY" identifiers="" lineseparator="'" position ="25" size="9"/> 293 293 </ixDOC> 294 294 295 295 {{/code}} 296 296 297 -== output files : == 295 +== output files : == 298 298 299 299 [[image:1723112876572-265.png]] 300 300 ... ... @@ -315,13 +315,13 @@ 315 315 316 316 {{/code}} 317 317 318 -== Example 2: with specifiying i ncludeattribute ==316 +== Example 2: with specifiying identifiers == 319 319 320 320 we don't need to use position and size. 321 321 322 -== 2. Mode: message: ==320 +== 2. Mode: per_bloc: == 323 323 324 -In ** message**ncludenclude and ends when another include is encountered.322 +In **per_bloc** mode, the file is split into sections based on a specified identifier. Each output file begins with the start of an identifier and ends when another identifier is encountered. 325 325 326 326 327 327 ==== Example ==== ... ... @@ -334,7 +334,7 @@ 334 334 xmlns:ix="localFunction" 335 335 xmlns:fn="http://www.w3.org/2005/xpath-functions"> 336 336 337 - <Split Bymode="message" headers="UNA;UNB" footers="UNZ1;UNZ" excluded="QTY" includeendLine="'"></SplitBy>335 + <Split400 mode="Per_bloc" headers="UNA;UNB" footers="UNZ1;UNZ" ignoreItems="QTY" identifiers="UNH" lineseparator="'"/> 338 338 </ixDOC> 339 339 340 340 {{/code}} ... ... @@ -383,4 +383,4 @@ 383 383 384 384 {{/code}} 385 385 386 -=== === 384 +=== ===