Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_XmlTest_org_complex_all_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: www_XmlTest_org_complex_all_e.ttcn
13// Description:
14// References:
15// Rev:
16// Prodnr:
17// Updated: Thu Sep 5 17:35:05 2013
18// Contact: http://ttcn.ericsson.se
19//
20////////////////////////////////////////////////////////////////////////////////
21// Generated from file(s):
22// - XmlTest_complex_all.xsd
23// /* xml version = "1.0" */
24// /* targetnamespace = "www.XmlTest.org/complex_all" */
25////////////////////////////////////////////////////////////////////////////////
26// Modification header(s):
27//-----------------------------------------------------------------------------
28// Modified by:
29// Modification date:
30// Description:
31// Modification contact:
32//------------------------------------------------------------------------------
33////////////////////////////////////////////////////////////////////////////////
34
35
36module www_XmlTest_org_complex_all_e {
37
38
39import from XSD all;
40
41
42/* This documentum tests based on
43 XML Schema Part 0: Primer Second Edition
44 2.7 Building Content models */
45
46
47type record MySubjects1
48{
49 record of enumerated {
50 english,
51 math,
52 physics,
53 chemistry
54 } order,
55 XSD.GYear year optional,
56 XSD.String english optional,
57 XSD.String math optional,
58 XSD.String physics optional,
59 XSD.String chemistry optional
60}
61with {
62variant "useOrder";
63variant (year) "name as capitalized";
64variant (year) "attribute";
65variant (english) "name as capitalized";
66variant (math) "name as capitalized";
67variant (physics) "name as capitalized";
68variant (chemistry) "name as capitalized";
69};
70
71
72type record MySubjects2
73{
3abe9331 74 record of enumerated {
75 english,
76 math,
77 physics,
78 chemistry,
79 history
80 } order,
970ed795 81 XSD.GYear year optional,
3abe9331 82 XSD.String english,
83 XSD.String math,
84 XSD.String physics,
85 XSD.String chemistry,
86 XSD.String history
970ed795
EL
87}
88with {
3abe9331 89variant "useOrder";
970ed795
EL
90variant (year) "name as capitalized";
91variant (year) "attribute";
3abe9331 92variant (english) "name as capitalized";
93variant (math) "name as capitalized";
94variant (physics) "name as capitalized";
95variant (chemistry) "name as capitalized";
96variant (history) "name as capitalized";
970ed795
EL
97};
98
99
100type record Subject
101{
102 record of enumerated {
103 english,
104 math,
105 physics,
106 chemistry,
107 history
108 } order,
109 XSD.String english,
110 XSD.String math,
111 XSD.String physics,
112 XSD.String chemistry,
113 XSD.String history
114}
115with {
116variant "useOrder";
117variant "untagged";
118variant (english) "name as capitalized";
119variant (math) "name as capitalized";
120variant (physics) "name as capitalized";
121variant (chemistry) "name as capitalized";
122variant (history) "name as capitalized";
123};
124
125
126}
127with {
128encode "XML";
129variant "namespace as 'www.XmlTest.org/complex_all' prefix 'ns41'";
130variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
131}
This page took 0.031432 seconds and 5 git commands to generate.