Sync with 5.4.2
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / http_example_org_ttcn_wildcards_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: http_www_example_org_ttcn_wildcards_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 // - any_anyAttribute_e.xsd
23 // /* xml version = "1.0" encoding = "UTF-8" */
24 // /* targetnamespace = "http://www.example.org/ttcn/wildcards/e" */
25 ////////////////////////////////////////////////////////////////////////////////
26 // Modification header(s):
27 //-----------------------------------------------------------------------------
28 // Modified by:
29 // Modification date:
30 // Description:
31 // Modification contact:
32 //------------------------------------------------------------------------------
33 ////////////////////////////////////////////////////////////////////////////////
34
35
36 module http_www_example_org_ttcn_wildcards {
37
38
39 import from XSD all;
40
41
42 type record Mygroup
43 {
44 XSD.String elem
45 }
46 with {
47 variant "untagged";
48 variant (elem) "anyElement from 'http://www.example.org/ttcn/wildcards'";
49 };
50
51
52 /* anyAttribute examples */
53
54
55 type record E45
56 {
57 record of XSD.String attr optional
58 }
59 with {
60 variant "name as uncapitalized";
61 variant (attr) "anyAttributes";
62 };
63
64
65 type record E45a
66 {
67 record of XSD.String attr optional
68 }
69 with {
70 variant "name as uncapitalized";
71 variant (attr) "anyAttributes except unqualified, 'http://www.example.org/ttcn/wildcards'";
72 };
73
74
75 type record E45b
76 {
77 record of XSD.String attr optional
78 }
79 with {
80 variant "name as uncapitalized";
81 variant (attr) "anyAttributes from 'http://www.example.org/ttcn/wildcards'";
82 };
83
84
85 type record E45c
86 {
87 record of XSD.String attr optional
88 }
89 with {
90 variant "name as uncapitalized";
91 variant (attr) "anyAttributes from unqualified, 'http://www.organization.org/ttcn/attribute'";
92 };
93
94
95 /* <xs:element name="attr" type="xs:integer"/> */
96 type record E45d
97 {
98 record of XSD.String attr optional
99 }
100 with {
101 variant "name as uncapitalized";
102 variant (attr) "anyAttributes from 'http://www.example.org/ttcn/wildcards', unqualified, 'http://www.organization.org/ttcn/attribute'";
103 };
104
105
106 /* any examples */
107
108
109 type record E46
110 {
111 XSD.String elem
112 }
113 with {
114 variant "name as uncapitalized";
115 variant (elem) "anyElement";
116 };
117
118
119 type record E46ab
120 {
121 XSD.String elem optional
122 }
123 with {
124 variant "name as uncapitalized";
125 variant (elem) "anyElement except unqualified, 'http://www.example.org/ttcn/wildcards'";
126 };
127
128
129 type record E46bc
130 {
131 record of XSD.String elem_list
132 }
133 with {
134 variant "name as uncapitalized";
135 variant (elem_list) "untagged";
136 variant (elem_list[-]) "anyElement from unqualified";
137 };
138
139
140 /* minOccurs, maxOccurs */
141
142
143 type record E15
144 {
145 record length(5 .. 10) of record {
146 XSD.Integer foo,
147 XSD.Float bar
148 } sequence_list
149 }
150 with {
151 variant "name as uncapitalized";
152 variant (sequence_list) "untagged";
153 variant (sequence_list[-]) "untagged";
154 };
155
156
157 type record E15a
158 {
159 record {
160 XSD.Integer foo,
161 XSD.Float bar
162 } sequence optional
163 }
164 with {
165 variant "name as uncapitalized";
166 variant (sequence) "untagged";
167 };
168
169
170 type record E15b
171 {
172 record {
173 XSD.Integer foo,
174 XSD.Float bar
175 } sequence optional
176 }
177 with {
178 variant "name as uncapitalized";
179 variant (sequence) "untagged";
180 };
181
182
183 type record E15c
184 {
185 record length(5 .. infinity) of record {
186 XSD.Integer foo,
187 XSD.Float bar
188 } sequence_list
189 }
190 with {
191 variant "name as uncapitalized";
192 variant (sequence_list) "untagged";
193 variant (sequence_list[-]) "untagged";
194 };
195
196
197 type record MyType
198 {
199 record of XSD.String attr optional,
200 XSD.String base
201 }
202 with {
203 variant "element";
204 variant (attr) "anyAttributes from 'http://www.example.org/ttcn/wildcards'";
205 variant (base) "untagged";
206 };
207
208
209 }
210 with {
211 encode "XML";
212 variant "namespace as 'http://www.example.org/ttcn/wildcards' prefix 'this'";
213 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
214 }
This page took 0.035698 seconds and 5 git commands to generate.