3abe9331 |
1 | /******************************************************************************* |
51fa56b9 |
2 | * Copyright (c) 2000-2015 Ericsson Telecom AB |
3abe9331 |
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 | // |
51fa56b9 |
12 | // File: www_example_org_substitutiongroup_complextype_block_e.ttcn |
3abe9331 |
13 | // Description: |
14 | // References: |
15 | // Rev: |
16 | // Prodnr: |
51fa56b9 |
17 | // Updated: Thu Nov 12 12:43:46 2014 |
3abe9331 |
18 | // Contact: http://ttcn.ericsson.se |
19 | // |
20 | //////////////////////////////////////////////////////////////////////////////// |
21 | // Generated from file(s): |
51fa56b9 |
22 | // - substitutiongroup_complextype_block_e.xsd |
3abe9331 |
23 | // /* xml version = "1.0" encoding = "UTF-8" */ |
51fa56b9 |
24 | // /* targetnamespace = "www.example.org/substitutiongroup/complextype/block/e" */ |
3abe9331 |
25 | //////////////////////////////////////////////////////////////////////////////// |
26 | // Modification header(s): |
27 | //----------------------------------------------------------------------------- |
28 | // Modified by: |
29 | // Modification date: |
30 | // Description: |
31 | // Modification contact: |
32 | //------------------------------------------------------------------------------ |
33 | //////////////////////////////////////////////////////////////////////////////// |
34 | |
35 | |
51fa56b9 |
36 | module www_example_org_substitutiongroup_complextype_block { |
3abe9331 |
37 | |
38 | |
39 | import from XSD all; |
40 | |
41 | |
51fa56b9 |
42 | /* SUBSTITUTABLE PARENT TYPE */ |
43 | |
44 | |
45 | type record ParentType |
46 | { |
47 | record of XSD.String foo_list, |
48 | XSD.String bar |
49 | } |
50 | with { |
51 | variant (foo_list) "untagged"; |
52 | variant (foo_list[-]) "name as 'foo'"; |
53 | }; |
54 | |
55 | |
56 | type RestrictedType RestrictedTypeElem |
3abe9331 |
57 | with { |
51fa56b9 |
58 | variant "element"; |
3abe9331 |
59 | }; |
60 | |
61 | |
51fa56b9 |
62 | /* The restricting type is: */ |
63 | |
64 | |
65 | type record RestrictedType |
66 | { |
67 | record length(1 .. infinity) of XSD.String foo_list, |
68 | XSD.String bar |
69 | } |
70 | with { |
71 | variant "name as uncapitalized"; |
72 | variant (foo_list) "untagged"; |
73 | variant (foo_list[-]) "name as 'foo'"; |
74 | }; |
75 | |
76 | |
77 | type union Head_group |
78 | { |
79 | RestrictedType head, |
80 | RestrictedTypeElem restrictedTypeElem |
81 | } |
3abe9331 |
82 | with { |
51fa56b9 |
83 | variant "untagged"; |
84 | variant (head) "form as qualified"; |
85 | variant (restrictedTypeElem) "name as capitalized"; |
86 | variant (restrictedTypeElem) "block"; |
3abe9331 |
87 | }; |
88 | |
89 | |
90 | } |
91 | with { |
92 | encode "XML"; |
51fa56b9 |
93 | variant "namespace as 'www.example.org/substitutiongroup/complextype/block' prefix 'this'"; |
3abe9331 |
94 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; |
95 | } |