data/dictionary.xsd
author František Kučera <franta-hg@frantovo.cz>
Fri, 16 Aug 2013 13:33:43 +0200
changeset 70 c527e15217eb
parent 13 a5d7afd1b93a
child 151 a9f1ba451247
permissions -rw-r--r--
data: JavaDoc – just formatting
     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, 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:element name="tag" type="tagRefType"  minOccurs="0" maxOccurs="unbounded"/>
    51 		</xs:sequence>
    52 	</xs:complexType>
    53 	
    54 	<xs:complexType name="termType">
    55 		<xs:sequence>
    56 			<xs:element name="tag" type="tagRefType"  minOccurs="0" maxOccurs="unbounded"/>
    57 		</xs:sequence>
    58 		<xs:attribute name="abbreviation" type="xs:string"/>
    59 		<xs:attribute name="completeForm" type="xs:string"/>
    60 		<xs:attribute name="language" type="languageType"/>
    61 	</xs:complexType>
    62 	
    63 	<xs:complexType name="explanationType">
    64 		<xs:all>
    65 			<xs:element name="text" type="textType"/>
    66 		</xs:all>
    67 		<xs:attribute name="language" type="languageType"/>
    68 	</xs:complexType>
    69 	
    70 	<xs:simpleType name="languageType">
    71 		<xs:restriction base="xs:string"/>
    72 	</xs:simpleType>
    73 	
    74 	<xs:simpleType name="textType">
    75 		<xs:restriction base="xs:string"/>
    76 	</xs:simpleType>
    77 	
    78 	<xs:simpleType name="tagRefType">
    79 		<xs:restriction base="xs:string"/>
    80 	</xs:simpleType>
    81 
    82 </xs:schema>