i think xsd files are supposed to say xsd, not xs

This commit is contained in:
Mikael Magnusson 2007-04-26 04:02:24 +00:00
parent c259b2e1c5
commit 853a5b6b04

View file

@ -50,421 +50,421 @@
Wed Apr 25 14:02:40 UTC 2007 Wed Apr 25 14:02:40 UTC 2007
Fixed values for layer to be above/below, not top/bottom. Fixed values for layer to be above/below, not top/bottom.
Add chroot attribute and keybind element to keybind element. Add chroot attribute and keybind element to keybind element.
Remove xs:sequence from everywhere, we don't care about order. Remove xsd:sequence from everywhere, we don't care about order.
--> -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://openbox.org/" targetNamespace="http://openbox.org/"
xmlns:ob="http://openbox.org/" xmlns:ob="http://openbox.org/"
elementFormDefault="qualified"> elementFormDefault="qualified">
<!-- <!--
root node root node
--> -->
<xs:element name="openbox_config"> <xsd:element name="openbox_config">
<xs:annotation> <xsd:annotation>
<xs:documentation>all these elements are expected in a openbox config file</xs:documentation> <xsd:documentation>all these elements are expected in a openbox config file</xsd:documentation>
</xs:annotation> </xsd:annotation>
<xs:complexType> <xsd:complexType>
<xs:element name="resistance" type="ob:resistance"/> <xsd:element name="resistance" type="ob:resistance"/>
<xs:element name="focus" type="ob:focus"/> <xsd:element name="focus" type="ob:focus"/>
<xs:element name="placement" type="ob:placement"/> <xsd:element name="placement" type="ob:placement"/>
<xs:element name="theme" type="ob:theme"/> <xsd:element name="theme" type="ob:theme"/>
<xs:element name="desktops" type="ob:desktops"/> <xsd:element name="desktops" type="ob:desktops"/>
<xs:element name="resize" type="ob:resize"/> <xsd:element name="resize" type="ob:resize"/>
<xs:element name="dock" type="ob:dock"/> <xsd:element name="dock" type="ob:dock"/>
<xs:element name="keyboard" type="ob:keyboard"/> <xsd:element name="keyboard" type="ob:keyboard"/>
<xs:element name="mouse" type="ob:mouse"/> <xsd:element name="mouse" type="ob:mouse"/>
<xs:element name="menu" type="ob:menu"/> <xsd:element name="menu" type="ob:menu"/>
<xs:element name="applications" type="ob:applications"/> <xsd:element name="applications" type="ob:applications"/>
</xs:complexType> </xsd:complexType>
</xs:element> </xsd:element>
<!-- <!--
complex types complex types
--> -->
<xs:complexType name="resistance"> <xsd:complexType name="resistance">
<xs:annotation> <xsd:annotation>
<xs:documentation>defines behaviour of windows when close to each other or the screen edge</xs:documentation> <xsd:documentation>defines behaviour of windows when close to each other or the screen edge</xsd:documentation>
</xs:annotation> </xsd:annotation>
<xs:element minOccurs="0" name="strength" type="xs:integer"/> <xsd:element minOccurs="0" name="strength" type="xsd:integer"/>
<xs:element minOccurs="0" name="screen_edge_strength" type="xs:integer"/> <xsd:element minOccurs="0" name="screen_edge_strength" type="xsd:integer"/>
<xs:element minOccurs="0" name="edges_hit_layers_below" type="ob:bool"/> <xsd:element minOccurs="0" name="edges_hit_layers_below" type="ob:bool"/>
</xs:complexType> </xsd:complexType>
<xs:complexType name="focus"> <xsd:complexType name="focus">
<xs:annotation> <xsd:annotation>
<xs:documentation>defines aspects of window focus</xs:documentation> <xsd:documentation>defines aspects of window focus</xsd:documentation>
</xs:annotation> </xsd:annotation>
<xs:element minOccurs="0" name="focusNew" type="ob:bool"/> <xsd:element minOccurs="0" name="focusNew" type="ob:bool"/>
<xs:element minOccurs="0" name="focusLast" type="ob:bool"/> <xsd:element minOccurs="0" name="focusLast" type="ob:bool"/>
<xs:element minOccurs="0" name="followMouse" type="ob:bool"/> <xsd:element minOccurs="0" name="followMouse" type="ob:bool"/>
<xs:element minOccurs="0" name="focusDelay" type="xs:integer"/> <xsd:element minOccurs="0" name="focusDelay" type="xsd:integer"/>
<xs:element minOccurs="0" name="raiseOnFocus" type="ob:bool"/> <xsd:element minOccurs="0" name="raiseOnFocus" type="ob:bool"/>
</xs:complexType> </xsd:complexType>
<xs:complexType name="placement"> <xsd:complexType name="placement">
<xs:annotation> <xsd:annotation>
<xs:documentation>defines how new windows are placed</xs:documentation> <xsd:documentation>defines how new windows are placed</xsd:documentation>
</xs:annotation> </xsd:annotation>
<xs:element name="policy" type="ob:placementpolicy"/> <xsd:element name="policy" type="ob:placementpolicy"/>
</xs:complexType> </xsd:complexType>
<xs:complexType name="theme"> <xsd:complexType name="theme">
<xs:element minOccurs="0" name="name" type="xs:string"/> <xsd:element minOccurs="0" name="name" type="xsd:string"/>
<xs:element minOccurs="0" name="titleLayout" type="xs:string"/> <xsd:element minOccurs="0" name="titleLayout" type="xsd:string"/>
<xs:element minOccurs="0" name="titleNumber" type="ob:bool"/> <xsd:element minOccurs="0" name="titleNumber" type="ob:bool"/>
<xs:element minOccurs="0" name="keepBorder" type="ob:bool"/> <xsd:element minOccurs="0" name="keepBorder" type="ob:bool"/>
<xs:element minOccurs="0" name="hideDisabled" type="ob:bool"/> <xsd:element minOccurs="0" name="hideDisabled" type="ob:bool"/>
<xs:element minOccurs="0" name="font" type="ob:font"/> <xsd:element minOccurs="0" name="font" type="ob:font"/>
</xs:complexType> </xsd:complexType>
<xs:complexType name="font"> <xsd:complexType name="font">
<xs:element minOccurs="0" name="name" type="xs:string"/> <xsd:element minOccurs="0" name="name" type="xsd:string"/>
<xs:element minOccurs="0" name="size" type="xs:integer"/> <xsd:element minOccurs="0" name="size" type="xsd:integer"/>
<xs:element minOccurs="0" name="weight" type="ob:fontweight"/> <xsd:element minOccurs="0" name="weight" type="ob:fontweight"/>
<xs:element minOccurs="0" name="slant" type="ob:fontslant"/> <xsd:element minOccurs="0" name="slant" type="ob:fontslant"/>
</xs:complexType> </xsd:complexType>
<xs:complexType name="desktops"> <xsd:complexType name="desktops">
<xs:annotation> <xsd:annotation>
<xs:documentation>defines the number and names of desktops</xs:documentation> <xsd:documentation>defines the number and names of desktops</xsd:documentation>
</xs:annotation> </xsd:annotation>
<xs:element minOccurs="0" name="number" type="xs:integer"/> <xsd:element minOccurs="0" name="number" type="xsd:integer"/>
<xs:element minOccurs="0" name="firstdesk" type="xs:integer"/> <xsd:element minOccurs="0" name="firstdesk" type="xsd:integer"/>
<xs:element minOccurs="0" name="names"> <xsd:element minOccurs="0" name="names">
<xs:complexType> <xsd:complexType>
<xs:element maxOccurs="unbounded" name="name" type="xs:string"/> <xsd:element maxOccurs="unbounded" name="name" type="xsd:string"/>
</xs:complexType> </xsd:complexType>
</xs:element> </xsd:element>
</xs:complexType> </xsd:complexType>
<xs:complexType name="resize"> <xsd:complexType name="resize">
<xs:element minOccurs="0" name="drawContents" type="ob:bool"/> <xsd:element minOccurs="0" name="drawContents" type="ob:bool"/>
<xs:element minOccurs="0" name="popupShow" type="ob:popupshow"/> <xsd:element minOccurs="0" name="popupShow" type="ob:popupshow"/>
<xs:element minOccurs="0" name="popupPosition" type="ob:popupposition"/> <xsd:element minOccurs="0" name="popupPosition" type="ob:popupposition"/>
</xs:complexType> </xsd:complexType>
<xs:complexType name="dock"> <xsd:complexType name="dock">
<xs:element minOccurs="0" name="position" type="ob:dock_position"/> <xsd:element minOccurs="0" name="position" type="ob:dock_position"/>
<xs:element minOccurs="0" name="floatingX" type="xs:integer"/> <xsd:element minOccurs="0" name="floatingX" type="xsd:integer"/>
<xs:element minOccurs="0" name="floatingY" type="xs:integer"/> <xsd:element minOccurs="0" name="floatingY" type="xsd:integer"/>
<xs:element minOccurs="0" name="noStrut" type="ob:bool"/> <xsd:element minOccurs="0" name="noStrut" type="ob:bool"/>
<xs:element minOccurs="0" name="stacking" type="ob:layer"/> <xsd:element minOccurs="0" name="stacking" type="ob:layer"/>
<xs:element minOccurs="0" name="direction" type="ob:direction"/> <xsd:element minOccurs="0" name="direction" type="ob:direction"/>
<xs:element minOccurs="0" name="autoHide" type="ob:bool"/> <xsd:element minOccurs="0" name="autoHide" type="ob:bool"/>
<xs:element minOccurs="0" name="hideDelay" type="xs:integer"/> <xsd:element minOccurs="0" name="hideDelay" type="xsd:integer"/>
<xs:element minOccurs="0" name="showDelay" type="xs:integer"/> <xsd:element minOccurs="0" name="showDelay" type="xsd:integer"/>
<xs:element minOccurs="0" name="moveButton" type="ob:button"/> <xsd:element minOccurs="0" name="moveButton" type="ob:button"/>
</xs:complexType> </xsd:complexType>
<xs:complexType name="action"> <xsd:complexType name="action">
<xs:element minOccurs="0" name="execute" type="xs:string"/> <xsd:element minOccurs="0" name="execute" type="xsd:string"/>
<xs:element minOccurs="0" name="menu" type="xs:string"/> <xsd:element minOccurs="0" name="menu" type="xsd:string"/>
<xs:element minOccurs="0" name="delta" type="xs:integer"/> <xsd:element minOccurs="0" name="delta" type="xsd:integer"/>
<xs:element minOccurs="0" name="x" type="xs:integer"/> <xsd:element minOccurs="0" name="x" type="xsd:integer"/>
<xs:element minOccurs="0" name="y" type="xs:integer"/> <xsd:element minOccurs="0" name="y" type="xsd:integer"/>
<xs:element minOccurs="0" name="left" type="xs:integer"/> <xsd:element minOccurs="0" name="left" type="xsd:integer"/>
<xs:element minOccurs="0" name="right" type="xs:integer"/> <xsd:element minOccurs="0" name="right" type="xsd:integer"/>
<xs:element minOccurs="0" name="up" type="xs:integer"/> <xsd:element minOccurs="0" name="up" type="xsd:integer"/>
<xs:element minOccurs="0" name="down" type="xs:integer"/> <xsd:element minOccurs="0" name="down" type="xsd:integer"/>
<xs:element minOccurs="0" name="desktop" type="xs:integer"/> <xsd:element minOccurs="0" name="desktop" type="xsd:integer"/>
<xs:element minOccurs="0" name="wrap" type="ob:bool"/> <xsd:element minOccurs="0" name="wrap" type="ob:bool"/>
<xs:element minOccurs="0" name="follow" type="ob:bool"/> <xsd:element minOccurs="0" name="follow" type="ob:bool"/>
<xs:element minOccurs="0" name="dialog" type="ob:bool"/> <xsd:element minOccurs="0" name="dialog" type="ob:bool"/>
<xs:element minOccurs="0" name="panels" type="ob:bool"/> <xsd:element minOccurs="0" name="panels" type="ob:bool"/>
<xs:element minOccurs="0" name="here" type="ob:bool"/> <xsd:element minOccurs="0" name="here" type="ob:bool"/>
<xs:element minOccurs="0" name="linear" type="ob:bool"/> <xsd:element minOccurs="0" name="linear" type="ob:bool"/>
<xs:element minOccurs="0" name="group" type="ob:bool"/> <xsd:element minOccurs="0" name="group" type="ob:bool"/>
<xs:attribute name="name" type="ob:actionname" use="required"/> <xsd:attribute name="name" type="ob:actionname" use="required"/>
</xs:complexType> </xsd:complexType>
<xs:complexType name="keybind"> <xsd:complexType name="keybind">
<xs:choice> <xsd:choice>
<xs:element maxOccurs="unbounded" name="action" type="ob:action"/> <xsd:element maxOccurs="unbounded" name="action" type="ob:action"/>
<xs:element maxOccurs="unbounded" name="keybind" type="ob:keybind"/> <xsd:element maxOccurs="unbounded" name="keybind" type="ob:keybind"/>
</xs:choice> </xsd:choice>
<xs:attribute name="chroot" type="ob:bool"/> <xsd:attribute name="chroot" type="ob:bool"/>
<xs:attribute name="key" type="ob:keyname" use="required"/> <xsd:attribute name="key" type="ob:keyname" use="required"/>
</xs:complexType> </xsd:complexType>
<xs:complexType name="keyboard"> <xsd:complexType name="keyboard">
<xs:element minOccurs="0" name="chainQuitKey" type="ob:keyname"/> <xsd:element minOccurs="0" name="chainQuitKey" type="ob:keyname"/>
<xs:element maxOccurs="unbounded" name="keybind" type="ob:keybind"/> <xsd:element maxOccurs="unbounded" name="keybind" type="ob:keybind"/>
</xs:complexType> </xsd:complexType>
<xs:complexType name="mousebind"> <xsd:complexType name="mousebind">
<xs:element maxOccurs="unbounded" name="action" type="ob:action"/> <xsd:element maxOccurs="unbounded" name="action" type="ob:action"/>
<xs:attribute name="action" type="ob:mouseaction" use="required"/> <xsd:attribute name="action" type="ob:mouseaction" use="required"/>
<xs:attribute name="button" type="ob:button" use="required"/> <xsd:attribute name="button" type="ob:button" use="required"/>
</xs:complexType> </xsd:complexType>
<xs:complexType name="context"> <xsd:complexType name="context">
<xs:element maxOccurs="unbounded" name="mousebind" type="ob:mousebind"/> <xsd:element maxOccurs="unbounded" name="mousebind" type="ob:mousebind"/>
<xs:attribute name="name" type="ob:contextname" use="required"/> <xsd:attribute name="name" type="ob:contextname" use="required"/>
</xs:complexType> </xsd:complexType>
<xs:complexType name="mouse"> <xsd:complexType name="mouse">
<xs:element minOccurs="0" name="dragThreshold" type="xs:integer"/> <xsd:element minOccurs="0" name="dragThreshold" type="xsd:integer"/>
<xs:element minOccurs="0" name="doubleClickTime" type="xs:integer"/> <xsd:element minOccurs="0" name="doubleClickTime" type="xsd:integer"/>
<xs:element maxOccurs="unbounded" name="context" type="ob:context"/> <xsd:element maxOccurs="unbounded" name="context" type="ob:context"/>
</xs:complexType> </xsd:complexType>
<xs:complexType name="menu"> <xsd:complexType name="menu">
<xs:element maxOccurs="unbounded" name="file" type="xs:string"/> <xsd:element maxOccurs="unbounded" name="file" type="xsd:string"/>
<xs:element minOccurs="0" name="warpPointer" type="ob:bool"/> <xsd:element minOccurs="0" name="warpPointer" type="ob:bool"/>
<xs:element minOccurs="0" name="xorStyle" type="ob:bool"/> <xsd:element minOccurs="0" name="xorStyle" type="ob:bool"/>
<xs:element minOccurs="0" name="hideDelay" type="xs:integer"/> <xsd:element minOccurs="0" name="hideDelay" type="xsd:integer"/>
<xs:element minOccurs="0" name="middle" type="ob:bool"/> <xsd:element minOccurs="0" name="middle" type="ob:bool"/>
<xs:element minOccurs="0" name="submenuShowDelay" type="xs:integer"/> <xsd:element minOccurs="0" name="submenuShowDelay" type="xsd:integer"/>
<xs:element minOccurs="0" name="desktopMenuIcons" type="ob:bool"/> <xsd:element minOccurs="0" name="desktopMenuIcons" type="ob:bool"/>
</xs:complexType> </xsd:complexType>
<xs:complexType name="window_position"> <xsd:complexType name="window_position">
<xs:element name="x" type="ob:center_or_int"/> <xsd:element name="x" type="ob:center_or_int"/>
<xs:element name="y" type="ob:center_or_int"/> <xsd:element name="y" type="ob:center_or_int"/>
</xs:complexType> </xsd:complexType>
<xs:complexType name="application"> <xsd:complexType name="application">
<xs:element minOccurs="0" name="decor" type="xs:string"/> <xsd:element minOccurs="0" name="decor" type="xsd:string"/>
<xs:element minOccurs="0" name="shade" type="ob:bool"/> <xsd:element minOccurs="0" name="shade" type="ob:bool"/>
<xs:element minOccurs="0" name="position" type="ob:window_position"/> <xsd:element minOccurs="0" name="position" type="ob:window_position"/>
<xs:element minOccurs="0" name="focus" type="xs:string"/> <xsd:element minOccurs="0" name="focus" type="xsd:string"/>
<xs:element minOccurs="0" name="desktop" type="xs:integer"/> <xsd:element minOccurs="0" name="desktop" type="xsd:integer"/>
<xs:element minOccurs="0" name="head" type="xs:string"/> <xsd:element minOccurs="0" name="head" type="xsd:string"/>
<xs:element minOccurs="0" name="layer" type="ob:layer"/> <xsd:element minOccurs="0" name="layer" type="ob:layer"/>
<xs:element minOccurs="0" name="iconic" type="ob:bool"/> <xsd:element minOccurs="0" name="iconic" type="ob:bool"/>
<xs:element minOccurs="0" name="skip_pager" type="ob:bool"/> <xsd:element minOccurs="0" name="skip_pager" type="ob:bool"/>
<xs:element minOccurs="0" name="skip_taskbar" type="ob:bool"/> <xsd:element minOccurs="0" name="skip_taskbar" type="ob:bool"/>
<xs:element minOccurs="0" name="fullscreen" type="ob:bool"/> <xsd:element minOccurs="0" name="fullscreen" type="ob:bool"/>
<xs:element minOccurs="0" name="maximized" type="ob:maximization"/> <xsd:element minOccurs="0" name="maximized" type="ob:maximization"/>
<!-- at least one of these must be present --> <!-- at least one of these must be present -->
<xs:attribute name="name" type="xs:string"/> <xsd:attribute name="name" type="xsd:string"/>
<xs:attribute name="class" type="xs:string"/> <xsd:attribute name="class" type="xsd:string"/>
<xs:attribute name="role" type="xs:string"/> <xsd:attribute name="role" type="xsd:string"/>
</xs:complexType> </xsd:complexType>
<xs:complexType name="applications"> <xsd:complexType name="applications">
<xs:element minOccurs="0" maxOccurs="unbounded" name="application" type="ob:application"/> <xsd:element minOccurs="0" maxOccurs="unbounded" name="application" type="ob:application"/>
</xs:complexType> </xsd:complexType>
<!-- <!--
simple types / restrictions simple types / restrictions
--> -->
<xs:simpleType name="actionname"> <xsd:simpleType name="actionname">
<xs:restriction base="xs:string"> <xsd:restriction base="xsd:string">
<xs:enumeration value="Activate"/> <xsd:enumeration value="Activate"/>
<xs:enumeration value="BreakChroot"/> <xsd:enumeration value="BreakChroot"/>
<xs:enumeration value="Close"/> <xsd:enumeration value="Close"/>
<xs:enumeration value="Desktop"/> <xsd:enumeration value="Desktop"/>
<xs:enumeration value="DesktopDown"/> <xsd:enumeration value="DesktopDown"/>
<xs:enumeration value="DesktopLast"/> <xsd:enumeration value="DesktopLast"/>
<xs:enumeration value="DesktopLeft"/> <xsd:enumeration value="DesktopLeft"/>
<xs:enumeration value="DesktopNext"/> <xsd:enumeration value="DesktopNext"/>
<xs:enumeration value="DesktopPrevious"/> <xsd:enumeration value="DesktopPrevious"/>
<xs:enumeration value="DesktopRight"/> <xsd:enumeration value="DesktopRight"/>
<xs:enumeration value="DesktopUp"/> <xsd:enumeration value="DesktopUp"/>
<xs:enumeration value="DirectionalFocusEast"/> <xsd:enumeration value="DirectionalFocusEast"/>
<xs:enumeration value="DirectionalFocusNorth"/> <xsd:enumeration value="DirectionalFocusNorth"/>
<xs:enumeration value="DirectionalFocusNortheast"/> <xsd:enumeration value="DirectionalFocusNortheast"/>
<xs:enumeration value="DirectionalFocusNorthwest"/> <xsd:enumeration value="DirectionalFocusNorthwest"/>
<xs:enumeration value="DirectionalFocusSouth"/> <xsd:enumeration value="DirectionalFocusSouth"/>
<xs:enumeration value="DirectionalFocusSoutheast"/> <xsd:enumeration value="DirectionalFocusSoutheast"/>
<xs:enumeration value="DirectionalFocusSouthwest"/> <xsd:enumeration value="DirectionalFocusSouthwest"/>
<xs:enumeration value="DirectionalFocusWest"/> <xsd:enumeration value="DirectionalFocusWest"/>
<xs:enumeration value="Execute"/> <xsd:enumeration value="Execute"/>
<xs:enumeration value="Exit"/> <xsd:enumeration value="Exit"/>
<xs:enumeration value="Focus"/> <xsd:enumeration value="Focus"/>
<xs:enumeration value="FocusToBottom"/> <xsd:enumeration value="FocusToBottom"/>
<xs:enumeration value="GrowToEdgeEast"/> <xsd:enumeration value="GrowToEdgeEast"/>
<xs:enumeration value="GrowToEdgeNorth"/> <xsd:enumeration value="GrowToEdgeNorth"/>
<xs:enumeration value="GrowToEdgeSouth"/> <xsd:enumeration value="GrowToEdgeSouth"/>
<xs:enumeration value="GrowToEdgeWest"/> <xsd:enumeration value="GrowToEdgeWest"/>
<xs:enumeration value="Iconify"/> <xsd:enumeration value="Iconify"/>
<xs:enumeration value="Kill"/> <xsd:enumeration value="Kill"/>
<xs:enumeration value="Lower"/> <xsd:enumeration value="Lower"/>
<xs:enumeration value="MaximizeFull"/> <xsd:enumeration value="MaximizeFull"/>
<xs:enumeration value="MaximizeHorz"/> <xsd:enumeration value="MaximizeHorz"/>
<xs:enumeration value="MaximizeVert"/> <xsd:enumeration value="MaximizeVert"/>
<xs:enumeration value="Move"/> <xsd:enumeration value="Move"/>
<xs:enumeration value="MoveRelative"/> <xsd:enumeration value="MoveRelative"/>
<xs:enumeration value="MoveRelativeHorz"/> <xsd:enumeration value="MoveRelativeHorz"/>
<xs:enumeration value="MoveRelativeVert"/> <xsd:enumeration value="MoveRelativeVert"/>
<xs:enumeration value="MoveToCenter"/> <xsd:enumeration value="MoveToCenter"/>
<xs:enumeration value="MoveFromEdgeEast"/> <xsd:enumeration value="MoveFromEdgeEast"/>
<xs:enumeration value="MoveFromEdgeNorth"/> <xsd:enumeration value="MoveFromEdgeNorth"/>
<xs:enumeration value="MoveFromEdgeSouth"/> <xsd:enumeration value="MoveFromEdgeSouth"/>
<xs:enumeration value="MoveFromEdgeWest"/> <xsd:enumeration value="MoveFromEdgeWest"/>
<xs:enumeration value="MoveToEdgeEast"/> <xsd:enumeration value="MoveToEdgeEast"/>
<xs:enumeration value="MoveToEdgeNorth"/> <xsd:enumeration value="MoveToEdgeNorth"/>
<xs:enumeration value="MoveToEdgeSouth"/> <xsd:enumeration value="MoveToEdgeSouth"/>
<xs:enumeration value="MoveToEdgeWest"/> <xsd:enumeration value="MoveToEdgeWest"/>
<xs:enumeration value="NextWindow"/> <xsd:enumeration value="NextWindow"/>
<xs:enumeration value="PreviousWindow"/> <xsd:enumeration value="PreviousWindow"/>
<xs:enumeration value="Raise"/> <xsd:enumeration value="Raise"/>
<xs:enumeration value="RaiseLower"/> <xsd:enumeration value="RaiseLower"/>
<xs:enumeration value="Reconfigure"/> <xsd:enumeration value="Reconfigure"/>
<xs:enumeration value="Resize"/> <xsd:enumeration value="Resize"/>
<xs:enumeration value="ResizeRelative"/> <xsd:enumeration value="ResizeRelative"/>
<xs:enumeration value="ResizeRelativeHorz"/> <xsd:enumeration value="ResizeRelativeHorz"/>
<xs:enumeration value="ResizeRelativeVert"/> <xsd:enumeration value="ResizeRelativeVert"/>
<xs:enumeration value="Restart"/> <xsd:enumeration value="Restart"/>
<xs:enumeration value="SendToBottomLayer"/> <xsd:enumeration value="SendToBottomLayer"/>
<xs:enumeration value="SendToDesktop"/> <xsd:enumeration value="SendToDesktop"/>
<xs:enumeration value="SendToDesktopDown"/> <xsd:enumeration value="SendToDesktopDown"/>
<xs:enumeration value="SendToDesktopLeft"/> <xsd:enumeration value="SendToDesktopLeft"/>
<xs:enumeration value="SendToDesktopNext"/> <xsd:enumeration value="SendToDesktopNext"/>
<xs:enumeration value="SendToDesktopPrevious"/> <xsd:enumeration value="SendToDesktopPrevious"/>
<xs:enumeration value="SendToDesktopRight"/> <xsd:enumeration value="SendToDesktopRight"/>
<xs:enumeration value="SendToDesktopUp"/> <xsd:enumeration value="SendToDesktopUp"/>
<xs:enumeration value="SendToNormalLayer"/> <xsd:enumeration value="SendToNormalLayer"/>
<xs:enumeration value="SendToTopLayer"/> <xsd:enumeration value="SendToTopLayer"/>
<xs:enumeration value="Shade"/> <xsd:enumeration value="Shade"/>
<xs:enumeration value="ShadeLower"/> <xsd:enumeration value="ShadeLower"/>
<xs:enumeration value="ShowDesktop"/> <xsd:enumeration value="ShowDesktop"/>
<xs:enumeration value="ShowMenu"/> <xsd:enumeration value="ShowMenu"/>
<xs:enumeration value="ToggleAlwaysOnBottom"/> <xsd:enumeration value="ToggleAlwaysOnBottom"/>
<xs:enumeration value="ToggleAlwaysOnTop"/> <xsd:enumeration value="ToggleAlwaysOnTop"/>
<xs:enumeration value="ToggleDecorations"/> <xsd:enumeration value="ToggleDecorations"/>
<xs:enumeration value="ToggleDockAutoHide"/> <xsd:enumeration value="ToggleDockAutoHide"/>
<xs:enumeration value="ToggleFullscreen"/> <xsd:enumeration value="ToggleFullscreen"/>
<xs:enumeration value="ToggleMaximizeFull"/> <xsd:enumeration value="ToggleMaximizeFull"/>
<xs:enumeration value="ToggleMaximizeHorz"/> <xsd:enumeration value="ToggleMaximizeHorz"/>
<xs:enumeration value="ToggleMaximizeVert"/> <xsd:enumeration value="ToggleMaximizeVert"/>
<xs:enumeration value="ToggleOmnipresent"/> <xsd:enumeration value="ToggleOmnipresent"/>
<xs:enumeration value="ToggleShade"/> <xsd:enumeration value="ToggleShade"/>
<xs:enumeration value="ToggleShowDesktop"/> <xsd:enumeration value="ToggleShowDesktop"/>
<xs:enumeration value="Unfocus"/> <xsd:enumeration value="Unfocus"/>
<xs:enumeration value="UnmaximizeFull"/> <xsd:enumeration value="UnmaximizeFull"/>
<xs:enumeration value="UnmaximizeHorz"/> <xsd:enumeration value="UnmaximizeHorz"/>
<xs:enumeration value="UnmaximizeVert"/> <xsd:enumeration value="UnmaximizeVert"/>
<xs:enumeration value="Unshade"/> <xsd:enumeration value="Unshade"/>
<xs:enumeration value="UnshadeRaise"/> <xsd:enumeration value="UnshadeRaise"/>
<xs:enumeration value="UnShowDesktop"/> <xsd:enumeration value="UnShowDesktop"/>
</xs:restriction> </xsd:restriction>
</xs:simpleType> </xsd:simpleType>
<xs:simpleType name="bool"> <xsd:simpleType name="bool">
<!-- this is copied to maximization. Keep that in sync. --> <!-- this is copied to maximization. Keep that in sync. -->
<xs:restriction base="xs:string"> <xsd:restriction base="xsd:string">
<xs:enumeration value="yes"/> <xsd:enumeration value="yes"/>
<xs:enumeration value="no"/> <xsd:enumeration value="no"/>
<xs:enumeration value="true"/> <xsd:enumeration value="true"/>
<xs:enumeration value="false"/> <xsd:enumeration value="false"/>
<xs:enumeration value="on"/> <xsd:enumeration value="on"/>
<xs:enumeration value="off"/> <xsd:enumeration value="off"/>
</xs:restriction> </xsd:restriction>
</xs:simpleType> </xsd:simpleType>
<xs:simpleType name="fontweight"> <xsd:simpleType name="fontweight">
<xs:restriction base="xs:string"> <xsd:restriction base="xsd:string">
<xs:enumeration value="normal"/> <xsd:enumeration value="normal"/>
<xs:enumeration value="bold"/> <xsd:enumeration value="bold"/>
</xs:restriction> </xsd:restriction>
</xs:simpleType> </xsd:simpleType>
<xs:simpleType name="fontslant"> <xsd:simpleType name="fontslant">
<xs:restriction base="xs:string"> <xsd:restriction base="xsd:string">
<xs:enumeration value="normal"/> <xsd:enumeration value="normal"/>
<xs:enumeration value="italic"/> <xsd:enumeration value="italic"/>
<xs:enumeration value="opaque"/> <xsd:enumeration value="opaque"/>
</xs:restriction> </xsd:restriction>
</xs:simpleType> </xsd:simpleType>
<xs:simpleType name="button"> <xsd:simpleType name="button">
<xs:restriction base="xs:string"> <xsd:restriction base="xsd:string">
<!-- FIXME what??? --> <!-- FIXME what??? -->
<xs:enumeration value="Left"/> <xsd:enumeration value="Left"/>
<xs:enumeration value="Middle"/> <xsd:enumeration value="Middle"/>
<xs:enumeration value="Right"/> <xsd:enumeration value="Right"/>
<xs:enumeration value="Up"/> <xsd:enumeration value="Up"/>
<xs:enumeration value="Down"/> <xsd:enumeration value="Down"/>
<xs:enumeration value="A-Left"/> <xsd:enumeration value="A-Left"/>
<xs:enumeration value="A-Middle"/> <xsd:enumeration value="A-Middle"/>
<xs:enumeration value="A-Right"/> <xsd:enumeration value="A-Right"/>
<xs:enumeration value="A-Up"/> <xsd:enumeration value="A-Up"/>
<xs:enumeration value="A-Down"/> <xsd:enumeration value="A-Down"/>
<xs:enumeration value="C-A-Left"/> <xsd:enumeration value="C-A-Left"/>
<xs:enumeration value="C-A-Middle"/> <xsd:enumeration value="C-A-Middle"/>
<xs:enumeration value="C-A-Right"/> <xsd:enumeration value="C-A-Right"/>
<xs:enumeration value="C-A-Up"/> <xsd:enumeration value="C-A-Up"/>
<xs:enumeration value="C-A-Down"/> <xsd:enumeration value="C-A-Down"/>
</xs:restriction> </xsd:restriction>
</xs:simpleType> </xsd:simpleType>
<xs:simpleType name="center_or_int"> <xsd:simpleType name="center_or_int">
<xs:restriction base="xs:string"> <xsd:restriction base="xsd:string">
<!-- ob: atoi($_) unless $_ eq 'center'; --> <!-- ob: atoi($_) unless $_ eq 'center'; -->
<!-- I think the regexp DTRT WRT atoi. --> <!-- I think the regexp DTRT WRT atoi. -->
<xs:pattern value="center|0|[1-9][0-9]*"/> <xsd:pattern value="center|0|[1-9][0-9]*"/>
</xs:restriction> </xsd:restriction>
</xs:simpleType> </xsd:simpleType>
<xs:simpleType name="contextname"> <xsd:simpleType name="contextname">
<xs:restriction base="xs:string"> <xsd:restriction base="xsd:string">
<xs:enumeration value="Desktop"/> <xsd:enumeration value="Desktop"/>
<xs:enumeration value="Client"/> <xsd:enumeration value="Client"/>
<xs:enumeration value="Titlebar"/> <xsd:enumeration value="Titlebar"/>
<xs:enumeration value="Handle"/> <xsd:enumeration value="Handle"/>
<xs:enumeration value="Frame"/> <xsd:enumeration value="Frame"/>
<xs:enumeration value="TLCorner"/> <xsd:enumeration value="TLCorner"/>
<xs:enumeration value="TRCorner"/> <xsd:enumeration value="TRCorner"/>
<xs:enumeration value="BLCorner"/> <xsd:enumeration value="BLCorner"/>
<xs:enumeration value="BRCorner"/> <xsd:enumeration value="BRCorner"/>
<xs:enumeration value="Maximize"/> <xsd:enumeration value="Maximize"/>
<xs:enumeration value="AllDesktops"/> <xsd:enumeration value="AllDesktops"/>
<xs:enumeration value="Shade"/> <xsd:enumeration value="Shade"/>
<xs:enumeration value="Iconify"/> <xsd:enumeration value="Iconify"/>
<xs:enumeration value="Icon"/> <xsd:enumeration value="Icon"/>
<xs:enumeration value="Close"/> <xsd:enumeration value="Close"/>
<xs:enumeration value="MoveResize"/> <xsd:enumeration value="MoveResize"/>
</xs:restriction> </xsd:restriction>
</xs:simpleType> </xsd:simpleType>
<xs:simpleType name="direction"> <xsd:simpleType name="direction">
<xs:restriction base="xs:string"> <xsd:restriction base="xsd:string">
<xs:enumeration value="Horizontal"/> <xsd:enumeration value="Horizontal"/>
<xs:enumeration value="Vertical"/> <xsd:enumeration value="Vertical"/>
</xs:restriction> </xsd:restriction>
</xs:simpleType> </xsd:simpleType>
<xs:simpleType name="dock_position"> <xsd:simpleType name="dock_position">
<xs:restriction base="xs:string"> <xsd:restriction base="xsd:string">
<xs:enumeration value="TopLeft"/> <xsd:enumeration value="TopLeft"/>
<xs:enumeration value="Top"/> <xsd:enumeration value="Top"/>
<xs:enumeration value="TopRight"/> <xsd:enumeration value="TopRight"/>
<xs:enumeration value="Right"/> <xsd:enumeration value="Right"/>
<xs:enumeration value="BottomRight"/> <xsd:enumeration value="BottomRight"/>
<xs:enumeration value="Bottom"/> <xsd:enumeration value="Bottom"/>
<xs:enumeration value="BottomLeft"/> <xsd:enumeration value="BottomLeft"/>
<xs:enumeration value="Left"/> <xsd:enumeration value="Left"/>
<xs:enumeration value="Floating"/> <xsd:enumeration value="Floating"/>
</xs:restriction> </xsd:restriction>
</xs:simpleType> </xsd:simpleType>
<xs:simpleType name="keyname"> <xsd:simpleType name="keyname">
<xs:restriction base="xs:string"> <xsd:restriction base="xsd:string">
<!-- FIXME: M, Mod2, Mod5 in addition to S, A, C --> <!-- FIXME: M, Mod2, Mod5 in addition to S, A, C -->
<!-- how do we do all substrings and permutations? --> <!-- how do we do all substrings and permutations? -->
<xs:pattern value="(A-)?(S-)?(A-)?(C-)?(A-)?(S-)?(A-)?[a-zA-Z0-9]*"/> <xsd:pattern value="(A-)?(S-)?(A-)?(C-)?(A-)?(S-)?(A-)?[a-zA-Z0-9]*"/>
</xs:restriction> </xsd:restriction>
</xs:simpleType> </xsd:simpleType>
<xs:simpleType name="layer"> <xsd:simpleType name="layer">
<xs:restriction base="xs:string"> <xsd:restriction base="xsd:string">
<xs:enumeration value="above"/> <xsd:enumeration value="above"/>
<xs:enumeration value="normal"/> <xsd:enumeration value="normal"/>
<xs:enumeration value="below"/> <xsd:enumeration value="below"/>
</xs:restriction> </xsd:restriction>
</xs:simpleType> </xsd:simpleType>
<xs:simpleType name="maximization"> <xsd:simpleType name="maximization">
<xs:restriction base="xs:string"> <xsd:restriction base="xsd:string">
<xs:enumeration value="Horizontal"/> <xsd:enumeration value="Horizontal"/>
<xs:enumeration value="Vertical"/> <xsd:enumeration value="Vertical"/>
<!-- this is a copy of ob:bool. Keep it in sync. --> <!-- this is a copy of ob:bool. Keep it in sync. -->
<xs:enumeration value="yes"/> <xsd:enumeration value="yes"/>
<xs:enumeration value="no"/> <xsd:enumeration value="no"/>
<xs:enumeration value="true"/> <xsd:enumeration value="true"/>
<xs:enumeration value="false"/> <xsd:enumeration value="false"/>
<xs:enumeration value="on"/> <xsd:enumeration value="on"/>
<xs:enumeration value="off"/> <xsd:enumeration value="off"/>
</xs:restriction> </xsd:restriction>
</xs:simpleType> </xsd:simpleType>
<xs:simpleType name="mouseaction"> <xsd:simpleType name="mouseaction">
<xs:restriction base="xs:string"> <xsd:restriction base="xsd:string">
<xs:enumeration value="Click"/> <xsd:enumeration value="Click"/>
<xs:enumeration value="DoubleClick"/> <xsd:enumeration value="DoubleClick"/>
<xs:enumeration value="Drag"/> <xsd:enumeration value="Drag"/>
<xs:enumeration value="Press"/> <xsd:enumeration value="Press"/>
<xs:enumeration value="Release"/> <xsd:enumeration value="Release"/>
</xs:restriction> </xsd:restriction>
</xs:simpleType> </xsd:simpleType>
<xs:simpleType name="placementpolicy"> <xsd:simpleType name="placementpolicy">
<xs:restriction base="xs:string"> <xsd:restriction base="xsd:string">
<xs:enumeration value="Smart"/> <xsd:enumeration value="Smart"/>
<xs:enumeration value="UnderMouse"/> <xsd:enumeration value="UnderMouse"/>
</xs:restriction> </xsd:restriction>
</xs:simpleType> </xsd:simpleType>
<xs:simpleType name="popupposition"> <xsd:simpleType name="popupposition">
<xs:restriction base="xs:string"> <xsd:restriction base="xsd:string">
<xs:enumeration value="Top"/> <xsd:enumeration value="Top"/>
<xs:enumeration value="Center"/> <xsd:enumeration value="Center"/>
</xs:restriction> </xsd:restriction>
</xs:simpleType> </xsd:simpleType>
<xs:simpleType name="popupshow"> <xsd:simpleType name="popupshow">
<xs:restriction base="xs:string"> <xsd:restriction base="xsd:string">
<xs:enumeration value="Always"/> <xsd:enumeration value="Always"/>
<xs:enumeration value="Never"/> <xsd:enumeration value="Never"/>
<xs:enumeration value="Nonpixel"/> <xsd:enumeration value="Nonpixel"/>
</xs:restriction> </xsd:restriction>
</xs:simpleType> </xsd:simpleType>
</xs:schema> </xsd:schema>