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