Sync with 5.4.2
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_XmlTest_org_complex_restriction_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_restriction_e.ttcn
13// Description:
14// References:
15// Rev:
16// Prodnr:
17// Updated: Thu Sep 5 17:35:03 2013
18// Contact: http://ttcn.ericsson.se
19//
20////////////////////////////////////////////////////////////////////////////////
21// Generated from file(s):
22// - XmlTest_complex_restriction.xsd
23// /* xml version = "1.0" */
24// /* targetnamespace = "www.XmlTest.org/complex_restriction" */
25////////////////////////////////////////////////////////////////////////////////
26// Modification header(s):
27//-----------------------------------------------------------------------------
28// Modified by:
29// Modification date:
30// Description:
31// Modification contact:
32//------------------------------------------------------------------------------
33////////////////////////////////////////////////////////////////////////////////
34
35
36module www_XmlTest_org_complex_restriction_e {
37
38
39import from XSD all;
40
41
42/* This documentum tests based on
43 XML Schema Part 0: Primer Second Edition
44 4.4 Deriving Types by Restriction
45 XML Schema Part 1: Structures Secod Edition
46 3.4.2 XML Representation of Complex Type Definitions */
47
48
49type record MySubjects4
50{
51 XSD.GYear year optional,
52 XSD.String english optional,
53 XSD.String math optional,
54 record length(0 .. 3) of XSD.String physics_list,
55 XSD.String chemistry optional
56}
57with {
3f84031e 58 variant (year) "name as capitalized";
59 variant (year) "attribute";
60 variant (english) "name as capitalized";
61 variant (math) "name as capitalized";
62 variant (physics_list) "untagged";
63 variant (physics_list[-]) "name as 'Physics'";
64 variant (chemistry) "name as capitalized";
970ed795
EL
65};
66
67
68type record MySubjects4Restriction
69{
70 XSD.GYear year optional,
71 XSD.String english,
72 XSD.String math,
73 record length(1 .. 2) of XSD.String physics_list
74}
75with {
3f84031e 76 variant (year) "name as capitalized";
77 variant (year) "attribute";
78 variant (english) "name as capitalized";
79 variant (math) "name as capitalized";
80 variant (physics_list) "untagged";
81 variant (physics_list[-]) "name as 'Physics'";
970ed795
EL
82};
83
84
85}
86with {
3f84031e 87 encode "XML";
88 variant "namespace as 'www.XmlTest.org/complex_restriction' prefix 'ns36'";
89 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
970ed795 90}
This page took 0.027113 seconds and 5 git commands to generate.