Changeset 1930 for FederatedSearch


Ignore:
Timestamp:
05/08/12 16:00:21 (12 years ago)
Author:
oschonef
Message:
  • added proper "elementFormDefault" attribute
  • dropped "schema" attribute from ResourceType?
File:
1 edited

Legend:

Unmodified
Added
Removed
  • FederatedSearch/Resource.xsd

    r1662 r1930  
    11<?xml version="1.0" encoding="UTF-8"?>
    2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://clarin.eu/fcs/1.0"
    3     xmlns:fcs="http://clarin.eu/fcs/1.0">
     2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fcs="http://clarin.eu/fcs/1.0"
     3    targetNamespace="http://clarin.eu/fcs/1.0" elementFormDefault="qualified">
    44    <xs:annotation>
    55        <xs:documentation>This schema shall define the generic inner structure
     
    1919    </xs:annotation>
    2020
    21     <xs:element name="Resource" type="fcs:ResourceType"> </xs:element>
     21    <xs:element name="Resource" type="fcs:ResourceType"/>
     22
    2223    <xs:complexType name="ResourceType">
    2324        <xs:sequence>
    2425            <xs:element maxOccurs="unbounded" minOccurs="0" name="Resource" type="fcs:ResourceType"/>
    2526            <xs:element maxOccurs="unbounded" minOccurs="0" name="DataView" type="fcs:DataViewType"/>
    26             <xs:element maxOccurs="unbounded" minOccurs="0" name="ResourceFragment"
    27                 type="fcs:ResourceFragmentType"/>
     27            <xs:element maxOccurs="unbounded" minOccurs="0" name="ResourceFragment" type="fcs:ResourceFragmentType"/>
    2828        </xs:sequence>
    2929        <xs:attribute name="pid" type="fcs:pidType" use="optional"/>
     
    3434    <xs:complexType name="ResourceFragmentType">
    3535        <xs:sequence>
    36             <xs:element maxOccurs="unbounded" minOccurs="0" name="DataView" type="fcs:DataViewType"
    37             />
     36            <xs:element maxOccurs="unbounded" minOccurs="0" name="DataView" type="fcs:DataViewType"/>
    3837        </xs:sequence>
    3938        <xs:attribute name="pid" type="fcs:pidType" use="optional"/>
     
    4342    <xs:complexType name="DataViewType">
    4443        <xs:annotation>
    45             <xs:documentation>the content expressed in XML that complies with another XML Schema (namespace=#other). </xs:documentation>
     44            <xs:documentation>
     45                The content expressed in XML that complies with another XML Schema (namespace=#other).
     46            </xs:documentation>
    4647        </xs:annotation>
    4748        <xs:sequence>
     
    5152        <xs:attribute name="pid" type="fcs:pidType"/>
    5253        <xs:attribute name="ref" type="fcs:refType"/>
    53         <xs:attribute name="schema" type="fcs:schemaType"/>
    5454    </xs:complexType>
    5555
    5656    <xs:simpleType name="DataViewTypeType">
    5757        <xs:annotation>
    58             <xs:documentation>This is obviously not exhaustive.
    59 
    60 Could this be a superset of of MIME-type?</xs:documentation>
     58            <xs:documentation>
     59                This is obviously not exhaustive. Could this be a superset of of MIME-type?
     60            </xs:documentation>
    6161        </xs:annotation>
    6262        <xs:restriction base="xs:string">
     
    8181    </xs:simpleType>
    8282
    83 
    84     <xs:simpleType name="schemaType">
    85         <xs:annotation>
    86             <xs:documentation>a reference to a schema, describing the content of the DataView</xs:documentation>
    87         </xs:annotation>
    88         <xs:restriction base="xs:anyURI"/>
    89     </xs:simpleType>
    9083</xs:schema>
Note: See TracChangeset for help on using the changeset viewer.