Sync with 5.4.2
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_XmlTest_org_complex_include1_e.ttcn
CommitLineData
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_include.ttcn
13// Description:
14// References:
15// Rev:
16// Prodnr:
17// Updated: Fri Sep 6 15:14:08 2013
18// Contact: http://ttcn.ericsson.se
19//
20////////////////////////////////////////////////////////////////////////////////
21// Generated from file(s):
22// - XmlTest_complex_include.xsd
23// /* xml version = "1.0" */
24// /* targetnamespace = "www.XmlTest.org/complex_include" */
25// - XmlTest_complex_include1.xsd
26// /* xml version = "1.0" */
27// /* targetnamespace = "www.XmlTest.org/complex_include" */
28////////////////////////////////////////////////////////////////////////////////
29// Modification header(s):
30//-----------------------------------------------------------------------------
31// Modified by:
32// Modification date:
33// Description:
34// Modification contact:
35//------------------------------------------------------------------------------
36////////////////////////////////////////////////////////////////////////////////
37
38
39module www_XmlTest_org_complex_include1_e {
40
41
42import from XSD all;
43
44
45/* This documentum tests based on
46 XML Schema Part 0: Primer Second Edition
47 5 Advanced Concepts III. The Quantity Report
48 5.4 Importing Types
49 XML Schema Part 1: Structures Second Edition
50 ...
51 ETSI ES 201 873-9 V4.1.2
52 This is the including schema */
53
54
55type record PurchaseReport
56{
57 XSD.Duration period optional,
58 XSD.Date periodEnding optional,
59 RegionsType regions,
60 PartsType parts
61}
62with {
3f84031e 63 variant "name as uncapitalized";
64 variant "element";
65 variant (period) "attribute";
66 variant (periodEnding) "attribute";
970ed795
EL
67};
68
69
70/* This documentum tests based on
71 XML Schema Part 0: Primer Second Edition
72 5 Advanced Concepts III. The Quantity Report
73 5.4 Importing Types
74 XML Schema Part 1: Structures Second Edition
75 ...
76 This is the included schema with proper namespace */
77
78
79type record RegionsType
80{
81 record length(1 .. infinity) of record {
82 XSD.PositiveInteger code optional,
83 record length(1 .. infinity) of record {
84 XSD.String number optional,
85 XSD.PositiveInteger quantity optional
86 } part_list
87 } zip_list
88}
89with {
3f84031e 90 variant (zip_list) "untagged";
91 variant (zip_list[-]) "name as 'zip'";
92 variant (zip_list[-].code) "attribute";
93 variant (zip_list[-].part_list) "untagged";
94 variant (zip_list[-].part_list[-]) "name as 'part'";
95 variant (zip_list[-].part_list[-].number) "attribute";
96 variant (zip_list[-].part_list[-].quantity) "attribute";
970ed795
EL
97};
98
99
100type record PartsType
101{
102 record length(1 .. infinity) of record {
103 XSD.String number optional,
104 XSD.String base
105 } part_list
106}
107with {
3f84031e 108 variant (part_list) "untagged";
109 variant (part_list[-]) "name as 'part'";
110 variant (part_list[-].number) "attribute";
111 variant (part_list[-].base) "untagged";
970ed795
EL
112};
113
114
115}
116with {
3f84031e 117 encode "XML";
118 variant "namespace as 'www.XmlTest.org/complex_include' prefix 'r'";
119 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
120 variant "elementFormQualified";
970ed795 121}
This page took 0.028314 seconds and 5 git commands to generate.