Sync with 5.4.2
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_example_org_elements_e.ttcn
1 /*******************************************************************************
2 * Copyright (c) 2000-2015 Ericsson Telecom AB
3 *
4 * XSD to TTCN-3 Translator version: CRL 113 200/5 R3B
5 *
6 * All rights reserved. This program and the accompanying materials
7 * are made available under the terms of the Eclipse Public License v1.0
8 * which accompanies this distribution, and is available at
9 * http://www.eclipse.org/legal/epl-v10.html
10 *******************************************************************************/
11 //
12 // File: www_example_org_elements_e.ttcn
13 // Description:
14 // References:
15 // Rev:
16 // Prodnr:
17 // Updated: Tue Dec 15 11:00:26 2014
18 // Contact: http://ttcn.ericsson.se
19 //
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - elements_e.xsd
23 // /* xml version = "1.0" encoding = "UTF-8" */
24 // /* targetnamespace = "www.example.org/elements" */
25 ////////////////////////////////////////////////////////////////////////////////
26 // Modification header(s):
27 //-----------------------------------------------------------------------------
28 // Modified by:
29 // Modification date:
30 // Description:
31 // Modification contact:
32 //------------------------------------------------------------------------------
33 ////////////////////////////////////////////////////////////////////////////////
34
35
36 module www_example_org_elements {
37
38
39 import from XSD all;
40
41
42 /* Global element declarations */
43
44
45 /* Global element declarations */
46
47
48 type XSD.Float FooGlobal
49 with {
50 variant "name as uncapitalized";
51 variant "element";
52 };
53
54
55 type XSD.String BarGlobal
56 with {
57 variant "name as uncapitalized";
58 variant "element";
59 };
60
61
62 type XSD.Integer DingGlobal
63 with {
64 variant "name as uncapitalized";
65 variant "element";
66 };
67
68
69 type record RemarkNillable
70 {
71 XSD.String content optional
72 }
73 with {
74 variant "name as uncapitalized";
75 variant "useNil";
76 variant "element";
77 };
78
79
80 type record SeqNillable
81 {
82 record {
83 record {
84 XSD.String content optional
85 } forename,
86 record {
87 XSD.String content optional
88 } surname optional,
89 record of record {
90 XSD.String content optional
91 } bornPlace_list,
92 FooGlobal fooGlobal,
93 BarGlobal barGlobal,
94 DingGlobal dingGlobal,
95 RemarkNillable remarkNillable
96 } content optional
97 }
98 with {
99 variant "useNil";
100 variant "element";
101 variant (content.forename) "useNil";
102 variant (content.surname) "useNil";
103 variant (content.bornPlace_list) "untagged";
104 variant (content.bornPlace_list[-]) "name as 'bornPlace'";
105 variant (content.bornPlace_list[-]) "useNil";
106 };
107
108
109 type XSD.String ShipComment
110 with {
111 variant "name as uncapitalized";
112 variant "element";
113 };
114
115
116 type XSD.String CustomerComment
117 with {
118 variant "name as uncapitalized";
119 variant "element";
120 };
121
122
123 /* Local element declarations */
124
125
126 type record E25seq
127 {
128 XSD.String title,
129 record {
130 XSD.String content optional
131 } forename,
132 XSD.String surname optional,
133 record of XSD.Integer bornDate_list,
134 record of record {
135 XSD.String content optional
136 } bornPlace_list,
137 FooGlobal fooGlobal,
138 BarGlobal barGlobal,
139 DingGlobal dingGlobal,
140 RemarkNillable remarkNillable
141 }
142 with {
143 variant "name as uncapitalized";
144 variant (forename) "useNil";
145 variant (bornDate_list) "untagged";
146 variant (bornDate_list[-]) "name as 'bornDate'";
147 variant (bornPlace_list) "untagged";
148 variant (bornPlace_list[-]) "name as 'bornPlace'";
149 variant (bornPlace_list[-]) "useNil";
150 };
151
152
153 type union Comment_group
154 {
155 XSD.String comment,
156 CustomerComment customerComment,
157 ShipComment shipComment
158 }
159 with {
160 variant "untagged";
161 variant (comment) "form as qualified";
162 };
163
164
165 }
166 with {
167 encode "XML";
168 variant "namespace as 'www.example.org/elements' prefix 'ns'";
169 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
170 }
This page took 0.03518 seconds and 5 git commands to generate.