source: FederatedSearch/schema/DataView-Hits.xsd

Last change on this file was 4678, checked in by Oliver Schonefeld, 10 years ago
  • remove unnecessary (and wrong) namespace declaration
  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/xml
File size: 2.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3    xmlns:h="http://www.w3.org/1999/xhtml"
4    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
5    xml:lang="en" vc:minVersion="1.0" vc:maxVersion="1.1"
6    targetNamespace="http://clarin.eu/fcs/dataview/hits" elementFormDefault="qualified">
7
8    <xs:annotation>
9        <xs:documentation>
10            <h:p>
11                This schema defines the structure of a
12                <h:em>generic result</h:em> data view. All CLARIN-FCS endpoints
13                MUST support this data view.
14            </h:p>
15            <h:p>
16                The value <h:code>application/x-clarin-fcs-hits+xml</h:code>
17                MUST be used to indicate a <h:em>generic result</h:em> data view.
18            </h:p>
19        </xs:documentation>   
20    </xs:annotation>
21
22    <xs:element name="Result">
23        <xs:annotation>
24            <xs:documentation>
25                <h:p>
26                    A single result line with one or more marked hits.
27                    White-space is considered <h:em>non-signification</h:em>,
28                    except for delimiting tokens.
29                </h:p>
30                <h:p>
31                    CLARIN-FCS client MAY
32                    normalize white-space and strip leading and tailing
33                    white-space and collapse all white-space between
34                    tokens to a single #x20 character.
35                </h:p>
36            </xs:documentation>
37        </xs:annotation>
38        <xs:complexType mixed="true">
39            <xs:sequence>
40                <xs:element name="Hit" type="xs:string" maxOccurs="unbounded">
41                    <xs:annotation>
42                        <xs:documentation>
43                            <h:p>
44                                A hit highlight. It SHALL not be empty.
45                            </h:p>
46                            <h:p>
47                                One <h:code>Result</h:code> element MUST
48                                one <h:code>Hit</h:code> element, but MAY
49                                contain more than one.
50                            </h:p>
51                        </xs:documentation>
52                    </xs:annotation>
53                </xs:element>
54            </xs:sequence>
55        </xs:complexType>
56    </xs:element>
57</xs:schema>
Note: See TracBrowser for help on using the repository browser.