<
From version < 6.5 >
edited by Outhman Moustaghfir
on 2024/08/09 17:26
To version < 5.1 >
edited by Outhman Moustaghfir
on 2024/08/08 12:35
>
Change comment: There is no comment for this version

Summary

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="" excluded="" 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,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 43  === 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,8 +275,10 @@
275 275  {{/code}}
276 276  
277 277  
278 -==== Example 1: without specifying identifiers ====
274 +==== Example 1: ====
279 279  
276 +==== Example 2: without specifiying identifiers ====
277 +
280 280  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 .
281 281  
282 282  {{{
... ... @@ -289,12 +289,12 @@
289 289   xmlns:ix="localFunction"
290 290   xmlns:fn="http://www.w3.org/2005/xpath-functions">
291 291  
292 - <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"/>
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  
... ... @@ -334,7 +334,7 @@
334 334   xmlns:ix="localFunction"
335 335   xmlns:fn="http://www.w3.org/2005/xpath-functions">
336 336  
337 - <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="'"/>
338 338  </ixDOC>
339 339  
340 340  {{/code}}
... ... @@ -383,4 +383,4 @@
383 383  
384 384  {{/code}}
385 385  
386 -=== ===
384 +=== ===
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian