Statistics
| Revision:

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

History | View | Annotate | Download (2.2 kB)

1 911 mdecorde
<?xml version="1.0" encoding="UTF-8"?>
2 911 mdecorde
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
3 911 mdecorde
4 911 mdecorde
 <!-- ==================================================================
5 911 mdecorde
      XML Schema for the TIGER-XML format
6 911 mdecorde
      http://www.ims.uni-stuttgart.de/projekte/TIGER/public/TigerXML.xsd
7 911 mdecorde
      ==================================================================
8 911 mdecorde
      TIGER Project, Wolfgang Lezius
9 911 mdecorde
      IMS, University of Stuttgart, 04/01/2003
10 911 mdecorde
      ================================================================== -->
11 911 mdecorde
12 911 mdecorde
13 911 mdecorde
  <!-- ======================================================
14 911 mdecorde
       INCLUDES DECLARATION OF THE HEADER
15 911 mdecorde
       ====================================================== -->
16 911 mdecorde
  <xs:include schemaLocation="TigerXMLHeader.xsd"/>
17 911 mdecorde
18 911 mdecorde
19 911 mdecorde
  <!-- ======================================================
20 911 mdecorde
       INCLUDES DECLARATION OF SUBCORPORA AND SENTENCES
21 911 mdecorde
       ====================================================== -->
22 911 mdecorde
  <xs:include schemaLocation="TigerXMLSubcorpus.xsd"/>
23 911 mdecorde
24 911 mdecorde
25 911 mdecorde
  <!-- ======================================================
26 911 mdecorde
       DECLARATION OF THE CORPUS DOCUMENT
27 911 mdecorde
       ====================================================== -->
28 911 mdecorde
29 911 mdecorde
  <!-- declaration of the root element: corpus -->
30 911 mdecorde
31 911 mdecorde
  <xs:element name="corpus">
32 911 mdecorde
33 911 mdecorde
34 911 mdecorde
35 911 mdecorde
        <xs:complexType>
36 911 mdecorde
37 911 mdecorde
      <xs:sequence>
38 911 mdecorde
39 911 mdecorde
        <xs:choice>
40 911 mdecorde
           <!-- header of the document is optional -->
41 911 mdecorde
           <xs:element name="head" type="headType" minOccurs="0" maxOccurs="1" />
42 911 mdecorde
        <xs:/choice>
43 911 mdecorde
44 911 mdecorde
        <xs:element name="body" type="bodyType" minOccurs="1" maxOccurs="1" />
45 911 mdecorde
46 911 mdecorde
      <xs:/sequence>
47 911 mdecorde
48 911 mdecorde
      <!-- corpus ID -->
49 911 mdecorde
      <xs:attribute name="id" type="idType" use="required" />
50 911 mdecorde
51 911 mdecorde
      <!-- optional attribute: TigerXML version; used by TIGERSearch only -->
52 911 mdecorde
      <xs:attribute name="version" type="xsd:string" use="optional" />
53 911 mdecorde
54 911 mdecorde
    <xs:/complexType>
55 911 mdecorde
    <xs:/element>
56 911 mdecorde
57 911 mdecorde
58 911 mdecorde
  <!-- declaration of the body type -->
59 911 mdecorde
60 911 mdecorde
  <xs:complexType name="bodyType">
61 911 mdecorde
62 911 mdecorde
    <xs:choice minOccurs="1" maxOccurs="unbounded">
63 911 mdecorde
      <xs:element name="subcorpus" type="subcorpusType" minOccurs="1" maxOccurs="1"/>
64 911 mdecorde
      <xs:element name="s" type="sentenceType" minOccurs="1" maxOccurs="1"/>
65 911 mdecorde
    <xs:/choice>
66 911 mdecorde
67 911 mdecorde
  <xs:/complexType>
68 911 mdecorde
69 911 mdecorde
70 911 mdecorde
<xs:/schema>