-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathEDISchema-v4.xsd
906 lines (831 loc) · 31.6 KB
/
EDISchema-v4.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2020 xlate.io LLC, http://www.xlate.io
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy
of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.
-->
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xlate.io/EDISchema/v4" xmlns:tns="http://xlate.io/EDISchema/v4"
elementFormDefault="qualified">
<!-- Simple Types -->
<simpleType name="nameType">
<restriction base="ID">
<pattern value="[A-Z][A-Z0-9]+"/>
</restriction>
</simpleType>
<simpleType name="useType">
<restriction base="string">
<enumeration value="required"/>
<enumeration value="optional"/>
<enumeration value="prohibited"/>
</restriction>
</simpleType>
<simpleType name="syntaxType">
<restriction base="string">
<enumeration value="single">
<annotation>
<documentation>One and only one</documentation>
</annotation>
</enumeration>
<enumeration value="paired">
<annotation>
<documentation>All or none</documentation>
</annotation>
</enumeration>
<enumeration value="required">
<annotation>
<documentation>One or more</documentation>
</annotation>
</enumeration>
<enumeration value="exclusion">
<annotation>
<documentation>One or none</documentation>
</annotation>
</enumeration>
<enumeration value="conditional">
<annotation>
<documentation>If first, then all</documentation>
</annotation>
</enumeration>
<enumeration value="list">
<annotation>
<documentation>If first, then at least one more</documentation>
</annotation>
</enumeration>
<enumeration value="firstonly">
<annotation>
<documentation>If first, then none of the others</documentation>
</annotation>
</enumeration>
</restriction>
</simpleType>
<simpleType name="elementBaseType">
<restriction base="string">
<enumeration value="binary"/>
<enumeration value="date"/>
<enumeration value="decimal"/>
<enumeration value="identifier"/>
<enumeration value="numeric"/>
<enumeration value="string"/>
<enumeration value="time"/>
</restriction>
</simpleType>
<simpleType name="controlCountType">
<restriction base="string">
<enumeration value="none"/>
<enumeration value="controls"/>
<enumeration value="segments"/>
</restriction>
</simpleType>
<simpleType name="elementPositionType">
<restriction base="decimal">
<minInclusive value="1"/>
<maxInclusive value="99.99"/>
<pattern value="[0-9]+(\.[0-9]{1,2}){0,1}"></pattern>
</restriction>
</simpleType>
<simpleType name="discriminatorType">
<restriction base="tns:elementPositionType" />
</simpleType>
<simpleType name="positionType">
<restriction base="nonNegativeInteger">
<minInclusive value="1"/>
</restriction>
</simpleType>
<!-- Complex Types -->
<complexType name="baseType" abstract="true">
<sequence>
<element ref="tns:description" minOccurs="0" maxOccurs="1"/>
</sequence>
<attribute name="title" type="string" use="optional"/>
</complexType>
<complexType name="anyElementType">
<complexContent>
<extension base="tns:baseType">
<attribute name="minOccurs" type="nonNegativeInteger" default="0">
<annotation>
<documentation>The minimum number of times an undefined element may occur at the declared location in the EDI structure.</documentation>
</annotation>
</attribute>
<attribute name="maxOccurs" type="nonNegativeInteger" default="1">
<annotation>
<documentation>The maximum number of times an undefined element may occur at the declared location in the EDI structure.</documentation>
</annotation>
</attribute>
</extension>
</complexContent>
</complexType>
<complexType name="controlType" abstract="true">
<complexContent>
<extension base="tns:baseType">
<attribute name="header" type="NCName" use="required">
<annotation>
<documentation>The name of the header segment for the control structure type</documentation>
</annotation>
</attribute>
<attribute name="trailer" type="NCName" use="required">
<annotation>
<documentation>The name of the trailer segment for the control structure type</documentation>
</annotation>
</attribute>
<attribute name="headerRefPosition" type="tns:elementPositionType">
<annotation>
<documentation>
The element position in the header segment used as a control
reference/number for the interchange, group, or transaction.
Used together with attribute trailerRefPosition to ensure matching
values.
</documentation>
</annotation>
</attribute>
<attribute name="trailerRefPosition" type="tns:elementPositionType">
<annotation>
<documentation>
The element position in the trailer segment used as a control
reference/number for the interchange, group, or transaction. The value
received in the position identified by this attribute will be validated
to match the value identified by the headerRefPosition in the preceding
header segment.
Used together with attribute headerRefPosition to ensure matching
values.
</documentation>
</annotation>
</attribute>
<attribute name="trailerCountPosition" type="tns:elementPositionType">
<annotation>
<documentation>
The element position in the trailer segment used as a control
count for the interchange, group, or transaction.
When used, attribute countType must also be specified.
</documentation>
</annotation>
</attribute>
<attribute name="countType" type="tns:controlCountType" default="none">
<annotation>
<documentation>
The type of items being counted by the element identified by the
trailerCountPosition element.
When used, attribute trailerCountPosition must also be specified.
</documentation>
</annotation>
</attribute>
</extension>
</complexContent>
</complexType>
<complexType name="transactionControlType">
<complexContent>
<extension base="tns:controlType">
<attribute name="use" type="tns:useType" default="optional"/>
</extension>
</complexContent>
</complexType>
<complexType name="groupControlType">
<complexContent>
<extension base="tns:controlType">
<sequence>
<element name="transaction" type="tns:transactionControlType" minOccurs="0"/>
</sequence>
<attribute name="use" type="tns:useType" default="optional"/>
</extension>
</complexContent>
</complexType>
<attributeGroup name="referenceAttributeGroup">
<attribute name="type" type="NCName">
<annotation>
<documentation>
The name of the target type being referenced.
</documentation>
</annotation>
</attribute>
<attributeGroup ref="tns:occursAttributeGroup"/>
</attributeGroup>
<attributeGroup name="lengthAttributeGroup">
<attribute name="minLength" type="nonNegativeInteger" default="1">
<annotation>
<documentation>
The minimum length allowed for an element value to be valid.
</documentation>
</annotation>
</attribute>
<attribute name="maxLength" type="nonNegativeInteger" default="1">
<annotation>
<documentation>
The maximum length allowed for an element value to be valid.
</documentation>
</annotation>
</attribute>
</attributeGroup>
<attributeGroup name="occursAttributeGroup">
<attribute name="minOccurs" type="nonNegativeInteger" default="0">
<annotation>
<documentation>
The minimum number of times a type may occur at the declared location
in the EDI structure.
</documentation>
</annotation>
</attribute>
<attribute name="maxOccurs" type="nonNegativeInteger" default="1">
<annotation>
<documentation>
The maximum number of times a type may occur at the declared location
in the EDI structure.
</documentation>
</annotation>
</attribute>
</attributeGroup>
<attributeGroup name="versionAttributeGroup">
<attribute name="minVersion" type="token">
<annotation>
<documentation>
The minimum transaction version this schema version applies to.
</documentation>
</annotation>
</attribute>
<attribute name="maxVersion" type="token">
<annotation>
<documentation>
The maximum transaction version this schema version applies to.
</documentation>
</annotation>
</attribute>
</attributeGroup>
<attributeGroup name="implementationAttributeGroup">
<attribute name="minOccurs" type="nonNegativeInteger">
<annotation>
<documentation>
The minimum number of times a type may occur at the declared location
in the EDI structure.
</documentation>
</annotation>
</attribute>
<attribute name="maxOccurs" type="nonNegativeInteger">
<annotation>
<documentation>
The maximum number of times a type may occur at the declared location
in the EDI structure.
</documentation>
</annotation>
</attribute>
</attributeGroup>
<!-- Element Types -->
<complexType name="elementStandard">
<complexContent>
<extension base="tns:baseType">
<sequence>
<element name="version" minOccurs="0" maxOccurs="unbounded">
<complexType>
<attributeGroup ref="tns:versionAttributeGroup"/>
<attributeGroup ref="tns:occursAttributeGroup"/>
</complexType>
</element>
</sequence>
<attributeGroup ref="tns:referenceAttributeGroup"/>
</extension>
</complexContent>
</complexType>
<complexType name="elementImpl">
<complexContent>
<extension base="tns:baseType">
<sequence>
<element ref="tns:enumeration" minOccurs="0"/>
</sequence>
<attribute name="position" type="tns:positionType" use="required"/>
<attributeGroup ref="tns:implementationAttributeGroup"/>
</extension>
</complexContent>
</complexType>
<!-- Composite Types -->
<complexType name="compositeStandard">
<complexContent>
<extension base="tns:baseType">
<sequence>
<element name="version" minOccurs="0" maxOccurs="unbounded">
<complexType>
<attributeGroup ref="tns:versionAttributeGroup"/>
<attributeGroup ref="tns:occursAttributeGroup"/>
</complexType>
</element>
</sequence>
<attributeGroup ref="tns:referenceAttributeGroup"/>
</extension>
</complexContent>
</complexType>
<complexType name="compositeImpl">
<complexContent>
<extension base="tns:baseType">
<sequence>
<element name="sequence" minOccurs="0">
<annotation>
<documentation>
The ordered elements for a composite element implementation.
</documentation>
</annotation>
<complexType>
<sequence>
<element name="element" type="tns:elementImpl" minOccurs="1" maxOccurs="unbounded"/>
</sequence>
</complexType>
</element>
</sequence>
<attribute name="position" type="tns:positionType" use="required"/>
<attributeGroup ref="tns:implementationAttributeGroup"/>
</extension>
</complexContent>
</complexType>
<!-- Segment Types -->
<complexType name="segmentStandard">
<complexContent>
<extension base="tns:baseType">
<attributeGroup ref="tns:referenceAttributeGroup"/>
</extension>
</complexContent>
</complexType>
<complexType name="segmentImpl">
<complexContent>
<extension base="tns:baseType">
<sequence>
<element name="sequence" minOccurs="0">
<annotation>
<documentation>
The ordered elements and components for a segment implementation.
</documentation>
</annotation>
<complexType>
<sequence>
<choice minOccurs="0" maxOccurs="unbounded">
<element name="element" type="tns:elementImpl"/>
<element name="composite" type="tns:compositeImpl"/>
</choice>
</sequence>
</complexType>
</element>
</sequence>
<attribute name="type" type="NCName" use="required">
<annotation>
<documentation>
The name of the standard segment used at this position in the implementation.
Must be a valid segment name that occurs in the same
standard loop.
</documentation>
</annotation>
</attribute>
<attribute name="code" type="NMTOKEN" use="optional">
<annotation>
<documentation>
Code used to identify a segment within a loop. May be useful when occurrences of a
standard segment contain distinct information.
</documentation>
</annotation>
</attribute>
<attributeGroup ref="tns:implementationAttributeGroup"/>
<attribute name="discriminator" type="tns:discriminatorType" use="optional">
<annotation>
<documentation>
The element position in the segment used to identify an occurrence
of a standard segment from other implementation occurrences. The
element identified by the position given in this attribute must also specify an
enumeration of values used only by this implementation and not used
by any other implementations of the standard segment in the same implementation loop.
</documentation>
</annotation>
</attribute>
</extension>
</complexContent>
</complexType>
<!-- Loop Types -->
<complexType name="loopBase" abstract="true">
<complexContent>
<extension base="tns:baseType">
<attribute name="minOccurs" type="nonNegativeInteger" default="0">
<annotation>
<documentation>
The minimum number of times a loop may repeat. A value of 0 (zero)
indicates that the loop is optional.
When used in a loop defined
within an implementation,
the value may not be less than the value set on the standard loop referenced
by the implementation loop's 'type'
attribute.
</documentation>
</annotation>
</attribute>
<attribute name="maxOccurs" type="nonNegativeInteger" default="1">
<annotation>
<documentation>
The maximum number of times a loop may repeat.
When used in a loop defined within an implementation, the value
may not be greater than
the value set on the standard loop referenced
by the implementation loop's 'type' attribute.
</documentation>
</annotation>
</attribute>
</extension>
</complexContent>
</complexType>
<complexType name="loopStandard">
<complexContent>
<extension base="tns:loopBase">
<sequence>
<element name="sequence">
<annotation>
<documentation>
The ordered list of segments and sub-loops contained in this
loop.
</documentation>
</annotation>
<complexType>
<choice maxOccurs="unbounded">
<element name="segment" type="tns:segmentStandard"/>
<element name="loop" type="tns:loopStandard" minOccurs="0"/>
</choice>
</complexType>
</element>
<element ref="tns:syntax" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="code" type="NMTOKEN" use="required">
<annotation>
<documentation>
Code used to uniquely identify a loop within the transaction/message.
</documentation>
</annotation>
</attribute>
<attribute name="levelIdPosition" type="tns:elementPositionType">
<annotation>
<documentation>
The element position in the loop's first segment used to identify a
hierarchical level in the context of hierarchical nested loops.
When used, attribute parentId must also be specified.
</documentation>
</annotation>
</attribute>
<attribute name="parentIdPosition" type="tns:elementPositionType">
<annotation>
<documentation>
The element position in the loop's first segment used to identify a
hierarchical parent level in the context of hierarchical nested loops.
When used, attribute levelId must also be specified.
</documentation>
</annotation>
</attribute>
</extension>
</complexContent>
</complexType>
<complexType name="loopImpl">
<complexContent>
<extension base="tns:loopBase">
<sequence>
<element name="sequence" minOccurs="0">
<annotation>
<documentation>
The ordered list of segments and sub-loops contained in this
loop.
</documentation>
</annotation>
<complexType>
<choice maxOccurs="unbounded">
<element name="segment" type="tns:segmentImpl"/>
<element name="loop" type="tns:loopImpl" minOccurs="0"/>
</choice>
</complexType>
</element>
</sequence>
<attribute name="type" type="NMTOKEN" use="required">
<annotation>
<documentation>
The identifier (code attribute) of the standard loop this loop
implements.
</documentation>
</annotation>
</attribute>
<attribute name="code" type="NMTOKEN" use="required">
<annotation>
<documentation>
Code used to uniquely identify a loop implementation within the
transaction/message implementation.
</documentation>
</annotation>
</attribute>
<attribute name="discriminator" type="tns:discriminatorType">
<annotation>
<documentation>
The element position in the loop's first segment used to identify an
implementation of a standard loop from other implementations. The
element identified by the position given in this attribute must also specify an
enumeration of values used only by this implementation and not used
by any other implementations of the standard loop at the same level of the
transaction.
</documentation>
</annotation>
</attribute>
</extension>
</complexContent>
</complexType>
<!-- Elements -->
<element name="schema">
<complexType>
<sequence>
<element ref="tns:include" minOccurs="0" maxOccurs="unbounded">
<annotation>
<documentation>Optional reference to another schema file to include.</documentation>
</annotation>
</element>
<choice minOccurs="0">
<element ref="tns:interchange"/>
<sequence>
<annotation>
<documentation>The transaction standard and optional implementation details</documentation>
</annotation>
<element ref="tns:transaction"/>
<element ref="tns:implementation" minOccurs="0"/>
</sequence>
<sequence>
<annotation>
<documentation>
The transaction implementation details. When
implementation is used without an associated
transaction element, the transaction must
have been declared in an 'include'd schema.
</documentation>
</annotation>
<element ref="tns:implementation"/>
</sequence>
</choice>
<choice id="typeChoice" maxOccurs="unbounded">
<element ref="tns:elementType" maxOccurs="unbounded"/>
<element ref="tns:compositeType" minOccurs="0" maxOccurs="unbounded"/>
<element ref="tns:segmentType" maxOccurs="unbounded"/>
</choice>
</sequence>
</complexType>
</element>
<element name="include">
<complexType>
<attribute name="schemaLocation" type="anyURI" use="required"/>
</complexType>
</element>
<element name="interchange">
<complexType>
<complexContent>
<extension base="tns:controlType">
<sequence>
<element name="sequence">
<complexType>
<sequence>
<element name="segment" type="tns:segmentStandard" minOccurs="0" maxOccurs="unbounded"/>
<element name="group" type="tns:groupControlType" minOccurs="0"/>
<element name="transaction" type="tns:transactionControlType" minOccurs="0"/>
</sequence>
</complexType>
</element>
<element ref="tns:syntax" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
</element>
<element name="transaction">
<complexType>
<complexContent>
<extension base="tns:baseType">
<sequence>
<element name="sequence">
<annotation>
<documentation>
The ordered list of segments and sub-loops contained at the
top-level of this transaction.
</documentation>
</annotation>
<complexType>
<choice maxOccurs="unbounded">
<element name="segment" type="tns:segmentStandard"/>
<element name="loop" type="tns:loopStandard" minOccurs="0"/>
</choice>
</complexType>
</element>
<element ref="tns:syntax" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
</element>
<element name="implementation">
<complexType>
<complexContent>
<extension base="tns:baseType">
<sequence>
<element name="sequence">
<annotation>
<documentation>
The ordered list of segments and sub-loops contained at the
top-level of a transaction implementation.
</documentation>
</annotation>
<complexType>
<choice maxOccurs="unbounded">
<element name="segment" type="tns:segmentImpl"/>
<element name="loop" type="tns:loopImpl" minOccurs="0"/>
</choice>
</complexType>
</element>
</sequence>
</extension>
</complexContent>
</complexType>
</element>
<element name="elementType">
<complexType>
<complexContent>
<extension base="tns:baseType">
<sequence>
<element ref="tns:enumeration" minOccurs="0"/>
<element name="version" minOccurs="0" maxOccurs="unbounded">
<complexType>
<sequence>
<element ref="tns:enumeration" minOccurs="0"/>
</sequence>
<attributeGroup ref="tns:versionAttributeGroup"/>
<attributeGroup ref="tns:lengthAttributeGroup"/>
</complexType>
</element>
</sequence>
<attribute name="name" type="tns:nameType" use="required">
<annotation>
<documentation>
Code used to uniquely identify an element definition to be referenced by
compositeType and segmentType elements within this schema.
This value will be returned by an EDIStreamReader's `getReferenceCode` method
when no `code` attribute has been specified.
</documentation>
</annotation>
</attribute>
<attribute name="code" type="NMTOKEN" use="optional">
<annotation>
<documentation>
Code used to identify an element externally. This value will
be returned by an EDIStreamReader's `getReferenceCode` method.
</documentation>
</annotation>
</attribute>
<attribute name="number">
<annotation>
<documentation>*DEPRECATED* Use the `code` attribute to provide an element reference number.</documentation>
</annotation>
<simpleType>
<restriction base="nonNegativeInteger">
<minInclusive value="1"/>
<maxInclusive value="9999"/>
</restriction>
</simpleType>
</attribute>
<attribute name="base" type="tns:elementBaseType" use="optional" default="string">
<annotation>
<documentation>
Identifies the element data type
</documentation>
</annotation>
</attribute>
<attribute name="scale" use="optional" type="nonNegativeInteger" default="0">
<annotation>
<documentation>
For numeric base types only, scale is the number of digits to the right of an implied decimal point. When not specified, the
default value of zero is used (i.e. the data type is integer)
</documentation>
</annotation>
</attribute>
<attributeGroup ref="tns:lengthAttributeGroup"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="description" type="string"/>
<element name="enumeration">
<complexType>
<sequence>
<element name="value" maxOccurs="unbounded">
<complexType>
<simpleContent>
<extension base="token">
<attribute name="title" type="string"/>
</extension>
</simpleContent>
</complexType>
</element>
</sequence>
</complexType>
</element>
<element name="compositeType">
<complexType>
<complexContent>
<extension base="tns:baseType">
<sequence>
<element name="sequence">
<annotation>
<documentation>
The ordered elements and syntax restrictions for a composite element.
</documentation>
</annotation>
<complexType>
<choice minOccurs="1" maxOccurs="unbounded">
<element name="element" type="tns:elementStandard" minOccurs="1" maxOccurs="unbounded"/>
<element name="any" type="tns:anyElementType">
<annotation>
<documentation>
May be used to declare that any component element may occur in this composite type up
to the maximum number given by
maxOccurs. The value of minOccurs defines the number of
undefined component elements that MUST occur in the composite.
</documentation>
</annotation>
</element>
</choice>
</complexType>
</element>
<element ref="tns:syntax" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="name" type="tns:nameType" use="required">
<annotation>
<documentation>
Code used to uniquely identify a composite element definition to be referenced by
segmentType elements within this schema. This
value will be returned by an EDIStreamReader's `getReferenceCode` method.
</documentation>
</annotation>
</attribute>
</extension>
</complexContent>
</complexType>
</element>
<element name="segmentType">
<annotation>
<documentation>Used to declare a segment</documentation>
</annotation>
<complexType>
<complexContent>
<extension base="tns:baseType">
<sequence>
<element name="sequence" minOccurs="0">
<annotation>
<documentation>
The ordered elements, components, and syntax restrictions for a segment.
</documentation>
</annotation>
<complexType>
<choice minOccurs="0" maxOccurs="unbounded">
<element name="element" type="tns:elementStandard">
<annotation>
<documentation>
Defines a reference to a standard element definition.
</documentation>
</annotation>
</element>
<element name="composite" type="tns:compositeStandard"/>
<element name="any" type="tns:anyElementType">
<annotation>
<documentation>
May be used to declare that any element or composite may occur in this segment type up
to the maximum number given by
maxOccurs. The value of minOccurs defines the number of
undefined elements that MUST occur in the segment at this position. Elements that
repeat
may occur up to 99 times and are not affected by the value of the maxOccurs attribute.
</documentation>
</annotation>
</element>
</choice>
</complexType>
</element>
<element ref="tns:syntax" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="name" use="required">
<annotation>
<documentation>
Name of the segment. Also referred to as the segment's tag. This is the two or three
character string used to identify a segment.
</documentation>
</annotation>
<simpleType>
<restriction base="tns:nameType">
<maxLength value="3"/>
</restriction>
</simpleType>
</attribute>
</extension>
</complexContent>
</complexType>
</element>
<element name="syntax">
<complexType>
<sequence>
<element name="position" type="tns:positionType" maxOccurs="unbounded"/>
</sequence>
<attribute name="type" type="tns:syntaxType"/>
</complexType>
</element>
</schema>