data/dictionary.xsd
author František Kučera <franta-hg@frantovo.cz>
Sun, 07 Jul 2013 00:05:43 +0200
changeset 1 1d07b6f18e49
parent 0 0b192a8f211b
child 5 89cbc713692d
permissions -rw-r--r--
licences
     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 minOccurs="0" maxOccurs="unbounded">
    29 			<xs:element name="concept" type="conceptType"/>
    30 		</xs:sequence>
    31 	</xs:complexType>
    32 	
    33 	<xs:complexType name="conceptType">
    34 		<xs:sequence>
    35 			<xs:element name="term" type="termType" minOccurs="1" maxOccurs="unbounded"/>
    36 			<xs:element name="explanation" type="explanationType"/>
    37 		</xs:sequence>
    38 	</xs:complexType>
    39 	
    40 	<xs:complexType name="termType">
    41 		<xs:attribute name="abbreviation" type="xs:string"/>
    42 		<xs:attribute name="completeForm" type="xs:string"/>
    43 		<xs:attribute name="language" type="languageType"/>
    44 	</xs:complexType>
    45 	
    46 	<xs:complexType name="explanationType">
    47 		<xs:all>
    48 			<xs:element name="text" type="textType"/>
    49 		</xs:all>
    50 		<xs:attribute name="language" type="languageType"/>
    51 	</xs:complexType>
    52 	
    53 	<xs:simpleType name="languageType">
    54 		<xs:restriction base="xs:string"/>
    55 	</xs:simpleType>
    56 	
    57 	<xs:simpleType name="textType">
    58 		<xs:restriction base="xs:string"/>
    59 	</xs:simpleType>
    60 
    61 </xs:schema>