1 /*******************************************************************************
2 * Copyright Ericsson Telecom AB 2011
4 * XSD to TTCN-3 Translator version: CRL 113 200/4 R3A
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 *******************************************************************************/
12 // File: www_example_org_boolean_variant_commented_e.ttcn
17 // Updated: Tue Jul 7 11:01:43 2014
18 // Contact: http://ttcn.ericsson.se
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - boolean_variant_commented.xsd
23 // /* xml version = "1.0" encoding = "UTF-8" */
24 // /* targetnamespace = "www.example.org/boolean/variant/commented/e" */
25 ////////////////////////////////////////////////////////////////////////////////
26 // Modification header(s):
27 //-----------------------------------------------------------------------------
31 // Modification contact:
32 //------------------------------------------------------------------------------
33 ////////////////////////////////////////////////////////////////////////////////
36 module www_example_org_boolean_variant_commented {
42 type XSD.Boolean CelsiusBodyTemp
44 variant "name as uncapitalized";
45 //variant "text 'true' as '1'";
46 //variant "text 'false' as '0'";
50 type XSD.Boolean BooleanElement
52 variant "name as uncapitalized";
54 //variant "text 'true' as '1'";
55 //variant "text 'false' as '0'";
59 type XSD.Boolean BooleanSimple;
61 //variant "text 'true' as '1'";
62 //variant "text 'false' as '0'";
66 type union Union_with_boolean
73 variant "name as uncapitalized";
76 variant (alt_) "name as ''";
77 variant (alt_1) "name as ''";
78 //variant (alt_1) "text 'true' as '1'";
79 //variant (alt_1) "text 'false' as '0'";
80 variant (alt_2) "name as ''";
84 type record Seq_with_boolean
86 XSD.Boolean stupid optional,
87 XSD.String titleElemBase,
88 XSD.String forenameElemBase,
92 variant "name as uncapitalized";
93 variant (stupid) "attribute";
94 //variant (stupid) "text 'true' as '1'";
95 //variant (stupid) "text 'false' as '0'";
96 //variant (smart) "text 'true' as '1'";
97 //variant (smart) "text 'false' as '0'";
103 record of XSD.Boolean foo_list,
107 variant "name as uncapitalized";
108 variant (foo_list) "untagged";
109 variant (foo_list[-]) "name as 'foo'";
110 //variant (foo_list[-]) "text 'true' as '1'";
111 //variant (foo_list[-]) "text 'false' as '0'";
121 //variant (foo) "text 'true' as '1'";
122 //variant (foo) "text 'false' as '0'";
129 variant "namespace as 'www.example.org/boolean/variant/commented'";
130 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";