Statistics
| Revision:

root / tmp / org.txm.tigersearch.rcp / groovy / org / txm / importer / tigersearch / TigerXML.xsd @ 966

History | View | Annotate | Download (2.2 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
3

    
4
 <!-- ==================================================================
5
      XML Schema for the TIGER-XML format
6
      http://www.ims.uni-stuttgart.de/projekte/TIGER/public/TigerXML.xsd
7
      ==================================================================
8
      TIGER Project, Wolfgang Lezius
9
      IMS, University of Stuttgart, 04/01/2003
10
      ================================================================== -->
11

    
12

    
13
  <!-- ======================================================
14
       INCLUDES DECLARATION OF THE HEADER
15
       ====================================================== -->
16
  <xs:include schemaLocation="TigerXMLHeader.xsd"/>
17

    
18

    
19
  <!-- ======================================================
20
       INCLUDES DECLARATION OF SUBCORPORA AND SENTENCES
21
       ====================================================== -->
22
  <xs:include schemaLocation="TigerXMLSubcorpus.xsd"/>
23

    
24

    
25
  <!-- ======================================================
26
       DECLARATION OF THE CORPUS DOCUMENT
27
       ====================================================== -->
28

    
29
  <!-- declaration of the root element: corpus -->
30

    
31
  <xs:element name="corpus">
32
  
33
    
34
  
35
        <xs:complexType>
36

    
37
      <xs:sequence>
38

    
39
        <xs:choice>           
40
           <!-- header of the document is optional -->
41
           <xs:element name="head" type="headType" minOccurs="0" maxOccurs="1" />
42
        <xs:/choice>
43

    
44
        <xs:element name="body" type="bodyType" minOccurs="1" maxOccurs="1" />
45

    
46
      <xs:/sequence>
47

    
48
      <!-- corpus ID -->
49
      <xs:attribute name="id" type="idType" use="required" />
50

    
51
      <!-- optional attribute: TigerXML version; used by TIGERSearch only -->
52
      <xs:attribute name="version" type="xsd:string" use="optional" />
53

    
54
    <xs:/complexType>
55
    <xs:/element>
56

    
57

    
58
  <!-- declaration of the body type -->
59

    
60
  <xs:complexType name="bodyType">
61

    
62
    <xs:choice minOccurs="1" maxOccurs="unbounded">
63
      <xs:element name="subcorpus" type="subcorpusType" minOccurs="1" maxOccurs="1"/>
64
      <xs:element name="s" type="sentenceType" minOccurs="1" maxOccurs="1"/>
65
    <xs:/choice>
66

    
67
  <xs:/complexType>
68

    
69

    
70
<xs:/schema>