1 /*******************************************************************************
2 * Copyright (c) 2000-2015 Ericsson Telecom AB
4 * XSD to TTCN-3 Translator version: CRL 113 200/5 R2A
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_substitutiongroup_abstract_block_2_e.ttcn
17 // Updated: Wed Oct 14 16:59:26 2014
18 // Contact: http://ttcn.ericsson.se
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - substitutiongroup_abstract_block_2_e.xsd
23 // /* xml version = "1.0" encoding = "UTF-8" */
24 // /* targetnamespace = "www.example.org/substitutiongroup/abstract/block/2/e" */
25 ////////////////////////////////////////////////////////////////////////////////
26 // Modification header(s):
27 //-----------------------------------------------------------------------------
31 // Modification contact:
32 //------------------------------------------------------------------------------
33 ////////////////////////////////////////////////////////////////////////////////
36 module www_example_org_substitutiongroup_abstract_block_2 {
42 /* THE HEAD ELEMENT */
45 /* SUBSTITUTION ELEMENT OF THE SAME TYPE AS THE HEAD */
48 type XSD.String Member1
50 variant "name as uncapitalized";
55 /* SUBSTITUTION ELEMENT OF A TYPE RESTRICTING THE TYPE OF THE HEAD */
58 type enumerated StringEnum
64 variant "text 'else_' as 'else'";
65 variant "name as uncapitalized";
69 type StringEnum Member2
71 variant "name as uncapitalized";
76 /* SUBSTITUTION ELEMENT OF A TYPE EXTENDING THE TYPE OF THE HEAD */
79 type record ComplexEnum
81 XSD.Integer bar optional,
82 XSD.Float foo optional,
86 variant "name as uncapitalized";
87 variant (bar) "attribute";
88 variant (foo) "attribute";
89 variant (base) "untagged";
93 type ComplexEnum Member3
95 variant "name as uncapitalized";
100 /* TOP LEVEL ELEMENT TO DEMONSTRATE SUBSTITUTION */
105 record of Head_group head_list
108 variant "name as uncapitalized";
110 variant (head_list) "untagged";
111 variant (head_list[-]) "name as 'head'";
115 type union Head_group
124 //variant (head) "abstract";
125 //variant (member3) "block";
132 variant "namespace as 'www.example.org/substitutiongroup/abstract/block/2' prefix 'this'";
133 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";