1 /*******************************************************************************
2 * Copyright (c) 2000-2015 Ericsson Telecom AB
4 * XSD to TTCN-3 Translator version: CRL 113 200/5 R3A
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 *******************************************************************************/
12 // File: www_example_org_type_substitution_chain_e.ttcn
17 // Updated: Tue Nov 17 11:30:22 2014
18 // Contact: http://ttcn.ericsson.se
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - type_substitution_chain_e.xsd
23 // /* xml version = "1.0" encoding = "UTF-8" */
24 // /* targetnamespace = "www.example.org/type/substitution/chain/e" */
25 ////////////////////////////////////////////////////////////////////////////////
26 // Modification header(s):
27 //-----------------------------------------------------------------------------
31 // Modification contact:
32 //------------------------------------------------------------------------------
33 ////////////////////////////////////////////////////////////////////////////////
36 module www_example_org_type_substitution_chain {
42 type ParentType_derivations Head
44 variant "name as uncapitalized";
49 /* SUBSTITUTABLE PARENT TYPE */
52 /* type substitutiongroup generated, because has elemet declaration */
55 type record ParentType
57 record of XSD.String foo_list,
61 variant (foo_list) "untagged";
62 variant (foo_list[-]) "name as 'foo'";
66 type RestrictedType_derivations RestrictedTypeElem
72 /* type substitutiongroup generated, because has elemet declaration */
75 type record RestrictedType
77 record length(1 .. infinity) of XSD.String foo_list,
81 variant "name as uncapitalized";
82 variant (foo_list) "untagged";
83 variant (foo_list[-]) "name as 'foo'";
87 /* type substitutiongroup generated, because the parent has elemet declaration */
90 type record RestrictedType2
92 record length(2 .. infinity) of XSD.String foo_list,
96 variant "name as uncapitalized";
97 variant (foo_list) "untagged";
98 variant (foo_list[-]) "name as 'foo'";
102 /* Added to restrictedtype_derivations */
105 type record RestrictedType2_1
107 record length(2 .. 5) of XSD.String foo_list,
111 variant "name as 'restrictedType2.1'";
112 variant (foo_list) "untagged";
113 variant (foo_list[-]) "name as 'foo'";
117 /* No type substitutiongroup generated, because the parent lacks elemet declaration */
120 type record RestrictedType3
122 record length(3 .. infinity) of XSD.String foo_list,
126 variant "name as uncapitalized";
127 variant (foo_list) "untagged";
128 variant (foo_list[-]) "name as 'foo'";
132 type union ParentType_derivations
134 ParentType parentType,
135 RestrictedType restrictedType,
136 RestrictedType2 restrictedType2,
137 RestrictedType2_1 restrictedType2_1,
138 RestrictedType3 restrictedType3
142 variant (parentType) "name as capitalized";
143 variant (restrictedType2_1) "name as 'restrictedType2.1'";
147 type union RestrictedType_derivations
149 RestrictedType restrictedType,
150 RestrictedType2 restrictedType2,
151 RestrictedType2_1 restrictedType2_1,
152 RestrictedType3 restrictedType3
155 variant "name as uncapitalized";
157 variant (restrictedType2_1) "name as 'restrictedType2.1'";
164 variant "namespace as 'www.example.org/type/substitution/chain' prefix 'tys'";
165 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";