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_e.ttcn
17 // Updated: Mon Nov 16 10:01:25 2014
18 // Contact: http://ttcn.ericsson.se
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - type_substitution_e.xsd
23 // /* xml version = "1.0" encoding = "UTF-8" */
24 // /* targetnamespace = "www.example.org/type/substitution/e" */
25 ////////////////////////////////////////////////////////////////////////////////
26 // Modification header(s):
27 //-----------------------------------------------------------------------------
31 // Modification contact:
32 //------------------------------------------------------------------------------
33 ////////////////////////////////////////////////////////////////////////////////
36 module www_example_org_type_substitution {
42 type ParentType_derivations Head
44 variant "name as uncapitalized";
49 /* SUBSTITUTABLE PARENT TYPE */
52 type record ParentType
54 record of XSD.String foo_list,
58 variant (foo_list) "untagged";
59 variant (foo_list[-]) "name as 'foo'";
63 type RestrictedType RestrictedTypeElem
69 /* The restricting type is: */
72 type record RestrictedType
74 record length(1 .. infinity) of XSD.String foo_list,
78 variant "name as uncapitalized";
79 variant (foo_list) "untagged";
80 variant (foo_list[-]) "name as 'foo'";
84 type SubmitRequestType Submit
90 type record SubmitRequestType
92 ParentType_derivations request1,
93 ParentType_derivations request2
97 type union ParentType_derivations
99 ParentType parentType,
100 RestrictedType restrictedType
104 variant (parentType) "name as capitalized";
111 variant "namespace as 'www.example.org/type/substitution' prefix 'tysub'";
112 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";