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