xsd2ttcn: fixed error when reading XMLSchema.xsd (Bug 495653)
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / http_www_example_org_2001_XMLSchema_e.ttcn
1 /*******************************************************************************
2 * Copyright (c) 2000-2016 Ericsson Telecom AB
3 *
4 * XSD to TTCN-3 Translator version: CRL 113 200/5 R4A
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: http_www_example_org_2001_XMLSchema_e.ttcn
13 // Description:
14 // References:
15 // Rev:
16 // Prodnr:
17 // Updated: Mon Jun 13 09:08:10 2015
18 // Contact: http://ttcn.ericsson.se
19 //
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - MyXMLSchema.xsd
23 // /* xml version = "1.0" encoding = "UTF-8" */
24 // /* targetnamespace = "http://www.example.org/2001/XMLSchema/e" */
25 ////////////////////////////////////////////////////////////////////////////////
26 // Modification header(s):
27 //-----------------------------------------------------------------------------
28 // Modified by:
29 // Modification date:
30 // Description:
31 // Modification contact:
32 //------------------------------------------------------------------------------
33 ////////////////////////////////////////////////////////////////////////////////
34
35
36 module http_www_example_org_2001_XMLSchema {
37
38
39 import from XSD all;
40
41
42 type record AttrDecls
43 {
44 record of union {
45 XSD.String attribute,
46 XSD.String attributeGroup
47 } choice_list
48 }
49 with {
50 variant "untagged";
51 variant (choice_list) "untagged";
52 variant (choice_list[-]) "untagged";
53 };
54
55
56 type record OpenAttrs
57 {
58 record of XSD.String attr optional
59 }
60 with {
61 variant "name as uncapitalized";
62 variant (attr) "anyAttributes except unqualified, 'http://www.example.org/2001/XMLSchema'";
63 };
64
65
66 type record Annotated
67 {
68 record of XSD.String attr optional,
69 XSD.String asd optional
70 }
71 with {
72 variant "name as uncapitalized";
73 variant (attr) "anyAttributes except unqualified, 'http://www.example.org/2001/XMLSchema'";
74 };
75
76
77 type union TypeDefParticle
78 {
79 XSD.String group_
80 }
81 with {
82 variant "untagged";
83 variant (group_) "name as 'group'";
84 };
85
86
87 type record RestrictionType
88 {
89 record of XSD.String attr optional,
90 XSD.String asd optional,
91 union {
92 TypeDefParticle typeDefParticle
93 } choice optional,
94 record of union {
95 XSD.String attribute,
96 XSD.String attributeGroup
97 } choice_list
98 }
99 with {
100 variant "name as uncapitalized";
101 variant (attr) "anyAttributes except unqualified, 'http://www.example.org/2001/XMLSchema'";
102 variant (choice) "untagged";
103 variant (choice_list) "untagged";
104 variant (choice_list[-]) "untagged";
105 };
106
107
108 type record ComplexRestrictionType
109 {
110 record of XSD.String attr optional,
111 union {
112 TypeDefParticle typeDefParticle
113 } choice,
114 record of union {
115 XSD.String attribute,
116 XSD.String attributeGroup
117 } choice_list
118 }
119 with {
120 variant "name as uncapitalized";
121 variant (attr) "anyAttributes except unqualified, 'http://www.example.org/2001/XMLSchema'";
122 variant (choice) "untagged";
123 variant (choice_list) "untagged";
124 variant (choice_list[-]) "untagged";
125 };
126
127
128 }
129 with {
130 encode "XML";
131 variant "namespace as 'http://www.example.org/2001/XMLSchema' prefix 'a'";
132 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
133 variant "elementFormQualified";
134 }
This page took 0.047344 seconds and 5 git commands to generate.