Titan Core Initial Contribution
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / XmlTest_expectedTtcns / ietf_params_xml_ns_pidf_e.ttcn
CommitLineData
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: ietf_params_xml_ns_pidf_e.ttcn
13// Description:
14// References:
15// Rev:
16// Prodnr:
17// Updated:
18// Contact: http://ttcn.ericsson.se
19//
20////////////////////////////////////////////////////////////////////////////////
21//
22// Generated from file(s):
23//
24// - pidf.xsd
25// /* xml version = "1.0" encoding = "UTF-8" */
26// /* targetnamespace = "urn:ietf:params:xml:ns:pidf" */
27//
28////////////////////////////////////////////////////////////////////////////////
29
30
31module ietf_params_xml_ns_pidf_e {
32
33
34import from XSD all;
35
36
37import from www_w3_org_XML_1998_namespace_e all;
38
39
40/* This import brings in the XML language attribute xml:lang */
41
42
43type Presence_1 Presence
44with {
45variant "name as uncapitalized";
46variant "element";
47};
48
49
50type record Presence_1
51{
52 XSD.AnyURI entity,
53 record of Tuple tuple_list,
54 record of Note note_list,
55 record of XSD.String elem_list
56}
57with {
58variant "name as 'presence'";
59variant (entity) "attribute";
60variant (tuple_list) "untagged";
61variant (tuple_list[-]) "name as 'tuple'";
62variant (note_list) "untagged";
63variant (note_list[-]) "name as 'note'";
64variant (elem_list) "untagged";
65variant (elem_list[-]) "anyElement except unqualified, 'urn:ietf:params:xml:ns:pidf'";
66};
67
68
69type record Tuple
70{
71 XSD.ID id,
72 Status status,
73 record of XSD.String elem_list,
74 Contact contact optional,
75 record of Note note_list,
76 XSD.DateTime timestamp optional
77}
78with {
79variant "name as uncapitalized";
80variant (id) "attribute";
81variant (elem_list) "untagged";
82variant (elem_list[-]) "anyElement except unqualified, 'urn:ietf:params:xml:ns:pidf'";
83variant (note_list) "untagged";
84variant (note_list[-]) "name as 'note'";
85};
86
87
88type record Status
89{
90 Basic basic optional,
91 record of XSD.String elem_list
92}
93with {
94variant "name as uncapitalized";
95variant (elem_list) "untagged";
96variant (elem_list[-]) "anyElement except unqualified, 'urn:ietf:params:xml:ns:pidf'";
97};
98
99
100type enumerated Basic
101{
102 closed,
103 open
104}
105with {
106variant "name as uncapitalized";
107};
108
109
110type record Contact
111{
112 Qvalue priority optional,
113 XSD.AnyURI base
114}
115with {
116variant "name as uncapitalized";
117variant (priority) "attribute";
118variant (base) "untagged";
119};
120
121
122type record Note
123{
124 Lang lang optional,
125 XSD.String base
126}
127with {
128variant "name as uncapitalized";
129variant (lang) "attribute";
130variant (base) "untagged";
131};
132
133
134type XSD.Decimal Qvalue
135with {
136variant "name as uncapitalized";
137};
138
139
140/* Global Attributes */
141
142
143/* This attribute may be used on any element within an optional
144 PIDF extension to indicate that the corresponding element must
145 be understood by the PIDF processor if the enclosing optional
146 element is to be handled. */
147type XSD.Boolean MustUnderstand
148with {
149variant "name as uncapitalized";
150variant "defaultForEmpty as '0'";
151variant "attribute";
152};
153
154
155}
156with {
157encode "XML";
158variant "namespace as 'urn:ietf:params:xml:ns:pidf' prefix 'pidf'";
159variant "controlNamespace 'http://www.w3.org/2001/XMLSchema-instance' prefix 'xsi'";
160variant "elementFormQualified";
161}
This page took 0.030277 seconds and 5 git commands to generate.