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_dont_generate_element_substitution_e.ttcn |
13 | // Description: |
14 | // References: |
15 | // Rev: |
16 | // Prodnr: |
17 | // Updated: Mon Oct 19 09:38:13 2014 |
18 | // Contact: http://ttcn.ericsson.se |
19 | // |
20 | //////////////////////////////////////////////////////////////////////////////// |
21 | // Generated from file(s): |
22 | // - dont_generate_element_substitution_e.xsd |
23 | // /* xml version = "1.0" encoding = "UTF-8" */ |
24 | // /* targetnamespace = "www.example.org/dont/generate/element/substitution/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_dont_generate_element_substitution { |
37 | |
38 | |
39 | import from XSD all; |
40 | |
41 | |
42 | type XSD.String Head |
43 | with { |
3f84031e |
44 | variant "name as uncapitalized"; |
45 | variant "element"; |
3abe9331 |
46 | }; |
47 | |
48 | |
49 | type record ComplexEnum |
50 | { |
51 | XSD.Integer bar optional, |
52 | XSD.Float foo optional, |
53 | XSD.String base |
54 | } |
55 | with { |
3f84031e |
56 | variant "name as uncapitalized"; |
57 | variant "element"; |
58 | variant (bar) "attribute"; |
59 | variant (foo) "attribute"; |
60 | variant (base) "untagged"; |
3abe9331 |
61 | }; |
62 | |
63 | |
64 | type record Member2 |
65 | { |
66 | XSD.Integer bar optional, |
67 | XSD.Float foo optional, |
68 | XSD.String unitOfAge optional, |
69 | XSD.String base |
70 | } |
71 | with { |
3f84031e |
72 | variant "name as uncapitalized"; |
73 | variant "element"; |
74 | variant (bar) "attribute"; |
75 | variant (foo) "attribute"; |
76 | variant (unitOfAge) "attribute"; |
77 | variant (base) "untagged"; |
3abe9331 |
78 | }; |
79 | |
80 | |
81 | type record Ize |
82 | { |
83 | record of Head head_list |
84 | } |
85 | with { |
3f84031e |
86 | variant "name as uncapitalized"; |
87 | variant "element"; |
88 | variant (head_list) "untagged"; |
89 | variant (head_list[-]) "name as 'head'"; |
3abe9331 |
90 | }; |
91 | |
92 | |
93 | } |
94 | with { |
3f84031e |
95 | encode "XML"; |
96 | variant "namespace as 'www.example.org/dont/generate/element/substitution' prefix 'this'"; |
97 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; |
3abe9331 |
98 | } |