Sync with 5.4.1
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_example_org_substitutiongroup_long_extension_e.ttcn
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_substitutiongroup_long_extension_e.ttcn
13 // Description:
14 // References:
15 // Rev:
16 // Prodnr:
17 // Updated: Thu Oct 15 13:37:32 2014
18 // Contact: http://ttcn.ericsson.se
19 //
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - substitutiongroup_long_extension_e.xsd
23 // /* xml version = "1.0" encoding = "UTF-8" */
24 // /* targetnamespace = "www.example.org/substitutiongroup/long/extension/e" */
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_substitutiongroup_long_extension {
37
38
39 import from XSD all;
40
41
42 type XSD.String Member
43 with {
44 variant "name as uncapitalized";
45 variant "element";
46 };
47
48
49 type enumerated StringEnum
50 {
51 else_,
52 something
53 }
54 with {
55 variant "text 'else_' as 'else'";
56 variant "name as uncapitalized";
57 variant "element";
58 };
59
60
61 type record ComplexEnum
62 {
63 XSD.Integer bar optional,
64 XSD.Float foo optional,
65 XSD.String base
66 }
67 with {
68 variant "name as uncapitalized";
69 variant "element";
70 variant (bar) "attribute";
71 variant (foo) "attribute";
72 variant (base) "untagged";
73 };
74
75
76 type E27seq Member3
77 with {
78 variant "name as uncapitalized";
79 variant "element";
80 };
81
82
83 type record E27seq
84 {
85 XSD.String extAttrib optional,
86 Member2 base
87 }
88 with {
89 variant "name as uncapitalized";
90 variant (extAttrib) "attribute";
91 variant (base) "untagged";
92 };
93
94
95 type E26seq Member2
96 with {
97 variant "name as uncapitalized";
98 variant "element";
99 };
100
101
102 type record E26seq
103 {
104 XSD.Integer bar optional,
105 XSD.Float foo optional,
106 XSD.String unitOfAge optional,
107 XSD.String base
108 }
109 with {
110 variant "name as uncapitalized";
111 variant (bar) "attribute";
112 variant (foo) "attribute";
113 variant (unitOfAge) "attribute";
114 variant (base) "untagged";
115 };
116
117
118 type record Ize
119 {
120 record of Head_group head_list
121 }
122 with {
123 variant "name as uncapitalized";
124 variant "element";
125 variant (head_list) "untagged";
126 variant (head_list[-]) "name as 'head'";
127 };
128
129
130 type union Head_group
131 {
132 XSD.String head,
133 ComplexEnum complexEnum,
134 Member member,
135 Member2 member2,
136 Member3 member3,
137 StringEnum stringEnum
138 }
139 with {
140 variant "untagged";
141 variant (complexEnum) "block";
142 variant (member2) "block";
143 variant (member3) "block";
144 };
145
146
147 }
148 with {
149 encode "XML";
150 variant "namespace as 'www.example.org/substitutiongroup/long/extension' prefix 'this'";
151 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
152 }
This page took 0.033893 seconds and 5 git commands to generate.