Respect $XDG_CONFIG_HOME in openbox-session
[dana/openbox.git] / data / rc.xsd
1 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- nxml -*- -->
2
3 <!-- XML Schema for the Openbox window manager configuration file -->
4
5 <!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN"
6                                 "http://www.w3.org/2001/XMLSchema.dtd" [
7 <!ATTLIST schema xmlns:ob CDATA #IMPLIED>
8 <!ENTITY % p "xsd:">
9 <!ENTITY % s ":xsd">
10 ]>
11
12 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
13     targetNamespace="http://openbox.org/4.0/rc"
14     xmlns:ob="http://openbox.org/4.0/rc"
15     elementFormDefault="qualified"
16     attributeFormDefault="unqualified">
17     <!--
18          root node
19       -->
20     <xsd:element name="openbox_config">
21         <xsd:annotation>
22             <xsd:documentation>all these elements are expected in a openbox config file</xsd:documentation>
23         </xsd:annotation>
24         <xsd:complexType>
25             <xsd:all>
26                 <xsd:element name="resistance" type="ob:resistance"/>
27                 <xsd:element name="focus" type="ob:focus"/>
28                 <xsd:element name="placement" type="ob:placement"/>
29                 <xsd:element name="theme" type="ob:theme"/>
30                 <xsd:element name="desktops" type="ob:desktops"/>
31                 <xsd:element name="resize" type="ob:resize"/>
32                 <xsd:element minOccurs="0" name="margins" type="ob:margins"/>
33                 <xsd:element name="dock" type="ob:dock"/>
34                 <xsd:element name="keyboard" type="ob:keyboard"/>
35                 <xsd:element name="mouse" type="ob:mouse"/>
36                 <xsd:element name="menu" type="ob:menu"/>
37                 <xsd:element name="applications" type="ob:applications"/>
38             </xsd:all>
39         </xsd:complexType>
40     </xsd:element>
41     <!--
42          complex types
43       -->
44     <xsd:complexType name="resistance">
45         <xsd:annotation>
46             <xsd:documentation>defines behaviour of windows when close to each other or the screen edge</xsd:documentation>
47         </xsd:annotation>
48         <xsd:all>
49             <xsd:element minOccurs="0" name="strength" type="xsd:integer"/>
50             <xsd:element minOccurs="0" name="screen_edge_strength" type="xsd:integer"/>
51         </xsd:all>
52     </xsd:complexType>
53     <xsd:complexType name="focus">
54         <xsd:annotation>
55             <xsd:documentation>defines aspects of window focus</xsd:documentation>
56         </xsd:annotation>
57         <xsd:all>
58             <xsd:element minOccurs="0" name="focusNew" type="ob:bool"/>
59             <xsd:element minOccurs="0" name="focusLast" type="ob:bool"/>
60             <xsd:element minOccurs="0" name="followMouse" type="ob:bool"/>
61             <xsd:element minOccurs="0" name="underMouse" type="ob:bool"/>
62             <xsd:element minOccurs="0" name="focusDelay" type="xsd:integer"/>
63             <xsd:element minOccurs="0" name="raiseOnFocus" type="ob:bool"/>
64         </xsd:all>
65     </xsd:complexType>
66     <xsd:complexType name="placement">
67         <xsd:annotation>
68             <xsd:documentation>defines how new windows are placed</xsd:documentation>
69         </xsd:annotation>
70         <xsd:sequence>
71             <xsd:element minOccurs="0" name="policy" type="ob:placementpolicy"/>
72             <xsd:element minOccurs="0" name="center" type="ob:bool"/>
73             <xsd:element minOccurs="0" name="monitor" type="ob:placementmonitor"/>
74         </xsd:sequence>
75     </xsd:complexType>
76     <xsd:complexType name="margins">
77         <xsd:annotation>
78             <xsd:documentation>defines desktop margins</xsd:documentation>
79         </xsd:annotation>
80         <xsd:all>
81             <xsd:element minOccurs="0" name="top" type="xsd:integer"/>
82             <xsd:element minOccurs="0" name="left" type="xsd:integer"/>
83             <xsd:element minOccurs="0" name="right" type="xsd:integer"/>
84             <xsd:element minOccurs="0" name="bottom" type="xsd:integer"/>
85         </xsd:all>
86     </xsd:complexType>              
87     <xsd:complexType name="theme">
88         <xsd:sequence>
89             <xsd:element minOccurs="0" name="name" type="xsd:string"/>
90             <xsd:element minOccurs="0" name="titleLayout" type="xsd:string"/>
91             <xsd:element minOccurs="0" name="keepBorder" type="ob:bool"/>
92             <xsd:element minOccurs="0" name="animateIconify" type="ob:bool"/>
93             <xsd:element minOccurs="0" maxOccurs="unbounded" name="font" type="ob:font"/>
94         </xsd:sequence>
95     </xsd:complexType>
96     <xsd:complexType name="font">
97         <xsd:all>
98             <xsd:element minOccurs="0" name="name" type="xsd:string"/>
99             <xsd:element minOccurs="0" name="size" type="xsd:integer"/>
100             <xsd:element minOccurs="0" name="weight" type="ob:fontweight"/>
101             <xsd:element minOccurs="0" name="slant" type="ob:fontslant"/>
102         </xsd:all>
103         <xsd:attribute name="place" type="ob:fontplace" use="required"/>
104     </xsd:complexType>
105     <xsd:complexType name="desktops">
106         <xsd:annotation>
107             <xsd:documentation>defines the number and names of desktops</xsd:documentation>
108         </xsd:annotation>
109         <xsd:all>
110             <xsd:element minOccurs="0" name="number" type="xsd:integer"/>
111             <xsd:element minOccurs="0" name="firstdesk" type="xsd:integer"/>
112             <xsd:element minOccurs="0" name="names">
113                 <xsd:complexType>
114                     <xsd:sequence>
115                         <xsd:element minOccurs="0" maxOccurs="unbounded" name="name" type="xsd:string"/>
116                     </xsd:sequence>
117                 </xsd:complexType>
118             </xsd:element>
119             <xsd:element minOccurs="0" name="popupTime" type="xsd:integer"/>
120         </xsd:all>
121     </xsd:complexType>
122     <xsd:complexType name="resize">
123         <xsd:all>
124             <xsd:element minOccurs="0" name="drawContents" type="ob:bool"/>
125             <xsd:element minOccurs="0" name="popupShow" type="ob:popupshow"/>
126             <xsd:element minOccurs="0" name="popupPosition" type="ob:popupposition"/>
127             <xsd:element minOccurs="0" name="popupFixedPosition" type="ob:popupfixedposition"/>
128         </xsd:all>
129     </xsd:complexType>
130     <xsd:complexType name="popupfixedposition">
131         <xsd:all>
132             <xsd:element minOccurs="0" name="x" type="ob:center_or_int"/>
133             <xsd:element minOccurs="0" name="y" type="ob:center_or_int"/>
134         </xsd:all>
135     </xsd:complexType>
136     <xsd:complexType name="dock">
137         <xsd:all>
138             <xsd:element minOccurs="0" name="position" type="ob:dock_position"/>
139             <xsd:element minOccurs="0" name="floatingX" type="xsd:integer"/>
140             <xsd:element minOccurs="0" name="floatingY" type="xsd:integer"/>
141             <xsd:element minOccurs="0" name="noStrut" type="ob:bool"/>
142             <xsd:element minOccurs="0" name="stacking" type="ob:layer"/>
143             <xsd:element minOccurs="0" name="direction" type="ob:direction"/>
144             <xsd:element minOccurs="0" name="autoHide" type="ob:bool"/>
145             <xsd:element minOccurs="0" name="hideDelay" type="xsd:integer"/>
146             <xsd:element minOccurs="0" name="showDelay" type="xsd:integer"/>
147             <xsd:element minOccurs="0" name="moveButton" type="ob:button"/>
148         </xsd:all>
149     </xsd:complexType>
150     <xsd:complexType name="action">
151         <xsd:all>
152             <xsd:element minOccurs="0" name="execute" type="xsd:string"/>
153             <xsd:element minOccurs="0" name="startupnotify" type="ob:notify"/>
154             <xsd:element minOccurs="0" name="command" type="xsd:string"/>
155             <xsd:element minOccurs="0" name="allDesktops" type="ob:bool"/>
156             <xsd:element minOccurs="0" name="menu" type="xsd:string"/>
157             <xsd:element minOccurs="0" name="delta" type="xsd:integer"/>
158             <xsd:element minOccurs="0" name="x" type="xsd:integer"/>
159             <xsd:element minOccurs="0" name="y" type="xsd:integer"/>
160             <xsd:element minOccurs="0" name="left" type="xsd:integer"/>
161             <xsd:element minOccurs="0" name="right" type="xsd:integer"/>
162             <xsd:element minOccurs="0" name="up" type="xsd:integer"/>
163             <xsd:element minOccurs="0" name="down" type="xsd:integer"/>
164             <xsd:element minOccurs="0" name="desktop">
165                 <xsd:simpleType>
166                     <xsd:union memberTypes="xsd:integer ob:bool"/>
167                 </xsd:simpleType>
168             </xsd:element>
169             <xsd:element minOccurs="0" name="edge" type="xsd:string"/>
170             <xsd:element minOccurs="0" name="wrap" type="ob:bool"/>
171             <xsd:element minOccurs="0" name="follow" type="ob:bool"/>
172             <xsd:element minOccurs="0" name="dialog" type="ob:bool"/>
173             <xsd:element minOccurs="0" name="panels" type="ob:bool"/>
174             <xsd:element minOccurs="0" name="here" type="ob:bool"/>
175             <xsd:element minOccurs="0" name="linear" type="ob:bool"/>
176             <xsd:element minOccurs="0" name="group" type="ob:bool"/>
177         </xsd:all>
178         <xsd:attribute name="name" type="ob:actionname" use="required"/>
179     </xsd:complexType>
180     <xsd:complexType name="keybind">
181         <xsd:choice>
182             <xsd:element maxOccurs="unbounded" name="action" type="ob:action"/>
183             <xsd:element maxOccurs="unbounded" name="keybind" type="ob:keybind"/>
184         </xsd:choice>
185         <xsd:attribute name="chroot" type="ob:bool"/>
186         <xsd:attribute name="key" type="ob:keyname" use="required"/>
187     </xsd:complexType>
188     <xsd:complexType name="keyboard">
189         <xsd:sequence>
190             <xsd:element minOccurs="0" name="chainQuitKey" type="ob:keyname"/>
191             <xsd:element maxOccurs="unbounded" name="keybind" type="ob:keybind"/>
192         </xsd:sequence>
193     </xsd:complexType>
194     <xsd:complexType name="mousebind">
195         <xsd:sequence>
196             <xsd:element maxOccurs="unbounded" name="action" type="ob:action"/>
197         </xsd:sequence>
198         <xsd:attribute name="action" type="ob:mouseaction" use="required"/>
199         <xsd:attribute name="button" type="ob:button" use="required"/>
200     </xsd:complexType>
201     <xsd:complexType name="context">
202         <xsd:sequence>
203             <xsd:element maxOccurs="unbounded" name="mousebind" type="ob:mousebind"/>
204         </xsd:sequence>
205         <xsd:attribute name="name" type="ob:contextname" use="required"/>
206     </xsd:complexType>
207     <xsd:complexType name="mouse">
208         <xsd:sequence>
209             <xsd:element minOccurs="0" name="dragThreshold" type="xsd:integer"/>
210             <xsd:element minOccurs="0" name="doubleClickTime" type="xsd:integer"/>
211             <xsd:element minOccurs="0" name="screenEdgeWarpTime" type="xsd:integer"/>
212             <xsd:element maxOccurs="unbounded" name="context" type="ob:context"/>
213         </xsd:sequence>
214     </xsd:complexType>
215     <xsd:complexType name="menu">
216         <xsd:sequence>
217             <xsd:element maxOccurs="unbounded" name="file" type="xsd:string"/>
218             <xsd:element minOccurs="0" name="hideDelay" type="xsd:integer"/>
219             <xsd:element minOccurs="0" name="middle" type="ob:bool"/>
220             <xsd:element minOccurs="0" name="submenuShowDelay" type="xsd:integer"/>
221             <xsd:element minOccurs="0" name="applicationIcons" type="ob:bool"/>
222             <xsd:element minOccurs="0" name="manageDesktops" type="ob:bool"/>
223         </xsd:sequence>
224     </xsd:complexType>
225     <xsd:complexType name="window_position">
226         <xsd:all>
227             <xsd:element name="x" type="ob:center_or_int"/>
228             <xsd:element name="y" type="ob:center_or_int"/>
229             <xsd:element minOccurs="0" name="monitor" type="ob:mouse_or_int"/>    
230             <xsd:element minOccurs="0" name="head" type="xsd:string"/>
231         </xsd:all>
232         <xsd:attribute name="force" type="ob:bool"/>
233     </xsd:complexType>
234     <xsd:complexType name="application">
235         <xsd:all>
236             <xsd:element minOccurs="0" name="decor" type="ob:bool"/>
237             <xsd:element minOccurs="0" name="shade" type="ob:bool"/>
238             <xsd:element minOccurs="0" name="position" type="ob:window_position"/>
239             <xsd:element minOccurs="0" name="focus" type="xsd:string"/>
240             <xsd:element minOccurs="0" name="desktop" type="xsd:integer"/>
241             <xsd:element minOccurs="0" name="layer" type="ob:layer"/>
242             <xsd:element minOccurs="0" name="iconic" type="ob:bool"/>
243             <xsd:element minOccurs="0" name="skip_pager" type="ob:bool"/>
244             <xsd:element minOccurs="0" name="skip_taskbar" type="ob:bool"/>
245             <xsd:element minOccurs="0" name="fullscreen" type="ob:bool"/>
246             <xsd:element minOccurs="0" name="maximized" type="ob:maximization"/>
247         </xsd:all>
248         <xsd:attribute name="role" type="xsd:string"/>
249         <xsd:attribute name="type" type="ob:clienttype"/>
250         <!-- at least one of these must be present -->
251         <xsd:attribute name="name" type="xsd:string"/>
252         <xsd:attribute name="class" type="xsd:string"/>
253     </xsd:complexType>
254     <xsd:complexType name="applications">
255         <xsd:sequence>
256             <xsd:element minOccurs="0" maxOccurs="unbounded" name="application" type="ob:application"/>
257         </xsd:sequence>
258     </xsd:complexType>
259     <xsd:complexType name="notify">
260         <xsd:all>
261             <xsd:element minOccurs="0" name="enabled" type="ob:bool"/>
262             <xsd:element minOccurs="0" name="name" type="xsd:string"/>
263             <xsd:element minOccurs="0" name="icon" type="xsd:string"/>
264         </xsd:all>
265     </xsd:complexType>
266     <!--
267          simple types / restrictions
268       -->
269     <xsd:simpleType name="actionname">
270         <xsd:restriction base="xsd:string">
271             <xsd:pattern value="[Ii][Ff]"/>
272             <xsd:pattern value="[Aa][Cc][Tt][Ii][Vv][Aa][Tt][Ee]"/>
273             <xsd:pattern value="[Bb][Rr][Ee][Aa][Kk][Cc][Hh][Rr][Oo][Oo][Tt]"/>
274             <xsd:pattern value="[Cc][Ll][Oo][Ss][Ee]"/>
275             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp]"/>
276             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Dd][Oo][Ww][Nn]"/>
277             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Ll][Aa][Ss][Tt]"/>
278             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Ll][Ee][Ff][Tt]"/>
279             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Nn][Ee][Xx][Tt]"/>
280             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Pp][Rr][Ee][Vv][Ii][Oo][Uu][Ss]"/>
281             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Rr][Ii][Gg][Hh][Tt]"/>
282             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Uu][Pp]"/>
283             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Ee][Aa][Ss][Tt]"/>
284             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Nn][Oo][Rr][Tt][Hh]"/>
285             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Nn][Oo][Rr][Tt][Hh][Ee][Aa][Ss][Tt]"/>
286             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Nn][Oo][Rr][Tt][Hh][Ww][Ee][Ss][Tt]"/>
287             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Ss][Oo][Uu][Tt][Hh]"/>
288             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Ss][Oo][Uu][Tt][Hh][Ee][Aa][Ss][Tt]"/>
289             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Ss][Oo][Uu][Tt][Hh][Ww][Ee][Ss][Tt]"/>
290             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Ww][Ee][Ss][Tt]"/>
291             <xsd:pattern value="[Ee][Xx][Ee][Cc][Uu][Tt][Ee]"/>
292             <xsd:pattern value="[Ee][Xx][Ii][Tt]"/>
293             <xsd:pattern value="[Ss][Ee][Ss][Ss][Ii][Oo][Nn][Ll][Oo][Gg][Oo][Uu][Tt]"/>
294             <xsd:pattern value="[Ff][Oo][Cc][Uu][Ss]"/>
295             <xsd:pattern value="[Ff][Oo][Cc][Uu][Ss][Tt][Oo][Bb][Oo][Tt][Tt][Oo][Mm]"/>
296             <xsd:pattern value="[Gg][Rr][Oo][Ww][Tt][Oo][Ee][Dd][Gg][Ee][Ee][Aa][Ss][Tt]"/>
297             <xsd:pattern value="[Gg][Rr][Oo][Ww][Tt][Oo][Ee][Dd][Gg][Ee][Nn][Oo][Rr][Tt][Hh]"/>
298             <xsd:pattern value="[Gg][Rr][Oo][Ww][Tt][Oo][Ee][Dd][Gg][Ee][Ss][Oo][Uu][Tt][Hh]"/>
299             <xsd:pattern value="[Gg][Rr][Oo][Ww][Tt][Oo][Ee][Dd][Gg][Ee][Ww][Ee][Ss][Tt]"/>
300             <xsd:pattern value="[Ii][Cc][Oo][Nn][Ii][Ff][Yy]"/>
301             <xsd:pattern value="[Kk][Ii][Ll][Ll]"/>
302             <xsd:pattern value="[Ll][Oo][Ww][Ee][Rr]"/>
303             <xsd:pattern value="[Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Ff][Uu][Ll][Ll]"/>
304             <xsd:pattern value="[Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Hh][Oo][Rr][Zz]"/>
305             <xsd:pattern value="[Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Vv][Ee][Rr][Tt]"/>
306             <xsd:pattern value="[Mm][Oo][Vv][Ee]"/>
307             <xsd:pattern value="[Mm][Oo][Vv][Ee][Rr][Ee][Ll][Aa][Tt][Ii][Vv][Ee]"/>
308             <xsd:pattern value="[Mm][Oo][Vv][Ee][Rr][Ee][Ll][Aa][Tt][Ii][Vv][Ee][Hh][Oo][Rr][Zz]"/>
309             <xsd:pattern value="[Mm][Oo][Vv][Ee][Rr][Ee][Ll][Aa][Tt][Ii][Vv][Ee][Vv][Ee][Rr][Tt]"/>
310             <xsd:pattern value="[Mm][Oo][Vv][Ee][Tt][Oo][Cc][Ee][Nn][Tt][Ee][Rr]"/>
311             <xsd:pattern value="[Mm][Oo][Vv][Ee][Ff][Rr][Oo][Mm][Ee][Dd][Gg][Ee][Ee][Aa][Ss][Tt]"/>
312             <xsd:pattern value="[Mm][Oo][Vv][Ee][Ff][Rr][Oo][Mm][Ee][Dd][Gg][Ee][Nn][Oo][Rr][Tt][Hh]"/>
313             <xsd:pattern value="[Mm][Oo][Vv][Ee][Ff][Rr][Oo][Mm][Ee][Dd][Gg][Ee][Ss][Oo][Uu][Tt][Hh]"/>
314             <xsd:pattern value="[Mm][Oo][Vv][Ee][Ff][Rr][Oo][Mm][Ee][Dd][Gg][Ee][Ww][Ee][Ss][Tt]"/>
315             <xsd:pattern value="[Mm][Oo][Vv][Ee][Tt][Oo][Ee][Dd][Gg][Ee][Ee][Aa][Ss][Tt]"/>
316             <xsd:pattern value="[Mm][Oo][Vv][Ee][Tt][Oo][Ee][Dd][Gg][Ee][Nn][Oo][Rr][Tt][Hh]"/>
317             <xsd:pattern value="[Mm][Oo][Vv][Ee][Tt][Oo][Ee][Dd][Gg][Ee][Ss][Oo][Uu][Tt][Hh]"/>
318             <xsd:pattern value="[Mm][Oo][Vv][Ee][Tt][Oo][Ee][Dd][Gg][Ee][Ww][Ee][Ss][Tt]"/>
319             <xsd:pattern value="[Nn][Ee][Xx][Tt][Ww][Ii][Nn][Dd][Oo][Ww]"/>
320             <xsd:pattern value="[Pp][Rr][Ee][Vv][Ii][Oo][Uu][Ss][Ww][Ii][Nn][Dd][Oo][Ww]"/>
321             <xsd:pattern value="[Rr][Aa][Ii][Ss][Ee]"/>
322             <xsd:pattern value="[Rr][Aa][Ii][Ss][Ee][Ll][Oo][Ww][Ee][Rr]"/>
323             <xsd:pattern value="[Rr][Ee][Cc][Oo][Nn][Ff][Ii][Gg][Uu][Rr][Ee]"/>
324             <xsd:pattern value="[Rr][Ee][Ss][Ii][Zz][Ee]"/>
325             <xsd:pattern value="[Rr][Ee][Ss][Ii][Zz][Ee][Rr][Ee][Ll][Aa][Tt][Ii][Vv][Ee]"/>
326             <xsd:pattern value="[Rr][Ee][Ss][Ii][Zz][Ee][Rr][Ee][Ll][Aa][Tt][Ii][Vv][Ee][Hh][Oo][Rr][Zz]"/>
327             <xsd:pattern value="[Rr][Ee][Ss][Ii][Zz][Ee][Rr][Ee][Ll][Aa][Tt][Ii][Vv][Ee][Vv][Ee][Rr][Tt]"/>
328             <xsd:pattern value="[Rr][Ee][Ss][Tt][Aa][Rr][Tt]"/>
329             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Bb][Oo][Tt][Tt][Oo][Mm][Ll][Aa][Yy][Ee][Rr]"/>
330             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp]"/>
331             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp][Dd][Oo][Ww][Nn]"/>
332             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp][Ll][Ee][Ff][Tt]"/>
333             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp][Nn][Ee][Xx][Tt]"/>
334             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp][Pp][Rr][Ee][Vv][Ii][Oo][Uu][Ss]"/>
335             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp][Rr][Ii][Gg][Hh][Tt]"/>
336             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp][Uu][Pp]"/>
337             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Nn][Oo][Rr][Mm][Aa][Ll][Ll][Aa][Yy][Ee][Rr]"/>
338             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Tt][Oo][Pp][Ll][Aa][Yy][Ee][Rr]"/>
339             <xsd:pattern value="[Ss][Hh][Aa][Dd][Ee]"/>
340             <xsd:pattern value="[Ss][Hh][Aa][Dd][Ee][Ll][Oo][Ww][Ee][Rr]"/>
341             <xsd:pattern value="[Ss][Hh][Oo][Ww][Dd][Ee][Ss][Kk][Tt][Oo][Pp]"/>
342             <xsd:pattern value="[Ss][Hh][Oo][Ww][Mm][Ee][Nn][Uu]"/>
343             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Aa][Ll][Ww][Aa][Yy][Ss][Oo][Nn][Bb][Oo][Tt][Tt][Oo][Mm]"/>
344             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Aa][Ll][Ww][Aa][Yy][Ss][Oo][Nn][Tt][Oo][Pp]"/>
345             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Dd][Ee][Cc][Oo][Rr][Aa][Tt][Ii][Oo][Nn][Ss]"/>
346             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Dd][Oo][Cc][Kk][Aa][Uu][Tt][Oo][Hh][Ii][Dd][Ee]"/>
347             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Ff][Uu][Ll][Ll][Ss][Cc][Rr][Ee][Ee][Nn]"/>
348             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Ff][Uu][Ll][Ll]"/>
349             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Hh][Oo][Rr][Zz]"/>
350             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Vv][Ee][Rr][Tt]"/>
351             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Oo][Mm][Nn][Ii][Pp][Rr][Ee][Ss][Ee][Nn][Tt]"/>
352             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Ss][Hh][Aa][Dd][Ee]"/>
353             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Ss][Hh][Oo][Ww][Dd][Ee][Ss][Kk][Tt][Oo][Pp]"/>
354             <xsd:pattern value="[Uu][Nn][Ff][Oo][Cc][Uu][Ss]"/>
355             <xsd:pattern value="[Uu][Nn][Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Ff][Uu][Ll][Ll]"/>
356             <xsd:pattern value="[Uu][Nn][Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Hh][Oo][Rr][Zz]"/>
357             <xsd:pattern value="[Uu][Nn][Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Vv][Ee][Rr][Tt]"/>
358             <xsd:pattern value="[Uu][Nn][Ss][Hh][Aa][Dd][Ee]"/>
359             <xsd:pattern value="[Uu][Nn][Ss][Hh][Aa][Dd][Ee][Rr][Aa][Ii][Ss][Ee]"/>
360             <xsd:pattern value="[Uu][Nn][Ss][Hh][Oo][Ww][Dd][Ee][Ss][Kk][Tt][Oo][Pp]"/>
361         </xsd:restriction>
362     </xsd:simpleType>
363     <xsd:simpleType name="clienttype">
364         <xsd:restriction base="xsd:string">
365             <xsd:enumeration value="desktop"/>
366             <xsd:enumeration value="dock"/>
367             <xsd:enumeration value="toolbar"/>
368             <xsd:enumeration value="menu"/>
369             <xsd:enumeration value="splash"/>
370             <xsd:enumeration value="utility"/>
371             <xsd:enumeration value="dialog"/>
372             <xsd:enumeration value="normal"/>
373         </xsd:restriction>
374     </xsd:simpleType>
375     <xsd:simpleType name="bool">
376         <!-- this is copied to maximization.  Keep that in sync. -->
377         <xsd:restriction base="xsd:string">
378             <xsd:enumeration value="yes"/>
379             <xsd:enumeration value="no"/>
380             <xsd:enumeration value="true"/>
381             <xsd:enumeration value="false"/>
382             <xsd:enumeration value="on"/>
383             <xsd:enumeration value="off"/>
384         </xsd:restriction>
385     </xsd:simpleType>
386     <xsd:simpleType name="fontplace">
387         <xsd:restriction base="xsd:string">
388             <xsd:enumeration value="ActiveWindow"/>
389             <xsd:enumeration value="InactiveWindow"/>
390             <xsd:enumeration value="MenuHeader"/>
391             <xsd:enumeration value="MenuItem"/>
392             <xsd:enumeration value="OnScreenDisplay"/>
393         </xsd:restriction>
394     </xsd:simpleType>
395     <xsd:simpleType name="fontweight">
396         <xsd:restriction base="xsd:string">
397             <xsd:enumeration value="normal"/>
398             <xsd:enumeration value="bold"/>
399         </xsd:restriction>
400     </xsd:simpleType>
401     <xsd:simpleType name="fontslant">
402         <xsd:restriction base="xsd:string">
403             <xsd:enumeration value="normal"/>
404             <xsd:enumeration value="italic"/>
405             <xsd:enumeration value="opaque"/>
406         </xsd:restriction>
407     </xsd:simpleType>
408     <xsd:simpleType name="button">
409         <xsd:restriction base="xsd:string">
410             <xsd:pattern value="(([ACMSW]|Mod[1-5])-){,5}(Left|Middle|Right|Up|Down|Button[0-9]+)"/>
411         </xsd:restriction>
412     </xsd:simpleType>
413     <xsd:simpleType name="center_or_int">
414         <xsd:restriction base="xsd:string">
415             <!-- ob: atoi($_) unless $_ eq 'center'; -->
416             <!-- I think the regexp DTRT WRT atoi. -->
417             <xsd:pattern value="center|-?(0|[1-9][0-9]*)"/>
418         </xsd:restriction>
419     </xsd:simpleType>
420     <xsd:simpleType name="mouse_or_int">
421         <xsd:restriction base="xsd:string">
422             <!-- ob: atoi($_) unless $_ eq 'center'; -->
423             <!-- I think the regexp DTRT WRT atoi. -->
424             <xsd:pattern value="mouse|0|[1-9][0-9]*"/>
425         </xsd:restriction>
426     </xsd:simpleType>
427     <xsd:simpleType name="contextname">
428         <xsd:restriction base="xsd:string">
429             <xsd:enumeration value="Desktop"/>
430             <xsd:enumeration value="Root"/>
431             <xsd:enumeration value="Client"/>
432             <xsd:enumeration value="Titlebar"/>
433             <xsd:enumeration value="Frame"/>
434             <xsd:enumeration value="TLCorner"/>
435             <xsd:enumeration value="TRCorner"/>
436             <xsd:enumeration value="BLCorner"/>
437             <xsd:enumeration value="BRCorner"/>
438             <xsd:enumeration value="Top"/>
439             <xsd:enumeration value="Left"/>
440             <xsd:enumeration value="Right"/>
441             <xsd:enumeration value="Bottom"/>
442             <xsd:enumeration value="Maximize"/>
443             <xsd:enumeration value="AllDesktops"/>
444             <xsd:enumeration value="Shade"/>
445             <xsd:enumeration value="Iconify"/>
446             <xsd:enumeration value="Icon"/>
447             <xsd:enumeration value="Close"/>
448             <xsd:enumeration value="MoveResize"/>
449         </xsd:restriction>
450     </xsd:simpleType>
451     <xsd:simpleType name="direction">
452         <xsd:restriction base="xsd:string">
453             <xsd:enumeration value="Horizontal"/>
454             <xsd:enumeration value="Vertical"/>
455         </xsd:restriction>
456     </xsd:simpleType>
457     <xsd:simpleType name="dock_position">
458         <xsd:restriction base="xsd:string">
459             <xsd:enumeration value="TopLeft"/>
460             <xsd:enumeration value="Top"/>
461             <xsd:enumeration value="TopRight"/>
462             <xsd:enumeration value="Right"/>
463             <xsd:enumeration value="BottomRight"/>
464             <xsd:enumeration value="Bottom"/>
465             <xsd:enumeration value="BottomLeft"/>
466             <xsd:enumeration value="Left"/>
467             <xsd:enumeration value="Floating"/>
468         </xsd:restriction>
469     </xsd:simpleType>
470     <xsd:simpleType name="keyname">
471         <xsd:restriction base="xsd:string">
472             <!-- FIXME: M, Mod2, Mod5 in addition to S, A, C -->
473             <!-- how do we do all substrings and permutations? -->
474             <xsd:pattern value="(([ACMSW]|Mod[1-5])-){,5}[a-zA-Z0-9]*"/>
475         </xsd:restriction>
476     </xsd:simpleType>
477     <xsd:simpleType name="layer">
478         <xsd:restriction base="xsd:string">
479             <xsd:pattern value="[Aa][Bb][Oo][Vv][Ee]"/>
480             <xsd:pattern value="[Nn][Oo][Rr][Mm][Aa][Ll]"/>
481             <xsd:pattern value="[Bb][Ee][Ll][Oo][Ww]"/>
482         </xsd:restriction>
483     </xsd:simpleType>
484     <xsd:simpleType name="maximization">
485         <xsd:restriction base="xsd:string">
486             <xsd:enumeration value="Horizontal"/>
487             <xsd:enumeration value="Vertical"/>
488             <!-- this is a copy of ob:bool.  Keep it in sync. -->
489             <xsd:enumeration value="yes"/>
490             <xsd:enumeration value="no"/>
491             <xsd:enumeration value="true"/>
492             <xsd:enumeration value="false"/>
493             <xsd:enumeration value="on"/>
494             <xsd:enumeration value="off"/>
495         </xsd:restriction>
496     </xsd:simpleType>
497     <xsd:simpleType name="mouseaction">
498         <xsd:restriction base="xsd:string">
499             <xsd:enumeration value="Click"/>
500             <xsd:enumeration value="DoubleClick"/>
501             <xsd:enumeration value="Drag"/>
502             <xsd:enumeration value="Press"/>
503             <xsd:enumeration value="Release"/>
504         </xsd:restriction>
505     </xsd:simpleType>
506     <xsd:simpleType name="placementpolicy">
507         <xsd:restriction base="xsd:string">
508             <xsd:enumeration value="Smart"/>
509             <xsd:enumeration value="UnderMouse"/>
510         </xsd:restriction>
511     </xsd:simpleType>
512     <xsd:simpleType name="placementmonitor">
513         <xsd:restriction base="xsd:string">
514             <xsd:enumeration value="Any"/>
515             <xsd:enumeration value="Mouse"/>
516             <xsd:enumeration value="Active"/>
517         </xsd:restriction>
518     </xsd:simpleType>
519     <xsd:simpleType name="popupposition">
520         <xsd:restriction base="xsd:string">
521             <xsd:enumeration value="Top"/>
522             <xsd:enumeration value="Center"/>
523         </xsd:restriction>
524     </xsd:simpleType>
525     <xsd:simpleType name="popupshow">
526         <xsd:restriction base="xsd:string">
527             <xsd:enumeration value="Always"/>
528             <xsd:enumeration value="Never"/>
529             <xsd:enumeration value="Nonpixel"/>
530         </xsd:restriction>
531     </xsd:simpleType>
532 </xsd:schema>