Debian Codegraph @

regression_test/XML/HN15589/xsd/XTDL.xsd

raw
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!--
3 Copyright (c) 2000-2021 Ericsson Telecom AB
4 All rights reserved. This program and the accompanying materials
5 are made available under the terms of the Eclipse Public License v2.0
6 which accompanies this distribution, and is available at
7 https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
8
9 Contributors:
10 Balasko, Jeno
11 Raduly, Csaba
12 -->
13 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
14 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
15 xmlns="http://ttcn.ericsson.se/protocolModules/xtdp/xtdl"
16 targetNamespace="http://ttcn.ericsson.se/protocolModules/xtdp/xtdl"
17 attributeFormDefault="unqualified"
18 elementFormDefault="qualified"
19 >
20
21 <xsd:group name="widgets">
22 <xsd:choice>
23 <xsd:element name="window" type="window" />
24 <xsd:element name="tabbox" type="tabbox" />
25 </xsd:choice>
26 </xsd:group>
27
28 <xsd:element name="windowelem" type="window" />
29
30 <xsd:group name="embeddedwidget" >
31 <!-- not much of a --><xsd:choice>
32 <xsd:element name="tabbox" type="tabbox" />
33 </xsd:choice>
34 </xsd:group>
35
36 <xsd:group name="embeddedwidgets">
37 <xsd:sequence>
38 <xsd:group ref="embeddedwidget" minOccurs="0" maxOccurs="unbounded" />
39 </xsd:sequence>
40 </xsd:group>
41
42 <xsd:complexType name="window">
43 <xsd:sequence>
44 <xsd:element name="image" type="image" minOccurs="0" maxOccurs="unbounded" />
45 <xsd:group ref="embeddedwidgets"/>
46 </xsd:sequence>
47 <xsd:attribute name="id" type="xsd:string" />
48 <xsd:attribute name="title" type="xsd:string" />
49 <xsd:attribute name="width" type="xsd:decimal" />
50 <xsd:attribute name="height" type="xsd:decimal" />
51 <xsd:attribute name="orientation" type="orientation" fixed="vertical" />
52 </xsd:complexType>
53
54 <xsd:complexType name="tabbox">
55 <xsd:sequence>
56 <xsd:element name="tabs" type="tabs" />
57 <xsd:element name="tabpanels" type="tabpanels" />
58 </xsd:sequence>
59 <xsd:attribute name="disabled" type="xsd:boolean" />
60 <xsd:attribute name="flex" type="xsd:decimal" />
61 <xsd:attribute name="id" type="xsd:string" />
62 <xsd:attribute name="layout" type="tablayout" />
63 </xsd:complexType>
64
65 <xsd:complexType name="tabs">
66 <xsd:sequence>
67 <xsd:element name="tab" type="tab" minOccurs="0" maxOccurs="unbounded" />
68 </xsd:sequence>
69 </xsd:complexType>
70
71 <xsd:complexType name="tab">
72 <xsd:attribute name="label" type="xsd:string" use="required" />
73 <xsd:attribute name="id" type="xsd:string" />
74 </xsd:complexType>
75
76 <xsd:complexType name="tabpanels">
77 <xsd:sequence>
78 <xsd:element name="tabpanel" type="tabpanel" minOccurs="0" maxOccurs="unbounded" />
79 </xsd:sequence>
80 </xsd:complexType>
81
82 <xsd:complexType name="tabpanel">
83 <xsd:group ref="embeddedwidgets" />
84 <xsd:attribute name="id" type="xsd:string" />
85 <xsd:attribute name="orientation" type="orientation" />
86 <xsd:attribute name="maxheight" type="xsd:decimal" />
87 </xsd:complexType>
88
89 <xsd:simpleType name="tablayout">
90 <xsd:restriction base="xsd:string">
91 <xsd:enumeration value="WRAP" />
92 <xsd:enumeration value="SCROLL" />
93 <xsd:enumeration value="CARD" />
94 <xsd:enumeration value="LISTCARD" />
95 </xsd:restriction>
96 </xsd:simpleType>
97
98 <xsd:complexType name="image">
99 <xsd:attribute name="imagedata" type="xsd:string" />
100 <xsd:attribute name="imageurl" type="xsd:string" />
101 <xsd:attribute name="id" type="xsd:string" use="required" />
102 </xsd:complexType>
103
104
105
106 <xsd:simpleType name="orientation">
107 <xsd:restriction base="xsd:string">
108 <xsd:enumeration value="vertical" />
109 <xsd:enumeration value="horizontal" />
110 </xsd:restriction>
111 </xsd:simpleType>
112
113
114 </xsd:schema>