Sync with 5.4.2
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / ETSI_CR5852_union_e.ttcn
CommitLineData
970ed795
EL
1/*******************************************************************************
2* Copyright Ericsson Telecom AB
3*
4* XSD to TTCN-3 Translator
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: ETSI_CR5852_union_e.ttcn
13// Description:
14// References:
15// Rev:
16// Prodnr:
17// Updated: Thu Sep 5 17:35:03 2013
18// Contact: http://ttcn.ericsson.se
19//
20////////////////////////////////////////////////////////////////////////////////
21// Generated from file(s):
22// - ETSI_CR5852_union.xsd
23// /* xml version = "1.0" encoding = "UTF-8" */
24// /* targetnamespace = "ETSI_CR5852_union" */
25////////////////////////////////////////////////////////////////////////////////
26// Modification header(s):
27//-----------------------------------------------------------------------------
28// Modified by:
29// Modification date:
30// Description:
31// Modification contact:
32//------------------------------------------------------------------------------
33////////////////////////////////////////////////////////////////////////////////
34
35
36module ETSI_CR5852_union_e {
37
38
39import from XSD all;
40
41
42/* EXAMPLE 5: Mapping of children of choice components
43// Are translated to TTCN-3 as:
44type record ChoiceChildMinMax {
45 union {
46 record length(1 .. 5) of XSD.String elem0_list,
47 // child of choice with minOccurs different from 0
48 record length(0 .. 1) of XSD.String elem1_list,
49 // first child of choice with minOccurs 0;
50 // this alternative is to be used create an empty choice element
51 record length(1) of XSD.String elem2_list,
52 // second child of choice with minOccurs 0
53 record length(1 .. infinity) of XSD.String elem3_list
54 // third child of choice with minOccurs 0
55 } choice
56}
57with {
3f84031e 58 variant "element";
59 variant (choice) "untagged";
60 variant (choice.elem0_list) "untagged";
61 variant (choice.elem0_list[-]) "name as 'elem0'";
62 variant (choice.elem1_list) "untagged";
63 variant (choice.elem1_list[-]) "name as 'elem1'";
64 variant (choice.elem2_list) "untagged";
65 variant (choice.elem2_list[-]) "name as 'elem2'";
66 variant (choice.elem3_list) "untagged";
67 variant (choice.elem3_list[-]) "name as 'elem3'";
970ed795
EL
68}; */
69
70
71type record ChoiceChildMinMax
72{
73 union {
74 record length(1 .. 5) of XSD.String elem0_list,
75 record length(0 .. 1) of XSD.String elem1_list,
76 record length(1) of XSD.String elem2_list,
77 record length(1 .. infinity) of XSD.String elem3_list
78 } choice
79}
80with {
3f84031e 81 variant "element";
82 variant (choice) "untagged";
83 variant (choice.elem0_list) "untagged";
84 variant (choice.elem0_list[-]) "name as 'elem0'";
85 variant (choice.elem1_list) "untagged";
86 variant (choice.elem1_list[-]) "name as 'elem1'";
87 variant (choice.elem2_list) "untagged";
88 variant (choice.elem2_list[-]) "name as 'elem2'";
89 variant (choice.elem3_list) "untagged";
90 variant (choice.elem3_list[-]) "name as 'elem3'";
970ed795
EL
91};
92
93
94/* added only to enable showing all cases in one XML instance */
95
96
97type record MinOccurs_maxOccurs_frame
98{
99 record of union {
100 ChoiceChildMinMax choiceChildMinMax
101 } choice_list
102}
103with {
3f84031e 104 variant "name as uncapitalized";
105 variant "element";
106 variant (choice_list) "untagged";
107 variant (choice_list[-]) "untagged";
108 variant (choice_list[-].choiceChildMinMax) "name as capitalized";
970ed795
EL
109};
110
111
112}
113with {
3f84031e 114 encode "XML";
115 variant "namespace as 'ETSI_CR5852_union' prefix 'etsiu'";
116 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
970ed795 117}
This page took 0.029952 seconds and 5 git commands to generate.