Sync with 5.4.2
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_example_org_type_substitution_mod2_e.ttcn
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_mod2_e.ttcn
13 // Description:
14 // References:
15 // Rev:
16 // Prodnr:
17 // Updated: Tue Nov 17 14:10:37 2014
18 // Contact: http://ttcn.ericsson.se
19 //
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - type_substitution_mod2_e.xsd
23 // /* xml version = "1.0" */
24 // /* targetnamespace = "www.example.org/type/substitution/mod2/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_type_substitution_mod2 {
37
38
39 import from XSD all;
40
41
42 import from www_example_org_type_substitution_mod1 all;
43
44
45 type ParentType_derivations Subsgroup
46 with {
47 variant "name as uncapitalized";
48 variant "abstract";
49 variant "element";
50 };
51
52
53 type record ExtendedType
54 {
55 XSD.String attr1 optional,
56 record of XSD.String foo_list,
57 XSD.String bar
58 }
59 with {
60 variant "name as uncapitalized";
61 variant (attr1) "attribute";
62 variant (foo_list) "untagged";
63 variant (foo_list[-]) "name as 'foo'";
64 };
65
66
67 type record RestrictedExtendedType
68 {
69 record of XSD.String foo_list,
70 XSD.String bar
71 }
72 with {
73 variant "name as uncapitalized";
74 variant (foo_list) "untagged";
75 variant (foo_list[-]) "name as 'foo'";
76 };
77
78
79 type RestrictedType_derivations NameTest
80 with {
81 variant "name as uncapitalized";
82 variant "element";
83 };
84
85
86 type ExtendedType_derivations NameTest2
87 with {
88 variant "name as uncapitalized";
89 variant "element";
90 };
91
92
93 type union ExtendedType_derivations
94 {
95 ExtendedType extendedType,
96 RestrictedExtendedType restrictedExtendedType
97 }
98 with {
99 variant "name as uncapitalized";
100 variant "useType";
101 variant (restrictedExtendedType) "block";
102 };
103
104
105 }
106 with {
107 encode "XML";
108 variant "namespace as 'www.example.org/type/substitution/mod2'";
109 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
110 }
This page took 0.032287 seconds and 5 git commands to generate.