data/dictionary.xsd
changeset 5 89cbc713692d
parent 1 1d07b6f18e49
child 6 590ea4c94301
     1.1 --- a/data/dictionary.xsd	Sun Jul 07 00:14:32 2013 +0200
     1.2 +++ b/data/dictionary.xsd	Sun Jul 07 00:28:40 2013 +0200
     1.3 @@ -25,11 +25,24 @@
     1.4  	<xs:element name="dictionary" type="dictionaryType"/>
     1.5  
     1.6  	<xs:complexType name="dictionaryType">
     1.7 -		<xs:sequence minOccurs="0" maxOccurs="unbounded">
     1.8 -			<xs:element name="concept" type="conceptType"/>
     1.9 +		<xs:sequence>
    1.10 +			<xs:element name="tags" type="tagsDefinitionType"  minOccurs="0" maxOccurs="1"/>
    1.11 +			<xs:element name="concept" type="conceptType"  minOccurs="0" maxOccurs="unbounded"/>
    1.12  		</xs:sequence>
    1.13  	</xs:complexType>
    1.14  	
    1.15 +	<xs:complexType name="tagsDefinitionType">
    1.16 +		<xs:sequence>
    1.17 +			<xs:element name="tag" type="tagDefinitionType" minOccurs="0" maxOccurs="unbounded"/>
    1.18 +		</xs:sequence>
    1.19 +	</xs:complexType>
    1.20 +	
    1.21 +	<xs:complexType name="tagDefinitionType">
    1.22 +		<xs:attribute name="id" type="xs:string"/>
    1.23 +		<xs:attribute name="name" type="xs:string"/>
    1.24 +		<xs:attribute name="description" type="xs:string"/>
    1.25 +	</xs:complexType>
    1.26 +	
    1.27  	<xs:complexType name="conceptType">
    1.28  		<xs:sequence>
    1.29  			<xs:element name="term" type="termType" minOccurs="1" maxOccurs="unbounded"/>