d44e3c4f |
1 | /****************************************************************************** |
2 | * Copyright (c) 2000-2016 Ericsson Telecom AB |
3abe9331 |
3 | * |
d44e3c4f |
4 | * XSD to TTCN-3 Translator |
3abe9331 |
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 |
d44e3c4f |
10 | * |
11 | * Contributors: |
12 | * Balasko, Jeno |
13 | * Szabo, Bence Janos |
14 | * |
15 | ******************************************************************************/ |
3abe9331 |
16 | // |
17 | // File: http_www_example_org_seq_embeds_seq_e.ttcn |
18 | // Description: |
19 | // References: |
20 | // Rev: |
21 | // Prodnr: |
22 | // Updated: Fri May 29 12:38:08 2014 |
23 | // Contact: http://ttcn.ericsson.se |
24 | // |
25 | //////////////////////////////////////////////////////////////////////////////// |
26 | // Generated from file(s): |
3f84031e |
27 | // - sequence_embeds_sequence_e.xsd |
3abe9331 |
28 | // /* xml version = "1.0" encoding = "UTF-8" */ |
29 | // /* targetnamespace = "http://www.example.org/seq-embeds-seq/e" */ |
30 | //////////////////////////////////////////////////////////////////////////////// |
31 | // Modification header(s): |
32 | //----------------------------------------------------------------------------- |
33 | // Modified by: |
34 | // Modification date: |
35 | // Description: |
36 | // Modification contact: |
37 | //------------------------------------------------------------------------------ |
38 | //////////////////////////////////////////////////////////////////////////////// |
39 | |
40 | |
41 | module http_www_example_org_seq_embeds_seq { |
42 | |
43 | |
44 | import from XSD all; |
45 | |
46 | |
47 | type record E34b |
48 | { |
49 | union { |
50 | record { |
51 | XSD.String foo, |
52 | XSD.String bar, |
53 | XSD.String ding, |
54 | XSD.String foo_1, |
55 | XSD.String bar_1 |
56 | } sequence, |
57 | XSD.String ding |
58 | } choice |
59 | } |
60 | with { |
3f84031e |
61 | variant "name as uncapitalized"; |
62 | variant (choice) "untagged"; |
63 | variant (choice.sequence) "untagged"; |
64 | variant (choice.sequence.foo_1) "name as 'foo'"; |
65 | variant (choice.sequence.bar_1) "name as 'bar'"; |
3abe9331 |
66 | }; |
67 | |
68 | |
69 | type record E40a |
70 | { |
71 | XSD.String foo, |
72 | XSD.String bar, |
73 | XSD.String ding |
74 | } |
75 | with { |
3f84031e |
76 | variant "name as uncapitalized"; |
3abe9331 |
77 | }; |
78 | |
79 | |
80 | } |
81 | with { |
3f84031e |
82 | encode "XML"; |
83 | variant "namespace as 'http://www.example.org/seq-embeds-seq'"; |
84 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; |
3abe9331 |
85 | } |