support for tags + basic tags
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sun, 07 Jul 2013 00:28:40 +0200
changeset 589cbc713692d
parent 4 1f56fd19fac6
child 6 590ea4c94301
support for tags + basic tags
data/dictionary.xml
data/dictionary.xsd
     1.1 --- a/data/dictionary.xml	Sun Jul 07 00:14:32 2013 +0200
     1.2 +++ b/data/dictionary.xml	Sun Jul 07 00:28:40 2013 +0200
     1.3 @@ -14,6 +14,17 @@
     1.4  along with this program.  If not, see <http://www.gnu.org/licenses/>.
     1.5  -->
     1.6  <dictionary xmlns="https://telco.frantovo.cz/xmlns/dictionary">
     1.7 +
     1.8 +	<tags>
     1.9 +		<tag id="acision" name="Acision" description="comes from Acision or is specific for this company"/>
    1.10 +		<tag id="ericsson" name="Ericsson" description="comes from Ericsson or is specific for this company"/>
    1.11 +		<tag id="nsn" name="Nokia Siemens Networks" description="comes from Nokia Siemens Networks or is specific for this company"/>
    1.12 +		
    1.13 +		<tag id="computer" name="Computer" description="general IS/ICT term"/>
    1.14 +		<tag id="general" name="General" description="general term"/>
    1.15 +		<tag id="latin" name="Latin" description="latin term or abbreviation"/>
    1.16 +	</tags>
    1.17 +
    1.18  	<concept>
    1.19  		<term abbreviation="MVNO" completeForm="" language="en"/>
    1.20  		<explanation language="en"><text></text></explanation>
     2.1 --- a/data/dictionary.xsd	Sun Jul 07 00:14:32 2013 +0200
     2.2 +++ b/data/dictionary.xsd	Sun Jul 07 00:28:40 2013 +0200
     2.3 @@ -25,11 +25,24 @@
     2.4  	<xs:element name="dictionary" type="dictionaryType"/>
     2.5  
     2.6  	<xs:complexType name="dictionaryType">
     2.7 -		<xs:sequence minOccurs="0" maxOccurs="unbounded">
     2.8 -			<xs:element name="concept" type="conceptType"/>
     2.9 +		<xs:sequence>
    2.10 +			<xs:element name="tags" type="tagsDefinitionType"  minOccurs="0" maxOccurs="1"/>
    2.11 +			<xs:element name="concept" type="conceptType"  minOccurs="0" maxOccurs="unbounded"/>
    2.12  		</xs:sequence>
    2.13  	</xs:complexType>
    2.14  	
    2.15 +	<xs:complexType name="tagsDefinitionType">
    2.16 +		<xs:sequence>
    2.17 +			<xs:element name="tag" type="tagDefinitionType" minOccurs="0" maxOccurs="unbounded"/>
    2.18 +		</xs:sequence>
    2.19 +	</xs:complexType>
    2.20 +	
    2.21 +	<xs:complexType name="tagDefinitionType">
    2.22 +		<xs:attribute name="id" type="xs:string"/>
    2.23 +		<xs:attribute name="name" type="xs:string"/>
    2.24 +		<xs:attribute name="description" type="xs:string"/>
    2.25 +	</xs:complexType>
    2.26 +	
    2.27  	<xs:complexType name="conceptType">
    2.28  		<xs:sequence>
    2.29  			<xs:element name="term" type="termType" minOccurs="1" maxOccurs="unbounded"/>