3abe9331 |
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_complex_without_element_e.ttcn |
13 | // Description: |
14 | // References: |
15 | // Rev: |
16 | // Prodnr: |
17 | // Updated: Thu Oct 15 11:01:18 2014 |
18 | // Contact: http://ttcn.ericsson.se |
19 | // |
20 | //////////////////////////////////////////////////////////////////////////////// |
21 | // Generated from file(s): |
22 | // - substitutiongroup_complex_without_element_e.xsd |
23 | // /* xml version = "1.0" encoding = "UTF-8" */ |
24 | // /* targetnamespace = "www.example.org/substitutiongroup/complex/without/element/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_complex_without_element { |
37 | |
38 | |
39 | import from XSD all; |
40 | |
41 | |
42 | type XSD.String Head_group |
43 | with { |
44 | variant "element"; |
45 | }; |
46 | |
47 | |
48 | type XSD.String Member |
49 | with { |
50 | variant "name as uncapitalized"; |
51 | variant "element"; |
52 | }; |
53 | |
54 | |
55 | type enumerated StringEnum |
56 | { |
57 | else_, |
58 | something |
59 | } |
60 | with { |
61 | variant "text 'else_' as 'else'"; |
62 | variant "name as uncapitalized"; |
63 | variant "element"; |
64 | }; |
65 | |
66 | |
67 | type E26seq Member2 |
68 | with { |
69 | variant "name as uncapitalized"; |
70 | variant "element"; |
71 | }; |
72 | |
73 | |
74 | type record E26seq |
75 | { |
76 | XSD.String headAttrib optional, |
77 | XSD.String unitOfAge optional, |
78 | XSD.String something, |
79 | XSD.Integer ageElemExt |
80 | } |
81 | with { |
82 | variant "name as uncapitalized"; |
83 | variant (headAttrib) "attribute"; |
84 | variant (unitOfAge) "attribute"; |
85 | variant (something) "name as capitalized"; |
86 | }; |
87 | |
88 | |
89 | type record Ize |
90 | { |
91 | record of Head_group_1 head_list |
92 | } |
93 | with { |
94 | variant "name as uncapitalized"; |
95 | variant "element"; |
96 | variant (head_list) "untagged"; |
97 | variant (head_list[-]) "name as 'head'"; |
98 | }; |
99 | |
100 | |
101 | type union Head_group_1 |
102 | { |
103 | record { |
104 | XSD.String headAttrib optional, |
105 | XSD.String something |
106 | } head, |
107 | Member member, |
108 | Member2 member2, |
109 | StringEnum stringEnum |
110 | } |
111 | with { |
112 | variant "untagged"; |
51fa56b9 |
113 | variant (head) "form as qualified"; |
114 | variant (head) "abstract"; |
3abe9331 |
115 | variant (head.headAttrib) "attribute"; |
116 | variant (head.something) "name as capitalized"; |
51fa56b9 |
117 | variant (member) "block"; |
118 | variant (member2) "block"; |
119 | variant (stringEnum) "block"; |
3abe9331 |
120 | }; |
121 | |
122 | |
123 | } |
124 | with { |
125 | encode "XML"; |
126 | variant "namespace as 'www.example.org/substitutiongroup/complex/without/element' prefix 'this'"; |
127 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; |
128 | } |