data/dictionary.xsd
author František Kučera <franta-hg@frantovo.cz>
Mon, 22 Jun 2020 21:59:38 +0200
changeset 151 a9f1ba451247
parent 13 a5d7afd1b93a
child 152 5c878a53d3ed
permissions -rw-r--r--
fix license version: GNU GPLv3, GNU FDLv1.3
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3 Free Telco Dictionary
     4 Copyright © 2013 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, version 3 of the License.
     9 
    10 This program is distributed in the hope that it will be useful,
    11 but WITHOUT ANY WARRANTY; without even the implied warranty of
    12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13 GNU General Public License for more details.
    14 
    15 You should have received a copy of the GNU General Public License
    16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    17 -->
    18 <xs:schema xmlns="https://telco.frantovo.cz/xmlns/dictionary"
    19            targetNamespace="https://telco.frantovo.cz/xmlns/dictionary"
    20            xmlns:xs="http://www.w3.org/2001/XMLSchema"
    21            elementFormDefault="qualified"
    22            attributeFormDefault="unqualified">
    23 
    24 	<xs:element name="dictionary" type="dictionaryType"/>
    25 
    26 	<xs:complexType name="dictionaryType">
    27 		<xs:sequence>
    28 			<xs:element name="tags" type="tagsDefinitionType"  minOccurs="0" maxOccurs="1"/>
    29 			<xs:element name="concept" type="conceptType"  minOccurs="0" maxOccurs="unbounded"/>
    30 		</xs:sequence>
    31 	</xs:complexType>
    32 	
    33 	<xs:complexType name="tagsDefinitionType">
    34 		<xs:sequence>
    35 			<xs:element name="tag" type="tagDefinitionType" minOccurs="0" maxOccurs="unbounded"/>
    36 		</xs:sequence>
    37 	</xs:complexType>
    38 	
    39 	<xs:complexType name="tagDefinitionType">
    40 		<xs:attribute name="id" type="xs:string"/>
    41 		<xs:attribute name="name" type="xs:string"/>
    42 		<xs:attribute name="description" type="xs:string"/>
    43 	</xs:complexType>
    44 	
    45 	<xs:complexType name="conceptType">
    46 		<xs:sequence>
    47 			<xs:element name="term" type="termType" minOccurs="1" maxOccurs="unbounded"/>
    48 			<xs:element name="explanation" type="explanationType"/>
    49 			<xs:element name="tag" type="tagRefType"  minOccurs="0" maxOccurs="unbounded"/>
    50 		</xs:sequence>
    51 	</xs:complexType>
    52 	
    53 	<xs:complexType name="termType">
    54 		<xs:sequence>
    55 			<xs:element name="tag" type="tagRefType"  minOccurs="0" maxOccurs="unbounded"/>
    56 		</xs:sequence>
    57 		<xs:attribute name="abbreviation" type="xs:string"/>
    58 		<xs:attribute name="completeForm" type="xs:string"/>
    59 		<xs:attribute name="language" type="languageType"/>
    60 	</xs:complexType>
    61 	
    62 	<xs:complexType name="explanationType">
    63 		<xs:all>
    64 			<xs:element name="text" type="textType"/>
    65 		</xs:all>
    66 		<xs:attribute name="language" type="languageType"/>
    67 	</xs:complexType>
    68 	
    69 	<xs:simpleType name="languageType">
    70 		<xs:restriction base="xs:string"/>
    71 	</xs:simpleType>
    72 	
    73 	<xs:simpleType name="textType">
    74 		<xs:restriction base="xs:string"/>
    75 	</xs:simpleType>
    76 	
    77 	<xs:simpleType name="tagRefType">
    78 		<xs:restriction base="xs:string"/>
    79 	</xs:simpleType>
    80 
    81 </xs:schema>