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_type_attributegroup_nillable_e.ttcn |
13 | // Description: |
14 | // References: |
15 | // Rev: |
16 | // Prodnr: |
17 | // Updated: Thu Aug 6 13:38:06 2014 |
18 | // Contact: http://ttcn.ericsson.se |
19 | // |
20 | //////////////////////////////////////////////////////////////////////////////// |
21 | // Generated from file(s): |
22 | // - attributegroup_nillable.xsd |
23 | // /* xml version = "1.0" encoding = "UTF-8" */ |
24 | // /* targetnamespace = "www.example.org/type/attributegroup/nillable/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_type_attributegroup_nillable { |
37 | |
38 | |
39 | import from XSD all; |
40 | |
41 | |
42 | type record Remark |
43 | { |
44 | XSD.String content optional |
45 | } |
46 | with { |
3f84031e |
47 | variant "name as uncapitalized"; |
48 | variant "useNil"; |
49 | variant "element"; |
3abe9331 |
50 | }; |
51 | |
52 | |
53 | type record SeqNillable |
54 | { |
55 | XSD.Integer bar optional, |
56 | XSD.String birthDateAttrGroup optional, |
57 | XSD.String birthPlaceAttrGroup optional, |
58 | XSD.Integer foo optional, |
59 | record of XSD.String attr optional, |
60 | record { |
61 | record { |
62 | XSD.String content optional |
63 | } forename, |
64 | record { |
65 | XSD.String content optional |
66 | } surname optional, |
67 | record of record { |
68 | XSD.String content optional |
69 | } livingAddress_list, |
70 | Remark remark |
71 | } content optional |
72 | } |
73 | with { |
3f84031e |
74 | variant "useNil"; |
75 | variant "element"; |
76 | variant (bar) "attribute"; |
77 | variant (birthDateAttrGroup) "attribute"; |
78 | variant (birthPlaceAttrGroup) "attribute"; |
79 | variant (foo) "attribute"; |
80 | variant (attr) "anyAttributes from 'www.example.org/type/attributegroup/nillable'"; |
81 | variant (content.forename) "useNil"; |
82 | variant (content.surname) "useNil"; |
83 | variant (content.livingAddress_list) "untagged"; |
84 | variant (content.livingAddress_list[-]) "name as 'livingAddress'"; |
85 | variant (content.livingAddress_list[-]) "useNil"; |
3abe9331 |
86 | }; |
87 | |
88 | |
89 | } |
90 | with { |
3f84031e |
91 | encode "XML"; |
92 | variant "namespace as 'www.example.org/type/attributegroup/nillable' prefix 'ns7'"; |
93 | variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'"; |
3abe9331 |
94 | } |