[openbox] todo for 3.0 final

Peter Chiocchetti pch at myzel.net
Tue Sep 16 15:27:39 EDT 2003


> 
> attached an uptodate schema for the current cvs-1.14 rc.xml.
> see below how to link the rc.xml to this schema.

same for the menu: ( this schema shows a bug in xerlin,
if youre good in java, theres a simplified test case ready :)

peter


:r!head menu.xml

<?xml version="1.0" encoding="UTF-8"?>

<openbox_menu xmlns="http://icculus.org/openbox/"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://icculus.org/openbox/
    file:///usr/local/share/openbox/menu.xsd">

<menu id="games-menu" label="Games">
  <item label="Crack-Attack">
    <action name="execute"><execute>crack-attack</execute></action>
-------------- next part --------------
<?xml version="1.0" encoding="UTF-8"?>
<!--
     xml Schema for the openbox windowmanager menu file

     Changes:
     Don Aug 14 21:10:27 CEST 2003 - pch(a)myzel.net
         split from rc3.xsd
     Mon Sep  8 12:33:57 CEST 2003 - pch(a)myzel.net
         up to beta1
    Die Sep 16 21:22:59 CEST 2003  - pch(a)myzel.net
         use a namespace
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://icculus.org/openbox/"
    xmlns:ob="http://icculus.org/openbox/"
    elementFormDefault="qualified">
    <!--
         root node
      -->
    <xs:element name="openbox_menu">
        <xs:complexType mixed="false">
            <xs:sequence maxOccurs="unbounded" minOccurs="1">
                <xs:element name="menu" type="ob:menu"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!--
         complex types
      -->
    <xs:complexType name="menu">
        <xs:choice maxOccurs="unbounded" minOccurs="0">
            <xs:element maxOccurs="unbounded" minOccurs="0" name="menu" type="ob:menu"/>
            <xs:element maxOccurs="unbounded" minOccurs="0" name="item" type="ob:item"/>
            <xs:element maxOccurs="unbounded" minOccurs="0" name="separator" type="ob:empty"/>
        </xs:choice>
        <xs:attribute name="label" type="xs:string" use="optional"/>
        <xs:attribute name="id" type="xs:string" use="required"/>
    </xs:complexType>
    <xs:complexType name="empty">
        <xs:complexContent>
            <xs:restriction base="xs:anyType"/>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="item">
        <xs:sequence>
            <xs:element minOccurs="0" name="action">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="execute" type="xs:string"/>
                    </xs:sequence>
                    <xs:attribute name="name" type="ob:actionname" use="required"/>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="label" type="xs:string" use="required"/>
    </xs:complexType>
    <!--
         simple types / restrictions
      -->
    <xs:simpleType name="actionname">
        <xs:restriction base="xs:string">
            <xs:enumeration value="execute"/>
            <xs:enumeration value="restart"/>
            <xs:enumeration value="reconfigure"/>
            <xs:enumeration value="exit"/>
        </xs:restriction>
    </xs:simpleType>
</xs:schema>


More information about the openbox mailing list