data/dictionary.xsd
author František Kučera <franta-hg@frantovo.cz>
Sun, 07 Jul 2013 00:28:40 +0200
changeset 5 89cbc713692d
parent 1 1d07b6f18e49
child 6 590ea4c94301
permissions -rw-r--r--
support for tags + basic tags
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3 Free Telco Dictionary
     4 Copyright © 2012 František Kučera (frantovo.cz)
     5 
     6 This program is free software: you can redistribute it and/or modify
     7 it under the terms of the GNU General Public License as published by
     8 the Free Software Foundation, either version 3 of the License, or
     9 (at your option) any later version.
    10 
    11 This program is distributed in the hope that it will be useful,
    12 but WITHOUT ANY WARRANTY; without even the implied warranty of
    13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    14 GNU General Public License for more details.
    15 
    16 You should have received a copy of the GNU General Public License
    17 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    18 -->
    19 <xs:schema xmlns="https://telco.frantovo.cz/xmlns/dictionary"
    20            targetNamespace="https://telco.frantovo.cz/xmlns/dictionary"
    21            xmlns:xs="http://www.w3.org/2001/XMLSchema"
    22            elementFormDefault="qualified"
    23            attributeFormDefault="unqualified">
    24 
    25 	<xs:element name="dictionary" type="dictionaryType"/>
    26 
    27 	<xs:complexType name="dictionaryType">
    28 		<xs:sequence>
    29 			<xs:element name="tags" type="tagsDefinitionType"  minOccurs="0" maxOccurs="1"/>
    30 			<xs:element name="concept" type="conceptType"  minOccurs="0" maxOccurs="unbounded"/>
    31 		</xs:sequence>
    32 	</xs:complexType>
    33 	
    34 	<xs:complexType name="tagsDefinitionType">
    35 		<xs:sequence>
    36 			<xs:element name="tag" type="tagDefinitionType" minOccurs="0" maxOccurs="unbounded"/>
    37 		</xs:sequence>
    38 	</xs:complexType>
    39 	
    40 	<xs:complexType name="tagDefinitionType">
    41 		<xs:attribute name="id" type="xs:string"/>
    42 		<xs:attribute name="name" type="xs:string"/>
    43 		<xs:attribute name="description" type="xs:string"/>
    44 	</xs:complexType>
    45 	
    46 	<xs:complexType name="conceptType">
    47 		<xs:sequence>
    48 			<xs:element name="term" type="termType" minOccurs="1" maxOccurs="unbounded"/>
    49 			<xs:element name="explanation" type="explanationType"/>
    50 		</xs:sequence>
    51 	</xs:complexType>
    52 	
    53 	<xs:complexType name="termType">
    54 		<xs:attribute name="abbreviation" type="xs:string"/>
    55 		<xs:attribute name="completeForm" type="xs:string"/>
    56 		<xs:attribute name="language" type="languageType"/>
    57 	</xs:complexType>
    58 	
    59 	<xs:complexType name="explanationType">
    60 		<xs:all>
    61 			<xs:element name="text" type="textType"/>
    62 		</xs:all>
    63 		<xs:attribute name="language" type="languageType"/>
    64 	</xs:complexType>
    65 	
    66 	<xs:simpleType name="languageType">
    67 		<xs:restriction base="xs:string"/>
    68 	</xs:simpleType>
    69 	
    70 	<xs:simpleType name="textType">
    71 		<xs:restriction base="xs:string"/>
    72 	</xs:simpleType>
    73 
    74 </xs:schema>