Sync with 5.4.2
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_XmlTest_org_element_recordOfElements_e.ttcn
CommitLineData
970ed795
EL
1/*******************************************************************************
2* Copyright Ericsson Telecom AB
3*
3f84031e 4* XSD to TTCN-3 Translator version: CRL 113 200/5 R3B
970ed795
EL
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_element_recordOfElements_e.ttcn
13// Description:
14// References:
15// Rev:
16// Prodnr:
17// Updated: Thu Sep 5 17:35:08 2013
18// Contact: http://ttcn.ericsson.se
19//
20////////////////////////////////////////////////////////////////////////////////
21// Generated from file(s):
3abe9331 22// - XmlTest_element_recordOfElements_e.xsd
970ed795
EL
23// /* xml version = "1.0" */
24// /* targetnamespace = "www.XmlTest.org/element_recordOfElements" */
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_element_recordOfElements_e {
37
38
39import from XSD all;
40
41
42/* This documentum tests based on
43 XML Schema Part 1: Structures Second Edition */
44
45
46type record PersonInfo1
47{
48 XSD.String firstName,
49 XSD.String lastName,
50 XSD.Integer age,
51 XSD.String degree optional
52}
53with {
3f84031e 54 variant (degree) "defaultForEmpty as 'Msc'";
970ed795
EL
55};
56
57
58type record PersonInfo2
59{
60 XSD.String nationality optional,
61 XSD.String title optional,
62 XSD.String firstName,
63 XSD.String lastName,
64 XSD.Integer age optional
65}
66with {
3f84031e 67 variant (nationality) "defaultForEmpty as 'American'";
68 variant (nationality) "attribute";
69 variant (title) "attribute";
970ed795
EL
70};
71
72
73type PersonInfo2 PI
74with {
3f84031e 75 variant "element";
970ed795
EL
76};
77
78
79}
80with {
3f84031e 81 encode "XML";
82 variant "namespace as 'www.XmlTest.org/element_recordOfElements' prefix 'ns27'";
83 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
970ed795 84}
This page took 0.026464 seconds and 5 git commands to generate.