<
From version < 8.1 >
edited by Outhman Moustaghfir
on 2024/08/09 17:33
To version < 6.1 >
edited by Outhman Moustaghfir
on 2024/08/08 12:38
>
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 - <SplitBy mode="" headers="" footers="" excluded="" included="" endLine="" position ="" size="" optionChar="" ></SplitBy>
24 + <Split400 mode="" headers="" footers="" ignoreItems="" identifiers="" lineseparator="" position ="" size=""></Split400>
25 25  </ixDOC>
26 26  
27 27  {{/code}}
... ... @@ -32,15 +32,11 @@
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 46  === Input File Example : ===
... ... @@ -275,9 +275,9 @@
275 275  {{/code}}
276 276  
277 277  
278 -==== Example 1: without specifying include attribute ====
274 +==== Example 1: without specifying identifiers ====
279 279  
280 -when we don't use include attribute. it means for each output file we are going to have headers and footers and also for the include we will defined them by position and size so for each line at a specific position and with a size this is the include .
276 +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  {{{
283 283   }}}
... ... @@ -289,7 +289,7 @@
289 289   xmlns:ix="localFunction"
290 290   xmlns:fn="http://www.w3.org/2005/xpath-functions">
291 291  
292 - <SplitBy mode="line" headers="UNA;UNB" footers="UNZ1;UNZ" excluded="QTY" include ="" endLine="'" position ="25" size="9"></SplitBy>
288 + <Split400 mode="per_identifier" headers="UNA;UNB" footers="UNZ1;UNZ" ignoreItems="QTY" identifiers="" lineseparator="'" position ="25" size="9"></Split400>
293 293  </ixDOC>
294 294  
295 295  {{/code}}
... ... @@ -315,13 +315,13 @@
315 315  
316 316  {{/code}}
317 317  
318 -== Example 2: with specifiying include attribute ==
314 +== Example 2: with specifiying identifiers ==
319 319  
320 320  we don't need to use position and size.
321 321  
322 -== 2. Mode: message: ==
318 +== 2. Mode: per_bloc: ==
323 323  
324 -In **message** mode, the file is split into sections based on a specified include . Each output file begins with the start of an include and ends when another include is encountered.
320 +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 - <SplitBy mode="message" headers="UNA;UNB" footers="UNZ1;UNZ" excluded="QTY" include ="UNH" endLine="'"></SplitBy>
333 + <Split400 mode="Per_bloc" headers="UNA;UNB" footers="UNZ1;UNZ" ignoreItems="QTY" identifiers="UNH" lineseparator="'"></Split400>
338 338  </ixDOC>
339 339  
340 340  {{/code}}
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian