3abe9331 |
1 | /******************************************************************************* |
2 | * Copyright (c) 2000-2015 Ericsson Telecom AB |
3 | * |
4 | * XSD to TTCN-3 Translator version: CRL 113 200/4 R3A |
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_example_org_qualified_element_attrib_e.ttcn |
13 | // Description: |
14 | // References: |
15 | // Rev: |
16 | // Prodnr: |
17 | // Updated: Mon Aug 10 13:22:23 2014 |
18 | // Contact: http://ttcn.ericsson.se |
19 | // |
20 | //////////////////////////////////////////////////////////////////////////////// |
21 | // Generated from file(s): |
22 | // - qualified_element_attrib.xsd |
23 | // /* xml version = "1.0" encoding = "UTF-8" */ |
24 | // /* targetnamespace = "www.example.org/qualified/element/attrib/e" */ |
25 | //////////////////////////////////////////////////////////////////////////////// |
26 | // Modification header(s): |
27 | //----------------------------------------------------------------------------- |
28 | // Modified by: |
29 | // Modification date: |
30 | // Description: |
31 | // Modification contact: |
32 | //------------------------------------------------------------------------------ |
33 | //////////////////////////////////////////////////////////////////////////////// |
34 | |
35 | |
36 | module www_example_org_qualified_element_attrib { |
37 | |
38 | |
39 | import from XSD all; |
40 | |
41 | |
42 | type record Elements |
43 | { |
44 | XSD.String elem1, |
45 | XSD.String elem2, |
46 | XSD.String elem3 |
47 | } |
48 | with { |
3f84031e |
49 | variant "name as uncapitalized"; |
50 | variant "element"; |
51 | variant (elem3) "form as unqualified"; |
3abe9331 |
52 | }; |
53 | |
54 | |
55 | type record Attributes |
56 | { |
57 | XSD.String attrib1 optional, |
58 | XSD.String attrib2 optional, |
59 | XSD.String attrib3 optional |
60 | } |
61 | with { |
3f84031e |
62 | variant "name as uncapitalized"; |
63 | variant "element"; |
64 | variant (attrib1) "attribute"; |
65 | variant (attrib2) "attribute"; |
66 | variant (attrib3) "form as unqualified"; |
67 | variant (attrib3) "attribute"; |
3abe9331 |
68 | }; |
69 | |
70 | |
71 | } |
72 | with { |
3f84031e |
73 | encode "XML"; |
74 | variant "namespace as 'www.example.org/qualified/element/attrib' prefix 'ns22'"; |
75 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; |
76 | variant "attributeFormQualified"; |
77 | variant "elementFormQualified"; |
3abe9331 |
78 | } |