Wiki source code of Output Message Definition
Last modified by Eva Torken on 2024/03/19 14:26
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{container}}{{container layoutStyle="columns"}}((( | ||
2 | On this page you will find the information needed to complete the exercise. | ||
3 | |||
4 | Should you have any questions, please contact [[academy@emagiz.com>>mailto:academy@emagiz.com]]. | ||
5 | |||
6 | === 1. XSD === | ||
7 | |||
8 | Below, the information for the output message definition, needed for the exercise, is provided. | ||
9 | |||
10 | {{code language="xml"}}<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.dftrain.com/ns/dftrain/cdm/1.0/" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.dftrain.com/ns/dftrain/cdm/1.0/"> | ||
11 | <xs:complexType name="TransportOrder"> | ||
12 | <xs:sequence> | ||
13 | <xs:element name="id" type="nonEmptyString"/> | ||
14 | <xs:element name="description" type="nonEmptyString"/> | ||
15 | <xs:element maxOccurs="unbounded" name="Actor" type="Actor"/> | ||
16 | <xs:element maxOccurs="unbounded" name="Location" type="Location"/> | ||
17 | </xs:sequence> | ||
18 | </xs:complexType> | ||
19 | <xs:complexType name="Actor"> | ||
20 | <xs:sequence> | ||
21 | <xs:element name="id" type="nonEmptyString"/> | ||
22 | <xs:element name="name" type="nonEmptyString"/> | ||
23 | <xs:element name="role" type="nonEmptyString"/> | ||
24 | </xs:sequence> | ||
25 | </xs:complexType> | ||
26 | <xs:complexType name="Location"> | ||
27 | <xs:sequence> | ||
28 | <xs:element name="id" type="nonEmptyString"/> | ||
29 | <xs:element name="name" type="nonEmptyString"/> | ||
30 | <xs:element name="address" type="nonEmptyString"/> | ||
31 | </xs:sequence> | ||
32 | </xs:complexType> | ||
33 | <xs:simpleType name="nonEmptyString"> | ||
34 | <xs:restriction base="xs:string"> | ||
35 | <xs:minLength value="1"/> | ||
36 | </xs:restriction> | ||
37 | </xs:simpleType> | ||
38 | <xs:element name="TransportOrder" type="TransportOrder"/> | ||
39 | </xs:schema>{{/code}} | ||
40 | |||
41 | )))((({{toc/}}))){{/container}}{{/container}} |