<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
 XML Schema for common elements of Dictionary Markup Language.
 These elements are used to encode heterogeneous lexical databases 
 
 Namespace = http://www-clips.imag.fr/geta/services/dml/macfly.xsd

 This schema is identified by the location:

 http://www-clips.imag.fr/geta/services/dml/macfly.xsd
  
 $Author: mangeot $ Mathieu MANGEOT-LEREBOURS Mathieu.Mangeot@imag.fr
 $Date: 2006/03/12 13:05:51 $
 $Revision: 1.3 $

 -->

<xs:schema
  xmlns:xs='http://www.w3.org/2001/XMLSchema'
  elementFormDefault="qualified">

<xs:annotation>
  <xs:documentation xml:lang="en">
 XML Schema for MacFly monolingual English dictionary
 
 Namespace = http://www-clips.imag.fr/geta/services/dml/macfly.xsd

 </xs:documentation> 
</xs:annotation>


<!-- volume element  -->
<!-- This element describes a volume.
It is a list of entries sorted following
the nomenclature of the dictionary -->

<xs:element name='volume' type="volumeType"/>

<xs:complexType name="volumeType">
<!-- volume -->
 <xs:sequence>
  <xs:element ref='entry' minOccurs='0' maxOccurs='unbounded'/>
 </xs:sequence>
<xs:attribute name='name' type='xs:string' use='optional'/>
<xs:attribute name='source-language' type='xs:string' use='optional'/>
</xs:complexType>

<xs:element name='entry'>
 <xs:complexType>
  <xs:sequence>
   <xs:element ref='headword' minOccurs='1' maxOccurs='1' />
   <xs:element ref='pos' minOccurs='1' maxOccurs='1' />
   <xs:element ref='definition' minOccurs='0' maxOccurs='1' />
   <xs:element ref='accepted' minOccurs='1' maxOccurs='1' />
   <xs:element ref='comment' minOccurs='1' maxOccurs='1' />
   </xs:sequence>
  </xs:complexType>
</xs:element>
 
 <xs:element name='headword' type='xs:string' />

 <xs:element name='pos' type='posType' />

 <xs:simpleType name="posType">
 	<restriction base="xs:string">
 		<enumeration value="adjective"/> 
 		<enumeration value="adverb"/> 
 		<enumeration value="noun"/> 
 		<enumeration value="preposition"/> 
 		<enumeration value="verb"/> 
 	</restriction>
 </xs:simpleType>

<xs:element name='definition' type='xs:string' />

 <xs:element name='accepted' type='acceptedType' />

 <xs:element name='comment' type='xs:string' />
 
 <xs:simpleType name="acceptedType">
 	<restriction base="xs:string">
 		<enumeration value="not revised"/> 
 		<enumeration value="not accepted"/> 
 		<enumeration value="accepted"/> 
 	</restriction>
 </xs:simpleType>
 
 </xs:schema>
 

