3abe9331 |
1 | /******************************************************************************* |
2 | * Copyright Ericsson Telecom AB 2015 |
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_unnamed_union.ttcn |
13 | // Description: |
14 | // References: |
15 | // Rev: |
16 | // Prodnr: |
17 | // Updated: Thu Aug 6 13:51:04 2015 |
18 | // Contact: http://ttcn.ericsson.se |
19 | // |
20 | //////////////////////////////////////////////////////////////////////////////// |
21 | // Generated from file(s): |
22 | // - element_in_all_mixed.xsd |
23 | // /* xml version = "1.0" encoding = "UTF-8" */ |
24 | // /* targetnamespace = "www.example.org/unnamed/union" */ |
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_unnamed_union { |
37 | |
38 | |
39 | import from XSD all; |
40 | |
41 | |
42 | type record MyComplexElem_13 |
43 | { |
44 | record of XSD.String embed_values, |
45 | record of enumerated { |
46 | a, |
47 | b |
48 | } order, |
49 | XSD.String foo optional, |
50 | XSD.String a, |
51 | XSD.Boolean b |
52 | } |
53 | with { |
3f84031e |
54 | variant "name as 'MyComplexElem-13'"; |
55 | variant "useOrder"; |
56 | variant "embedValues"; |
57 | variant "element"; |
58 | variant (foo) "attribute"; |
59 | //variant (b) "text 'true' as '1'"; |
60 | //variant (b) "text 'false' as '0'"; |
3abe9331 |
61 | }; |
62 | |
63 | |
64 | } |
65 | with { |
3f84031e |
66 | encode "XML"; |
67 | variant "namespace as 'www.example.org/unnamed/union'"; |
68 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; |
3abe9331 |
69 | } |