data/dictionary.xsd
author František Kučera <franta-hg@frantovo.cz>
Sun, 07 Jul 2013 00:01:04 +0200
changeset 0 0b192a8f211b
child 1 1d07b6f18e49
permissions -rw-r--r--
first XML format specification + first list of terms
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <xs:schema xmlns="https://telco.frantovo.cz/xmlns/dictionary"
     3            targetNamespace="https://telco.frantovo.cz/xmlns/dictionary"
     4            xmlns:xs="http://www.w3.org/2001/XMLSchema"
     5            elementFormDefault="qualified"
     6            attributeFormDefault="unqualified">
     7 
     8 	<xs:element name="dictionary" type="dictionaryType"/>
     9 
    10 	<xs:complexType name="dictionaryType">
    11 		<xs:sequence minOccurs="0" maxOccurs="unbounded">
    12 			<xs:element name="concept" type="conceptType"/>
    13 		</xs:sequence>
    14 	</xs:complexType>
    15 	
    16 	<xs:complexType name="conceptType">
    17 		<xs:sequence>
    18 			<xs:element name="term" type="termType" minOccurs="1" maxOccurs="unbounded"/>
    19 			<xs:element name="explanation" type="explanationType"/>
    20 		</xs:sequence>
    21 	</xs:complexType>
    22 	
    23 	<xs:complexType name="termType">
    24 		<xs:attribute name="abbreviation" type="xs:string"/>
    25 		<xs:attribute name="completeForm" type="xs:string"/>
    26 		<xs:attribute name="language" type="languageType"/>
    27 	</xs:complexType>
    28 	
    29 	<xs:complexType name="explanationType">
    30 		<xs:all>
    31 			<xs:element name="text" type="textType"/>
    32 		</xs:all>
    33 		<xs:attribute name="language" type="languageType"/>
    34 	</xs:complexType>
    35 	
    36 	<xs:simpleType name="languageType">
    37 		<xs:restriction base="xs:string"/>
    38 	</xs:simpleType>
    39 	
    40 	<xs:simpleType name="textType">
    41 		<xs:restriction base="xs:string"/>
    42 	</xs:simpleType>
    43 
    44 </xs:schema>