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 | // | |
3f84031e | 12 | // File: www_XmlTest_org_complex_include_e.ttcn |
970ed795 EL |
13 | // Description: |
14 | // References: | |
15 | // Rev: | |
16 | // Prodnr: | |
17 | // Updated: Thu Sep 5 17:35:06 2013 | |
18 | // Contact: http://ttcn.ericsson.se | |
19 | // | |
20 | //////////////////////////////////////////////////////////////////////////////// | |
21 | // Generated from file(s): | |
22 | // - XmlTest_complex_include1.xsd | |
23 | // /* xml version = "1.0" */ | |
24 | // /* targetnamespace = "www.XmlTest.org/complex_include" */ | |
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_include2_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 | 5 Advanced Concepts III. The Quantity Report | |
45 | 5.4 Importing Types | |
46 | XML Schema Part 1: Structures Second Edition | |
47 | ... | |
48 | ETSI ES 201 873-9 V4.1.2 | |
49 | This is the included schema with proper namespace */ | |
50 | ||
51 | ||
52 | type record RegionsType | |
53 | { | |
54 | record length(1 .. infinity) of record { | |
55 | XSD.PositiveInteger code optional, | |
56 | record length(1 .. infinity) of record { | |
57 | XSD.String number optional, | |
58 | XSD.PositiveInteger quantity optional | |
59 | } part_list | |
60 | } zip_list | |
61 | } | |
62 | with { | |
3f84031e | 63 | variant (zip_list) "untagged"; |
64 | variant (zip_list[-]) "name as 'zip'"; | |
65 | variant (zip_list[-].code) "attribute"; | |
66 | variant (zip_list[-].part_list) "untagged"; | |
67 | variant (zip_list[-].part_list[-]) "name as 'part'"; | |
68 | variant (zip_list[-].part_list[-].number) "attribute"; | |
69 | variant (zip_list[-].part_list[-].quantity) "attribute"; | |
970ed795 EL |
70 | }; |
71 | ||
72 | ||
73 | type record PartsType | |
74 | { | |
75 | record length(1 .. infinity) of record { | |
76 | XSD.String number optional, | |
77 | XSD.String base | |
78 | } part_list | |
79 | } | |
80 | with { | |
3f84031e | 81 | variant (part_list) "untagged"; |
82 | variant (part_list[-]) "name as 'part'"; | |
83 | variant (part_list[-].number) "attribute"; | |
84 | variant (part_list[-].base) "untagged"; | |
970ed795 EL |
85 | }; |
86 | ||
87 | ||
88 | } | |
89 | with { | |
3f84031e | 90 | encode "XML"; |
91 | variant "namespace as 'www.XmlTest.org/complex_include2' prefix 'r2'"; | |
92 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; | |
93 | variant "elementFormQualified"; | |
970ed795 | 94 | } |