Sync with 5.4.2
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_example_org_generate_element_substitution_e.ttcn
1 /*******************************************************************************
2 * Copyright (c) 2000-2015 Ericsson Telecom AB
3 *
4 * XSD to TTCN-3 Translator version: CRL 113 200/5 R2A
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_example_org_generate_element_substitution_e.ttcn
13 // Description:
14 // References:
15 // Rev:
16 // Prodnr:
17 // Updated: Mon Oct 19 09:34:07 2014
18 // Contact: http://ttcn.ericsson.se
19 //
20 ////////////////////////////////////////////////////////////////////////////////
21 // Generated from file(s):
22 // - generate_element_substitution_e.xsd
23 // /* xml version = "1.0" encoding = "UTF-8" */
24 // /* targetnamespace = "www.example.org/generate/element/substitution/e" */
25 ////////////////////////////////////////////////////////////////////////////////
26 // Modification header(s):
27 //-----------------------------------------------------------------------------
28 // Modified by:
29 // Modification date:
30 // Description:
31 // Modification contact:
32 //------------------------------------------------------------------------------
33 ////////////////////////////////////////////////////////////////////////////////
34
35
36 module www_example_org_generate_element_substitution {
37
38
39 import from XSD all;
40
41
42 type record ComplexEnum
43 {
44 XSD.Integer bar optional,
45 XSD.Float foo optional,
46 XSD.String base
47 }
48 with {
49 variant "name as uncapitalized";
50 variant "element";
51 variant (bar) "attribute";
52 variant (foo) "attribute";
53 variant (base) "untagged";
54 };
55
56
57 type record Member2
58 {
59 XSD.Integer bar optional,
60 XSD.Float foo optional,
61 XSD.String unitOfAge optional,
62 XSD.String base
63 }
64 with {
65 variant "name as uncapitalized";
66 variant "element";
67 variant (bar) "attribute";
68 variant (foo) "attribute";
69 variant (unitOfAge) "attribute";
70 variant (base) "untagged";
71 };
72
73
74 type record Ize
75 {
76 record of Head_group head_list
77 }
78 with {
79 variant "name as uncapitalized";
80 variant "element";
81 variant (head_list) "untagged";
82 variant (head_list[-]) "name as 'head'";
83 };
84
85
86 type union Head_group
87 {
88 XSD.String head,
89 Member2 member2
90 }
91 with {
92 variant "untagged";
93 variant (head) "form as qualified";
94 variant (member2) "block";
95 };
96
97
98 }
99 with {
100 encode "XML";
101 variant "namespace as 'www.example.org/generate/element/substitution' prefix 'this'";
102 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
103 }
This page took 0.039931 seconds and 5 git commands to generate.