Changeset 2073


Ignore:
Timestamp:
08/09/12 15:06:28 (12 years ago)
Author:
dietuyt
Message:

Added 2 new ResourceProxy? types: SearchService? and SearchPage?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • metadata/trunk/toolkit/xslt/comp2schema-v2/comp2schema-header.xsl

    r1301 r2073  
    1111    <xsl:template name="PrintHeaderType">
    1212        <xs:simpleType name="Resourcetype_simple">
    13             <xs:restriction base="xs:string">   
     13            <xs:restriction base="xs:string">
    1414                <xs:enumeration value="Metadata">
    1515                    <xs:annotation>
    16                         <xs:documentation>The ResourceProxy
    17                             refers to another component
    18                             metadata instance (e.g. for
    19                             grouping metadata descriptions
    20                             into
     16                        <xs:documentation>The ResourceProxy refers to another component metadata
     17                            instance (e.g. for grouping metadata descriptions into
    2118                            collections)</xs:documentation>
    2219                    </xs:annotation>
     
    2421                <xs:enumeration value="Resource">
    2522                    <xs:annotation>
    26                         <xs:documentation>The ResourceProxy
    27                             refers to a file that is not a
    28                             metadata instance (e.g. a text
    29                             document)</xs:documentation>
     23                        <xs:documentation>The ResourceProxy refers to a file that is not a metadata
     24                            instance (e.g. a text document)</xs:documentation>
    3025                    </xs:annotation>
    3126                </xs:enumeration>
    32             </xs:restriction>   
     27                <xs:enumeration value="SearchService">
     28                    <xs:annotation>
     29                        <xs:documentation>The ResourceProxy refers to a (SRU/CQL) web service that can be used to query the resource described in this file</xs:documentation>
     30                    </xs:annotation>
     31                </xs:enumeration>
     32                <xs:enumeration value="SearchPage">
     33                    <xs:annotation>
     34                        <xs:documentation>The ResourceProxy refers to a web page that can be used to query the resource described in this file</xs:documentation>
     35                    </xs:annotation>
     36                </xs:enumeration>
     37            </xs:restriction>
    3338        </xs:simpleType>
    3439    </xsl:template>
     
    3641
    3742    <xsl:template name="PrintHeader">
    38        
     43
    3944        <xs:element name="Header">
    4045            <xs:complexType>
     
    5964                                            <xs:element maxOccurs="1" minOccurs="1"
    6065                                                name="ResourceType">
    61                                                 <xs:complexType>                                               
    62                                                     <xs:simpleContent>
    63                                                         <xs:extension base="cmd:Resourcetype_simple">
    64                                                             <xs:attribute name="mimetype" type="xs:string"/>
    65                                                         </xs:extension>
    66                                                     </xs:simpleContent>
     66                                                <xs:complexType>
     67                                                  <xs:simpleContent>
     68                                                  <xs:extension base="cmd:Resourcetype_simple">
     69                                                  <xs:attribute name="mimetype" type="xs:string"/>
     70                                                  </xs:extension>
     71                                                  </xs:simpleContent>
    6772                                                </xs:complexType>
    6873                                            </xs:element>
     
    116121                        </xs:complexType>
    117122                    </xs:element>
    118                    
     123
    119124                    <xs:element minOccurs="0" name="IsPartOfList">
    120125                        <xs:complexType>
    121126                            <xs:sequence>
    122                                 <xs:element maxOccurs="unbounded" minOccurs="0"
    123                                     name="IsPartOf" type="xs:anyURI"/>
     127                                <xs:element maxOccurs="unbounded" minOccurs="0" name="IsPartOf"
     128                                    type="xs:anyURI"/>
    124129                            </xs:sequence>
    125130                        </xs:complexType>
    126131                    </xs:element>
    127                    
     132
    128133                </xs:sequence>
    129134            </xs:complexType>
Note: See TracChangeset for help on using the changeset viewer.