Sync with 5.4.2
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_example_org_type_substitution_elem_in_ct_mod1_e.ttcn
CommitLineData
51fa56b9 1/*******************************************************************************
2* Copyright (c) 2000-2015 Ericsson Telecom AB
3*
4* XSD to TTCN-3 Translator version: CRL 113 200/5 R3A
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_type_substitution_elem_in_ct_mod1_e.ttcn
13// Description:
14// References:
15// Rev:
16// Prodnr:
17// Updated: Wed Nov 18 15:03:25 2014
18// Contact: http://ttcn.ericsson.se
19//
20////////////////////////////////////////////////////////////////////////////////
21// Generated from file(s):
22// - type_substitution_elem_in_ct_mod1_e.xsd
23// /* xml version = "1.0" encoding = "UTF-8" */
24// /* targetnamespace = "www.example.org/type/substitution/elem/in/ct/mod1/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_type_substitution_elem_in_ct_mod1 {
37
38
39import from XSD all;
40
41
42type record Complex
43{
44 String_derivations string,
45 ParentType_derivations parentType
46}
47with {
3f84031e 48 variant "element";
51fa56b9 49};
50
51
52type XSD.String Stringtype
53with {
3f84031e 54 variant "name as uncapitalized";
51fa56b9 55};
56
57
58type XSD.String Stringtype2 length(5)
59with {
3f84031e 60 variant "name as uncapitalized";
51fa56b9 61};
62
63
64type record ParentType
65{
66 record of XSD.String foo_list,
67 XSD.String bar
68}
69with {
3f84031e 70 variant (foo_list) "untagged";
71 variant (foo_list[-]) "name as 'foo'";
51fa56b9 72};
73
74
75type record RestrictedType
76{
77 record length(1 .. infinity) of XSD.String foo_list,
78 XSD.String bar
79}
80with {
3f84031e 81 variant "name as uncapitalized";
82 variant (foo_list) "untagged";
83 variant (foo_list[-]) "name as 'foo'";
51fa56b9 84};
85
86
87type record MorerestrictedType
88{
89 record length(2 .. infinity) of XSD.String foo_list,
90 XSD.String bar
91}
92with {
3f84031e 93 variant "name as uncapitalized";
94 variant (foo_list) "untagged";
95 variant (foo_list[-]) "name as 'foo'";
51fa56b9 96};
97
98
99type union String_derivations
100{
101 XSD.String string,
3f84031e 102 Stringtype stringtype,
103 Stringtype2 stringtype2
51fa56b9 104}
105with {
3f84031e 106 variant "name as uncapitalized";
107 variant "useType";
51fa56b9 108};
109
110
111type union Stringtype_derivations
112{
113 Stringtype stringtype,
114 Stringtype2 stringtype2
115}
116with {
3f84031e 117 variant "name as uncapitalized";
118 variant "useType";
51fa56b9 119};
120
121
122type union ParentType_derivations
123{
124 ParentType parentType,
3f84031e 125 MorerestrictedType morerestrictedType,
126 RestrictedType restrictedType
51fa56b9 127}
128with {
3f84031e 129 variant "useType";
130 variant (parentType) "name as capitalized";
131 variant (morerestrictedType) "block";
132 variant (restrictedType) "block";
51fa56b9 133};
134
135
136type union RestrictedType_derivations
137{
138 RestrictedType restrictedType,
139 MorerestrictedType morerestrictedType
140}
141with {
3f84031e 142 variant "name as uncapitalized";
143 variant "useType";
144 variant (morerestrictedType) "block";
51fa56b9 145};
146
147
148}
149with {
3f84031e 150 encode "XML";
151 variant "namespace as 'www.example.org/type/substitution/elem/in/ct/mod1' prefix 'this'";
152 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
51fa56b9 153}
This page took 0.030561 seconds and 5 git commands to generate.