928191cb5b5ffa7fcb78293a287675e88c9ca3a9
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / www_XmlTest_org_element_recordOfElements_e.ttcn
1 /******************************************************************************
2 * Copyright (c) 2000-2016 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 * Contributors:
12 * Balasko, Jeno
13 * Lovassy, Arpad
14 * Raduly, Csaba
15 * Szabo, Bence Janos
16 *
17 ******************************************************************************/
18 //
19 // File: www_XmlTest_org_element_recordOfElements_e.ttcn
20 // Description:
21 // References:
22 // Rev:
23 // Prodnr:
24 // Updated: Thu Sep 5 17:35:08 2013
25 // Contact: http://ttcn.ericsson.se
26 //
27 ////////////////////////////////////////////////////////////////////////////////
28 // Generated from file(s):
29 // - XmlTest_element_recordOfElements_e.xsd
30 // /* xml version = "1.0" */
31 // /* targetnamespace = "www.XmlTest.org/element_recordOfElements" */
32 ////////////////////////////////////////////////////////////////////////////////
33 // Modification header(s):
34 //-----------------------------------------------------------------------------
35 // Modified by:
36 // Modification date:
37 // Description:
38 // Modification contact:
39 //------------------------------------------------------------------------------
40 ////////////////////////////////////////////////////////////////////////////////
41
42
43 module www_XmlTest_org_element_recordOfElements_e {
44
45
46 import from XSD all;
47
48
49 /* This documentum tests based on
50 XML Schema Part 1: Structures Second Edition */
51
52
53 type record PersonInfo1
54 {
55 XSD.String firstName,
56 XSD.String lastName,
57 XSD.Integer age,
58 XSD.String degree optional
59 }
60 with {
61 variant (degree) "defaultForEmpty as 'Msc'";
62 };
63
64
65 type record PersonInfo2
66 {
67 XSD.String nationality optional,
68 XSD.String title optional,
69 XSD.String firstName,
70 XSD.String lastName,
71 XSD.Integer age optional
72 }
73 with {
74 variant (nationality) "defaultForEmpty as 'American'";
75 variant (nationality) "attribute";
76 variant (title) "attribute";
77 };
78
79
80 type PersonInfo2 PI
81 with {
82 variant "element";
83 };
84
85
86 }
87 with {
88 encode "XML";
89 variant "namespace as 'www.XmlTest.org/element_recordOfElements' prefix 'ns27'";
90 variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
91 }
This page took 0.060918 seconds and 5 git commands to generate.