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