Sync with 5.4.2
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_example_org_all_e.ttcn
CommitLineData
3abe9331 1/*******************************************************************************
2* Copyright (c) 2000-2015 Ericsson Telecom AB
3*
4* XSD to TTCN-3 Translator version: CRL 113 200/5 R2A
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_all_e.ttcn
13// Description:
14// References:
15// Rev:
16// Prodnr:
17// Updated: Mon Oct 12 12:27:05 2014
18// Contact: http://ttcn.ericsson.se
19//
20////////////////////////////////////////////////////////////////////////////////
21// Generated from file(s):
22// - all.xsd
23// /* xml version = "1.0" encoding = "UTF-8" */
24// /* targetnamespace = "www.example.org/all/e" */
25////////////////////////////////////////////////////////////////////////////////
26// Modification header(s):
27//-----------------------------------------------------------------------------
28// Modified by:
29// Modification date:
30// Description:
31// Modification contact:
32//------------------------------------------------------------------------------
33////////////////////////////////////////////////////////////////////////////////
34
35
36module www_example_org_all {
37
38
39import from XSD all;
40
41
42type XSD.Token AttrGlobal
43with {
3f84031e 44 variant "name as uncapitalized";
45 variant "attribute";
3abe9331 46};
47
48
49/* All, mandatory */
50
51
52type record E29a
53{
54 record of enumerated {
55 foo,
56 bar,
57 ding
58 } order,
59 XSD.Integer foo,
60 XSD.Float bar,
61 XSD.String ding
62}
63with {
3f84031e 64 variant "name as uncapitalized";
65 variant "useOrder";
3abe9331 66};
67
68
69type record E29aAndAttributes
70{
71 record of enumerated {
72 foo,
73 bar,
74 ding
75 } order,
76 AttrGlobal attrGlobal optional,
77 XSD.Token attrInGroup1 optional,
78 XSD.Token attrInGroup2 optional,
79 XSD.Integer attrLocal optional,
80 XSD.Integer foo,
81 XSD.Float bar,
82 XSD.String ding
83}
84with {
3f84031e 85 variant "name as uncapitalized";
86 variant "useOrder";
87 variant (attrGlobal) "attribute";
88 variant (attrInGroup1) "attribute";
89 variant (attrInGroup2) "attribute";
90 variant (attrLocal) "attribute";
3abe9331 91};
92
93
94/* All, optional */
95
96
97type record E29bAndAttributes
98{
99 record of enumerated {
100 foo,
101 bar,
102 ding
103 } order,
104 AttrGlobal attrGlobal optional,
105 XSD.Token attrInGroup1 optional,
106 XSD.Token attrInGroup2 optional,
107 XSD.Integer attrLocal optional,
108 XSD.Integer foo optional,
109 XSD.Float bar optional,
110 XSD.String ding optional
111}
112with {
3f84031e 113 variant "name as uncapitalized";
114 variant "useOrder";
115 variant (attrGlobal) "attribute";
116 variant (attrInGroup1) "attribute";
117 variant (attrInGroup2) "attribute";
118 variant (attrLocal) "attribute";
3abe9331 119};
120
121
122/* All, some elements are optional */
123
124
125type record E29cAndAttributes
126{
127 record of enumerated {
128 foo,
129 bar,
130 ding
131 } order,
132 AttrGlobal attrGlobal optional,
133 XSD.Token attrInGroup1 optional,
134 XSD.Token attrInGroup2 optional,
135 XSD.Integer attrLocal optional,
136 XSD.Integer foo,
137 XSD.Float bar optional,
138 XSD.String ding
139}
140with {
3f84031e 141 variant "name as uncapitalized";
142 variant "useOrder";
143 variant (attrGlobal) "attribute";
144 variant (attrInGroup1) "attribute";
145 variant (attrInGroup2) "attribute";
146 variant (attrLocal) "attribute";
3abe9331 147};
148
149
150type record E29cAndAttributesReferenceOptional
151{
152 record of enumerated {
153 foo,
154 bar,
155 ding
156 } order,
157 XSD.String attr optional,
158 XSD.Integer foo optional,
159 XSD.Float bar optional,
160 XSD.String ding optional
161}
162with {
3f84031e 163 variant "name as uncapitalized";
164 variant "useOrder";
165 variant "element";
166 variant (attr) "attribute";
3abe9331 167};
168
169
170}
171with {
3f84031e 172 encode "XML";
173 variant "namespace as 'www.example.org/all' prefix 'this'";
174 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
3abe9331 175}
This page took 0.031915 seconds and 5 git commands to generate.