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: ietf_params_xml_ns_rlmi_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 | // - rlmi.xsd | |
25 | // /* xml version = "1.0" encoding = "UTF-8" */ | |
26 | // /* targetnamespace = "urn:ietf:params:xml:ns:rlmi" */ | |
27 | // | |
28 | //////////////////////////////////////////////////////////////////////////////// | |
29 | ||
30 | ||
31 | module ietf_params_xml_ns_rlmi_e { | |
32 | ||
33 | ||
34 | import from XSD all; | |
35 | ||
36 | ||
37 | import from www_w3_org_XML_1998_namespace_e all; | |
38 | ||
39 | ||
40 | type record List | |
41 | { | |
42 | record of XSD.String attr, | |
43 | XSD.String cid optional, | |
44 | XSD.Boolean fullState, | |
45 | XSD.AnyURI uri, | |
46 | XSD.UnsignedInt version, | |
47 | record of XSD.Name name_list, | |
48 | record of Resource resource_list | |
49 | } | |
50 | with { | |
3f84031e | 51 | variant "name as uncapitalized"; |
52 | variant "element"; | |
53 | variant (attr) "anyAttributes"; | |
54 | variant (cid) "attribute"; | |
55 | variant (fullState) "attribute"; | |
56 | variant (uri) "attribute"; | |
57 | variant (version) "attribute"; | |
58 | variant (name_list) "untagged"; | |
59 | variant (resource_list) "untagged"; | |
970ed795 EL |
60 | }; |
61 | ||
62 | ||
63 | type record Resource | |
64 | { | |
65 | record of XSD.String attr, | |
66 | XSD.AnyURI uri, | |
67 | record of XSD.Name name_list, | |
68 | record of Instance instance_list | |
69 | } | |
70 | with { | |
3f84031e | 71 | variant "name as uncapitalized"; |
72 | variant "element"; | |
73 | variant (attr) "anyAttributes"; | |
74 | variant (uri) "attribute"; | |
75 | variant (name_list) "untagged"; | |
76 | variant (instance_list) "untagged"; | |
970ed795 EL |
77 | }; |
78 | ||
79 | ||
80 | type record Instance | |
81 | { | |
82 | record of XSD.String attr, | |
83 | XSD.String cid optional, | |
84 | XSD.String id, | |
85 | XSD.String reason optional, | |
86 | enumerated { | |
87 | active, | |
88 | pending, | |
89 | terminated | |
90 | } state, | |
91 | record of XSD.String elem_list | |
92 | } | |
93 | with { | |
3f84031e | 94 | variant "name as uncapitalized"; |
95 | variant "element"; | |
96 | variant (attr) "anyAttributes"; | |
97 | variant (cid) "attribute"; | |
98 | variant (id) "attribute"; | |
99 | variant (reason) "attribute"; | |
100 | variant (state) "attribute"; | |
101 | variant (elem_list) "untagged"; | |
102 | variant (elem_list[-]) "anyElement"; | |
970ed795 EL |
103 | }; |
104 | ||
105 | ||
106 | type record Name | |
107 | { | |
108 | Lang lang optional, | |
109 | XSD.String base | |
110 | } | |
111 | with { | |
3f84031e | 112 | variant "name as uncapitalized"; |
113 | variant "element"; | |
114 | variant (lang) "attribute"; | |
115 | variant (base) "untagged"; | |
970ed795 EL |
116 | }; |
117 | ||
118 | ||
119 | } | |
120 | with { | |
3f84031e | 121 | encode "XML"; |
122 | variant "namespace as 'urn:ietf:params:xml:ns:rlmi'"; | |
123 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; | |
124 | variant "elementFormQualified"; | |
970ed795 | 125 | } |