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_ericsson_com_is_isco_IntegratedSite_R4L06_R4AB_1_02_HK84933_e.ttcn | |
13 | // Description: | |
14 | // References: | |
15 | // Rev: | |
16 | // Prodnr: | |
17 | // Updated: | |
18 | // Contact: http://ttcn.ericsson.se | |
19 | // | |
20 | //////////////////////////////////////////////////////////////////////////////// | |
21 | // | |
22 | // Generated from file(s): | |
23 | // | |
24 | // - IntegratedSite_HK84933.xsd | |
25 | // /* xml version = "1.0" encoding = "UTF-8" */ | |
26 | // /* targetnamespace = "http://www.ericsson.com/is/isco/IntegratedSite/R4L06/R4AB_1.02" */ | |
27 | // | |
28 | //////////////////////////////////////////////////////////////////////////////// | |
29 | ||
30 | ||
31 | module www_ericsson_com_is_isco_IntegratedSite_R4L06_R4AB_1_02_HK84933_e { | |
32 | ||
33 | ||
34 | import from XSD all; | |
35 | ||
36 | ||
37 | /* This is a cut-down version of IntegratedSite.xsd, just to illustrate | |
38 | the bug in HK84933. | |
39 | See regression_test/xsdConvert/MGW/IntegratedSite.xsd in its full | |
40 | 3700+ line glory. */ | |
41 | ||
42 | ||
43 | /* removed namespaces | |
44 | xmlns:confd="http://tail-f.com/ns/confd/1.0" | |
45 | xmlns:IsTypes="http://www.ericsson.com/is/isco/IsTypes/R4L06/R4AB_1.02" */ | |
46 | ||
47 | ||
48 | /* <xs:import namespace="http://www.w3.org/2001/XMLSchema" schemaLocation="XMLSchema.xsd"/> | |
49 | <xs:import namespace="http://tail-f.com/ns/confd/1.0" schemaLocation="confd.xsd"/> | |
50 | <xs:import namespace="http://www.ericsson.com/is/isco/IsTypes/R4L06/R4AB_1.02" schemaLocation="IsTypes.xsd"/> */ | |
51 | ||
52 | ||
53 | /* This is the cut-down version of IntegratedSite. The original has 3200 lines! | |
54 | This uses an unnamed (complex)type. */ | |
55 | ||
56 | ||
57 | /* The unnamed type */ | |
58 | type record IntegratedSite | |
59 | { | |
60 | record { | |
61 | record of record { | |
62 | XSD.Integer number optional | |
63 | } bladeSystem_list | |
64 | } bladeSystems | |
65 | } | |
66 | with { | |
3f84031e | 67 | variant "element"; |
68 | variant (bladeSystems) "name as capitalized"; | |
69 | variant (bladeSystems.bladeSystem_list) "untagged"; | |
70 | variant (bladeSystems.bladeSystem_list[-]) "name as 'BladeSystem'"; | |
970ed795 EL |
71 | }; |
72 | ||
73 | ||
74 | /* This is the reimplementation of IntegratedSite, | |
75 | which uses a named top-level type. */ | |
76 | ||
77 | ||
78 | type record IntegratedSite2 | |
79 | { | |
80 | record { | |
81 | record of BladeSystem2 bladeSystem2_list | |
82 | } bladeSystems2 | |
83 | } | |
84 | with { | |
3f84031e | 85 | variant "element"; |
86 | variant (bladeSystems2) "name as capitalized"; | |
87 | variant (bladeSystems2.bladeSystem2_list) "untagged"; | |
88 | variant (bladeSystems2.bladeSystem2_list[-]) "name as 'BladeSystem2'"; | |
970ed795 EL |
89 | }; |
90 | ||
91 | ||
92 | type record BladeSystem2 | |
93 | { | |
94 | XSD.Integer number optional | |
95 | }; | |
96 | ||
97 | ||
98 | } | |
99 | with { | |
3f84031e | 100 | encode "XML"; |
101 | variant "namespace as 'http://www.ericsson.com/is/isco/IntegratedSite/R4L06/R4AB_1.02' prefix 'IntegratedSite'"; | |
102 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; | |
103 | variant "elementFormQualified"; | |
970ed795 | 104 | } |