<?xml version="1.0"?>
<xs:schema targetNamespace="urn:workshop-control/external-stub.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:workshop-control/external-stub.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified"> 
   
    <xs:complexType name="stubType">
        <xs:sequence>
            <xs:element name="downloadURL" type="xs:string" />
            <xs:element name="control" type="tns:controlLine" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    
    <xs:complexType name="controlLine">
		<xs:sequence>
            <xs:element name="display-in-palette" type="xs:boolean"/>
            <xs:element name="label" type="xs:string"/>
            <xs:element name="icon-32" type="xs:string" minOccurs="0"/>
            <xs:element name="icon-16" type="xs:string" minOccurs="0"/>
            <xs:element name="version" type="xs:string" minOccurs="0"/>
            <xs:element name="palette-priority" type="xs:int" minOccurs="0"/>
            <xs:element name="group-name" type="xs:string" minOccurs="0"/>
            <xs:element name="group-priority" type="xs:int" minOccurs="0"/>
            <xs:element name="interface-class" type="xs:string"/>
            <xs:element name="implementation-class" type="xs:string"/>
            <xs:element name="description" type="xs:string"/>
            <xs:element name="requires-extension" type="xs:boolean" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>

	<xs:element name="stub" type="tns:stubType"/>
</xs:schema>
