<?xml version="1.0" encoding="utf8" ?>
<!DOCTYPE schema
  PUBLIC "-//W3C//DTD XMLSchema 200102//EN" 
         "http://www.w3.org/2001/XMLSchema.dtd"
>
<!-- 
 cvs         : $Id: plugindescr.xsd.in 641 2004-12-14 05:39:52Z aquamaniac $
 begin       : Tue Sep 09 2003
 copyright   : (C) 2003 by Martin Preuss
 email       : martin@libchipcard.de

 XML schema for Gwenhywfar PluginDescr files
 Part of Gwenhywfar 2.6.2.

 Validate your plugin description files with the following command:
    xmllint -noout -schema plugindescr.xsd YOURFILE
 (Please duplicate the single hyphens above)
-->

<xs:schema xmlns="http://www.aquamaniac.de/gwenhywfar/PluginDescr"
  targetNamespace="http://www.aquamaniac.de/gwenhywfar/PluginDescr"
  xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:simpleType name="country" >
    <xs:restriction base="xs:string">
      <xs:pattern value="[a-zA-Z]{1,3}" />
    </xs:restriction>
  </xs:simpleType>
  
  <xs:complexType name="plugin" abstract="true" >
    <xs:sequence>
      <xs:element name="version" type="xs:string" />
      <xs:element name="author" type="xs:string" />
      <xs:element name="short" type="xs:string" />
      <xs:element name="descr" type="xs:string" minOccurs="0" />
    </xs:sequence>
    
    <xs:attribute name="name" type="xs:string" />
    <xs:attribute name="lang" type="country" />
    <xs:attribute name="type" type="xs:string" />
    
  </xs:complexType>

  <xs:complexType name="PluginDescr" abstract="true" >
    <xs:sequence>
      <xs:element name="plugin" type="plugin" 
      	minOccurs="1" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:element name="PluginDescr" type="PluginDescr" />

</xs:schema>
