Commit | Line | Data |
---|---|---|
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 | ||
36 | module www_XmlTest_org_complex_all_e { | |
37 | ||
38 | ||
39 | import 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 | ||
47 | type 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 | } | |
61 | with { | |
62 | variant "useOrder"; | |
63 | variant (year) "name as capitalized"; | |
64 | variant (year) "attribute"; | |
65 | variant (english) "name as capitalized"; | |
66 | variant (math) "name as capitalized"; | |
67 | variant (physics) "name as capitalized"; | |
68 | variant (chemistry) "name as capitalized"; | |
69 | }; | |
70 | ||
71 | ||
72 | type 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 | } |
88 | with { | |
3abe9331 | 89 | variant "useOrder"; |
970ed795 EL |
90 | variant (year) "name as capitalized"; |
91 | variant (year) "attribute"; | |
3abe9331 | 92 | variant (english) "name as capitalized"; |
93 | variant (math) "name as capitalized"; | |
94 | variant (physics) "name as capitalized"; | |
95 | variant (chemistry) "name as capitalized"; | |
96 | variant (history) "name as capitalized"; | |
970ed795 EL |
97 | }; |
98 | ||
99 | ||
100 | type 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 | } | |
115 | with { | |
116 | variant "useOrder"; | |
117 | variant "untagged"; | |
118 | variant (english) "name as capitalized"; | |
119 | variant (math) "name as capitalized"; | |
120 | variant (physics) "name as capitalized"; | |
121 | variant (chemistry) "name as capitalized"; | |
122 | variant (history) "name as capitalized"; | |
123 | }; | |
124 | ||
125 | ||
126 | } | |
127 | with { | |
128 | encode "XML"; | |
129 | variant "namespace as 'www.XmlTest.org/complex_all' prefix 'ns41'"; | |
130 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; | |
131 | } |