Repository navigation
Define segment, element and composite types separately from transaction set schemas #552
|
Is it possible to define segment, element and composite types separately from transaction set schemas? For example, X12 transaction sets 810 and 850 both contain segment N1, so if I could define N1 separately I wouldn't have to include it in each transaction set schema. #233 seems to be related. |
Replies: 1 comment
|
@apoorva-sriv , yes you can include a general schema in the transaction schema. For example, this would be placed at the top of your schema before the <include schemaLocation="classpath:/x12/005010/837-types.xml" />Full example |
@apoorva-sriv , yes you can include a general schema in the transaction schema.
For example, this would be placed at the top of your schema before the
<transaction>or<implementation>. When using theclasspath:scheme, the file will be loaded using the Java class loader, so make sure it is available on the classpath. You can also usefile:for schemas not on the classpath.Full example
[1] https://github.com/xlate/staedi/blob/master/src/test/resources/x12/005010/837.xml