Commit | Line | Data |
---|---|---|
970ed795 EL |
1 | /******************************************************************************* |
2 | * Copyright Ericsson Telecom AB | |
3 | * | |
4 | * XSD to TTCN-3 Translator | |
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: Thu Sep 5 17:34:58 2013 | |
18 | // Contact: http://ttcn.ericsson.se | |
19 | // | |
20 | //////////////////////////////////////////////////////////////////////////////// | |
21 | // Generated from file(s): | |
22 | // - any_anyAttribute.xsd | |
23 | // /* xml version = "1.0" encoding = "UTF-8" */ | |
24 | // /* targetnamespace = "http://www.example.org/ttcn/wildcards" */ | |
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_e { | |
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 | |
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 | |
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 | |
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 | |
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 | |
99 | } | |
100 | with { | |
101 | variant "name as uncapitalized"; | |
102 | variant (attr) "anyAttributes from 'http://www.example.org/ttcn/wildcards'"; | |
103 | variant (attr) "anyAttributes from unqualified,'http://www.organization.org/ttcn/attribute'"; | |
104 | }; | |
105 | ||
106 | ||
107 | /* any examples */ | |
108 | ||
109 | ||
110 | type record E46 | |
111 | { | |
112 | XSD.String elem | |
113 | } | |
114 | with { | |
115 | variant "name as uncapitalized"; | |
116 | variant (elem) "anyElement"; | |
117 | }; | |
118 | ||
119 | ||
120 | type record E46ab | |
121 | { | |
122 | XSD.String elem optional | |
123 | } | |
124 | with { | |
125 | variant "name as uncapitalized"; | |
126 | variant (elem) "anyElement except unqualified, 'http://www.example.org/ttcn/wildcards'"; | |
127 | }; | |
128 | ||
129 | ||
130 | type record E46bc | |
131 | { | |
132 | record of XSD.String elem_list | |
133 | } | |
134 | with { | |
135 | variant "name as uncapitalized"; | |
136 | variant (elem_list) "untagged"; | |
137 | variant (elem_list[-]) "anyElement from unqualified"; | |
138 | }; | |
139 | ||
140 | ||
141 | /* minOccurs, maxOccurs */ | |
142 | ||
143 | ||
144 | type record E15 | |
145 | { | |
146 | record length(5 .. 10) of record { | |
147 | XSD.Integer foo, | |
148 | XSD.Float bar | |
149 | } sequence_list | |
150 | } | |
151 | with { | |
152 | variant "name as uncapitalized"; | |
153 | variant (sequence_list) "untagged"; | |
154 | variant (sequence_list[-]) "untagged"; | |
155 | }; | |
156 | ||
157 | ||
158 | type record E15a | |
159 | { | |
160 | record { | |
161 | XSD.Integer foo, | |
162 | XSD.Float bar | |
163 | } sequence optional | |
164 | } | |
165 | with { | |
166 | variant "name as uncapitalized"; | |
167 | variant (sequence) "untagged"; | |
168 | }; | |
169 | ||
170 | ||
171 | type record E15b | |
172 | { | |
173 | record { | |
174 | XSD.Integer foo, | |
175 | XSD.Float bar | |
176 | } sequence optional | |
177 | } | |
178 | with { | |
179 | variant "name as uncapitalized"; | |
180 | variant (sequence) "untagged"; | |
181 | }; | |
182 | ||
183 | ||
184 | type record E15c | |
185 | { | |
186 | record length(5 .. infinity) of record { | |
187 | XSD.Integer foo, | |
188 | XSD.Float bar | |
189 | } sequence_list | |
190 | } | |
191 | with { | |
192 | variant "name as uncapitalized"; | |
193 | variant (sequence_list) "untagged"; | |
194 | variant (sequence_list[-]) "untagged"; | |
195 | }; | |
196 | ||
197 | ||
3abe9331 | 198 | type record MyType |
199 | { | |
200 | record of XSD.String attr optional, | |
201 | XSD.String base | |
202 | } | |
203 | with { | |
204 | variant "element"; | |
205 | variant (attr) "anyAttributes from 'http://www.example.org/ttcn/wildcards'"; | |
206 | variant (base) "untagged"; | |
207 | }; | |
208 | ||
209 | ||
970ed795 EL |
210 | } |
211 | with { | |
212 | encode "XML"; | |
213 | variant "namespace as 'http://www.example.org/ttcn/wildcards' prefix 'this'"; | |
214 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; | |
215 | } |