Commit | Line | Data |
---|---|---|
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_extension_e.ttcn | |
13 | // Description: | |
14 | // References: | |
15 | // Rev: | |
16 | // Prodnr: | |
17 | // Updated: Thu Sep 5 17:35:05 2013 | |
18 | // Contact: http://ttcn.ericsson.se | |
19 | // | |
20 | //////////////////////////////////////////////////////////////////////////////// | |
21 | // Generated from file(s): | |
22 | // - XmlTest_complex_extension.xsd | |
23 | // /* xml version = "1.0" */ | |
24 | // /* targetnamespace = "www.XmlTest.org/complex_extension" */ | |
25 | //////////////////////////////////////////////////////////////////////////////// | |
26 | // Modification header(s): | |
27 | //----------------------------------------------------------------------------- | |
28 | // Modified by: | |
29 | // Modification date: | |
30 | // Description: | |
31 | // Modification contact: | |
32 | //------------------------------------------------------------------------------ | |
33 | //////////////////////////////////////////////////////////////////////////////// | |
34 | ||
35 | ||
36 | module www_XmlTest_org_complex_extension_e { | |
37 | ||
38 | ||
39 | import from XSD all; | |
40 | ||
41 | ||
42 | /* This documentum tests based on | |
43 | XML Schema Part 0: Primer Second Edition | |
44 | 4.2 Deriving Types by Extension */ | |
45 | ||
46 | ||
47 | type record MySubjects3 | |
48 | { | |
49 | XSD.GYear year optional, | |
50 | XSD.String english optional, | |
51 | XSD.String math optional, | |
52 | XSD.String physics optional, | |
53 | XSD.String chemistry optional | |
54 | } | |
55 | with { | |
3f84031e | 56 | variant (year) "name as capitalized"; |
57 | variant (year) "attribute"; | |
58 | variant (english) "name as capitalized"; | |
59 | variant (math) "name as capitalized"; | |
60 | variant (physics) "name as capitalized"; | |
61 | variant (chemistry) "name as capitalized"; | |
970ed795 EL |
62 | }; |
63 | ||
64 | ||
65 | type record MySubjects3Extension | |
66 | { | |
67 | XSD.String semester optional, | |
68 | XSD.GYear year optional, | |
69 | XSD.String english optional, | |
70 | XSD.String math optional, | |
71 | XSD.String physics optional, | |
72 | XSD.String chemistry optional, | |
73 | XSD.String arts | |
74 | } | |
75 | with { | |
3f84031e | 76 | variant (semester) "name as capitalized"; |
77 | variant (semester) "attribute"; | |
78 | variant (year) "name as capitalized"; | |
79 | variant (year) "attribute"; | |
80 | variant (english) "name as capitalized"; | |
81 | variant (math) "name as capitalized"; | |
82 | variant (physics) "name as capitalized"; | |
83 | variant (chemistry) "name as capitalized"; | |
84 | variant (arts) "name as capitalized"; | |
970ed795 EL |
85 | }; |
86 | ||
87 | ||
88 | } | |
89 | with { | |
3f84031e | 90 | encode "XML"; |
91 | variant "namespace as 'www.XmlTest.org/complex_extension' prefix 'ns39'"; | |
92 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; | |
970ed795 | 93 | } |