Ignore:
Timestamp:
05/26/15 11:38:36 (9 years ago)
Author:
Menzo Windhouwer
Message:

toolkit/xsd/cmd-envelop.xsd

  • made envelop open for attributes in foreign namespaces, as now is also the case in CMDI 1.1

toolkit*

  • various changes to align with the latest ideas on versioned namespace URIs (see latest version of the CAC paper)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • metadata/trunk/toolkit/xsd/cmd-envelop.xsd

    r5628 r6238  
    11<?xml version="1.0" encoding="UTF-8"?>
    2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcr="http://www.isocat.org/ns/dcr" xmlns:cmd="http://www.clarin.eu/cmd/" targetNamespace="http://www.clarin.eu/cmd/" elementFormDefault="qualified">
     2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcr="http://www.isocat.org/ns/dcr"
     3    xmlns:cmd="http://www.clarin.eu/cmd/1" targetNamespace="http://www.clarin.eu/cmd/1"
     4    elementFormDefault="qualified" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
     5    vc:minVersion="1.0" vc:maxVersion="1.1">
    36    <!-- globally declare attributes, so they have to be qualified -->
    47    <xs:attribute name="ref" type="xs:IDREF"/>
     
    1013            <xs:enumeration value="Metadata">
    1114                <xs:annotation>
    12                     <xs:documentation>The ResourceProxy refers to another component metadata instance (e.g. for grouping metadata descriptions into collections)</xs:documentation>
     15                    <xs:documentation>The ResourceProxy refers to another component metadata
     16                        instance (e.g. for grouping metadata descriptions into
     17                        collections)</xs:documentation>
    1318                </xs:annotation>
    1419            </xs:enumeration>
    1520            <xs:enumeration value="Resource">
    1621                <xs:annotation>
    17                     <xs:documentation>The ResourceProxy refers to a file that is not a metadata instance (e.g. a text document)</xs:documentation>
     22                    <xs:documentation>The ResourceProxy refers to a file that is not a metadata
     23                        instance (e.g. a text document)</xs:documentation>
    1824                </xs:annotation>
    1925            </xs:enumeration>
    2026            <xs:enumeration value="SearchService">
    2127                <xs:annotation>
    22                     <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>
     28                    <xs:documentation>The ResourceProxy refers to a (SRU/CQL) web service that can
     29                        be used to query the resource described in this file</xs:documentation>
    2330                </xs:annotation>
    2431            </xs:enumeration>
    2532            <xs:enumeration value="SearchPage">
    2633                <xs:annotation>
    27                     <xs:documentation>The ResourceProxy refers to a web page that can be used to query the resource described in this file</xs:documentation>
     34                    <xs:documentation>The ResourceProxy refers to a web page that can be used to
     35                        query the resource described in this file</xs:documentation>
    2836                </xs:annotation>
    2937            </xs:enumeration>
    3038            <xs:enumeration value="LandingPage">
    3139                <xs:annotation>
    32                     <xs:documentation>The ResourceProxy refers to a web page that contains the "original context" of the resource described in this file (e.g. repository web page displaying the metadata).</xs:documentation>
     40                    <xs:documentation>The ResourceProxy refers to a web page that contains the
     41                        "original context" of the resource described in this file (e.g. repository
     42                        web page displaying the metadata).</xs:documentation>
    3343                </xs:annotation>
    3444            </xs:enumeration>
     
    4353                    <xs:complexType>
    4454                        <xs:sequence>
    45                             <xs:element name="MdCreator" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
    46                             <xs:element name="MdCreationDate" type="xs:date" minOccurs="0" maxOccurs="1"/>
    47                             <xs:element name="MdSelfLink" type="xs:anyURI" minOccurs="0" maxOccurs="1"/>
    48                             <xs:element name="MdProfile" type="xs:anyURI" minOccurs="1" maxOccurs="1"/>
    49                             <xs:element name="MdCollectionDisplayName" type="xs:string" minOccurs="0" maxOccurs="1"/>
     55                            <xs:element name="MdCreator" minOccurs="0" maxOccurs="unbounded">
     56                                <xs:complexType>
     57                                    <xs:simpleContent>
     58                                        <xs:extension base="xs:string">
     59                                            <xs:anyAttribute namespace="##other"
     60                                                processContents="lax"/>
     61                                        </xs:extension>
     62                                    </xs:simpleContent>
     63                                </xs:complexType>
     64                            </xs:element>
     65                            <xs:element name="MdCreationDate" minOccurs="0" maxOccurs="1">
     66                                <xs:complexType>
     67                                    <xs:simpleContent>
     68                                        <xs:extension base="xs:date">
     69                                            <xs:anyAttribute namespace="##other"
     70                                                processContents="lax"/>
     71                                        </xs:extension>
     72                                    </xs:simpleContent>
     73                                </xs:complexType>
     74                            </xs:element>
     75                            <xs:element name="MdSelfLink" minOccurs="0" maxOccurs="1">
     76                                <xs:complexType>
     77                                    <xs:simpleContent>
     78                                        <xs:extension base="xs:anyURI">
     79                                            <xs:anyAttribute namespace="##other"
     80                                                processContents="lax"/>
     81                                        </xs:extension>
     82                                    </xs:simpleContent>
     83                                </xs:complexType>
     84                            </xs:element>
     85                            <xs:element name="MdProfile" minOccurs="1" maxOccurs="1">
     86                                <xs:complexType>
     87                                    <xs:simpleContent>
     88                                        <xs:extension base="xs:anyURI">
     89                                            <xs:anyAttribute namespace="##other"
     90                                                processContents="lax"/>
     91                                        </xs:extension>
     92                                    </xs:simpleContent>
     93                                </xs:complexType>
     94                            </xs:element>
     95                            <xs:element name="MdCollectionDisplayName" minOccurs="0" maxOccurs="1">
     96                                <xs:complexType>
     97                                    <xs:simpleContent>
     98                                        <xs:extension base="xs:string">
     99                                            <xs:anyAttribute namespace="##other"
     100                                                processContents="lax"/>
     101                                        </xs:extension>
     102                                    </xs:simpleContent>
     103                                </xs:complexType>
     104                            </xs:element>
    50105                        </xs:sequence>
    51106                    </xs:complexType>
     
    58113                                <xs:complexType>
    59114                                    <xs:sequence>
    60                                         <xs:element name="ResourceProxy" minOccurs="0" maxOccurs="unbounded">
     115                                        <xs:element name="ResourceProxy" minOccurs="0"
     116                                            maxOccurs="unbounded">
    61117                                            <xs:complexType>
    62118                                                <xs:sequence>
    63                                                     <xs:element name="ResourceType" minOccurs="1" maxOccurs="1">
    64                                                         <xs:complexType>
    65                                                             <xs:simpleContent>
    66                                                                 <xs:extension base="cmd:Resourcetype_simple">
    67                                                                     <xs:attribute name="mimetype" type="xs:string" use="optional"/>
    68                                                                 </xs:extension>
    69                                                             </xs:simpleContent>
    70                                                         </xs:complexType>
    71                                                     </xs:element>
    72                                                     <xs:element name="ResourceRef" minOccurs="1" maxOccurs="1" type="xs:anyURI"/>
     119                                                  <xs:element name="ResourceType" minOccurs="1"
     120                                                  maxOccurs="1">
     121                                                  <xs:complexType>
     122                                                  <xs:simpleContent>
     123                                                  <xs:extension base="cmd:Resourcetype_simple">
     124                                                  <xs:attribute name="mimetype" type="xs:string"/>
     125                                                  <xs:anyAttribute namespace="##other"
     126                                                  processContents="lax"/>
     127                                                  </xs:extension>
     128                                                  </xs:simpleContent>
     129                                                  </xs:complexType>
     130                                                  </xs:element>
     131                                                  <xs:element name="ResourceRef" minOccurs="1"
     132                                                  maxOccurs="1">
     133                                                  <xs:complexType>
     134                                                  <xs:simpleContent>
     135                                                  <xs:extension base="xs:anyURI">
     136                                                  <xs:anyAttribute namespace="##other"
     137                                                  processContents="lax"/>
     138                                                  </xs:extension>
     139                                                  </xs:simpleContent>
     140                                                  </xs:complexType>
     141                                                  </xs:element>
    73142                                                </xs:sequence>
    74143                                                <xs:attribute name="id" type="xs:ID" use="required"/>
     144                                                <xs:anyAttribute namespace="##other"
     145                                                  processContents="lax"/>
    75146                                            </xs:complexType>
    76147                                        </xs:element>
    77148                                    </xs:sequence>
     149                                    <xs:anyAttribute namespace="##other" processContents="lax"/>
    78150                                </xs:complexType>
    79151                            </xs:element>
     
    81153                                <xs:complexType>
    82154                                    <xs:sequence>
    83                                         <xs:element name="JournalFileProxy" minOccurs="0" maxOccurs="unbounded">
     155                                        <xs:element name="JournalFileProxy" minOccurs="0"
     156                                            maxOccurs="unbounded">
    84157                                            <xs:complexType>
    85158                                                <xs:sequence>
    86                                                     <xs:element name="JournalFileRef" minOccurs="1" maxOccurs="1" type="xs:anyURI"/>
     159                                                  <xs:element name="JournalFileRef" minOccurs="1"
     160                                                  maxOccurs="1">
     161                                                  <xs:complexType>
     162                                                  <xs:simpleContent>
     163                                                  <xs:extension base="xs:anyURI">
     164                                                  <xs:anyAttribute namespace="##other"
     165                                                  processContents="lax"/>
     166                                                  </xs:extension>
     167                                                  </xs:simpleContent>
     168                                                  </xs:complexType>
     169                                                  </xs:element>
    87170                                                </xs:sequence>
     171                                                <xs:anyAttribute namespace="##other"
     172                                                  processContents="lax"/>
    88173                                            </xs:complexType>
    89174                                        </xs:element>
    90175                                    </xs:sequence>
     176                                    <xs:anyAttribute namespace="##other" processContents="lax"/>
    91177                                </xs:complexType>
    92178                            </xs:element>
     
    95181                                <xs:complexType>
    96182                                    <xs:sequence>
    97                                         <xs:element name="ResourceRelation" minOccurs="0" maxOccurs="unbounded">
     183                                        <xs:element name="ResourceRelation" minOccurs="0"
     184                                            maxOccurs="unbounded">
    98185                                            <xs:complexType>
    99186                                                <xs:sequence>
    100                                                     <xs:element name="RelationType" minOccurs="1" maxOccurs="1">
    101                                                         <xs:complexType>
    102                                                             <xs:simpleContent>
    103                                                                 <xs:extension base="xs:string">
    104                                                                     <xs:attribute name="ConceptLink" type="xs:anyURI" use="optional"/>
    105                                                                 </xs:extension>
    106                                                             </xs:simpleContent>
    107                                                         </xs:complexType>
    108                                                     </xs:element>
    109                                                     <xs:element name="Resource" minOccurs="2" maxOccurs="2">
    110                                                         <xs:complexType>
    111                                                             <xs:sequence>
    112                                                                 <xs:element name="Role" minOccurs="0" maxOccurs="1">
    113                                                                     <xs:complexType>
    114                                                                         <xs:simpleContent>
    115                                                                             <xs:extension base="xs:string">
    116                                                                                 <xs:attribute name="ConceptLink" type="xs:anyURI" use="optional"/>
    117                                                                             </xs:extension>
    118                                                                         </xs:simpleContent>
    119                                                                     </xs:complexType>
    120                                                                 </xs:element>
    121                                                             </xs:sequence>
    122                                                             <xs:attribute name="ref" type="xs:IDREF" use="required"/>
    123                                                         </xs:complexType>
    124                                                     </xs:element>
     187                                                  <xs:element name="RelationType" minOccurs="1"
     188                                                  maxOccurs="1">
     189                                                  <xs:complexType>
     190                                                  <xs:simpleContent>
     191                                                  <xs:extension base="xs:string">
     192                                                  <xs:attribute name="ConceptLink" type="xs:anyURI"
     193                                                  use="optional"/>
     194                                                  <xs:anyAttribute namespace="##other"
     195                                                  processContents="lax"/>
     196                                                  </xs:extension>
     197                                                  </xs:simpleContent>
     198                                                  </xs:complexType>
     199                                                  </xs:element>
     200                                                  <xs:element name="Resource" minOccurs="2"
     201                                                  maxOccurs="2">
     202                                                  <xs:complexType>
     203                                                  <xs:sequence>
     204                                                  <xs:element name="Role" minOccurs="0"
     205                                                  maxOccurs="1">
     206                                                  <xs:complexType>
     207                                                  <xs:simpleContent>
     208                                                  <xs:extension base="xs:string">
     209                                                  <xs:attribute name="ConceptLink" type="xs:anyURI"
     210                                                  use="optional"/>
     211                                                  <xs:anyAttribute namespace="##other"
     212                                                  processContents="lax"/>
     213                                                  </xs:extension>
     214                                                  </xs:simpleContent>
     215                                                  </xs:complexType>
     216                                                  </xs:element>
     217                                                  </xs:sequence>
     218                                                  <xs:attribute name="ref" type="xs:IDREF"
     219                                                  use="required"/>
     220                                                  <xs:anyAttribute namespace="##other"
     221                                                  processContents="lax"/>
     222                                                  </xs:complexType>
     223                                                  </xs:element>
    125224                                                </xs:sequence>
     225                                                <xs:anyAttribute namespace="##other"
     226                                                  processContents="lax"/>
    126227                                            </xs:complexType>
    127228                                        </xs:element>
    128229                                    </xs:sequence>
    129                                 </xs:complexType>
    130                             </xs:element>
    131                         </xs:sequence>
     230                                    <xs:anyAttribute namespace="##other" processContents="lax"/>
     231                                </xs:complexType>
     232                            </xs:element>
     233                        </xs:sequence>
     234                        <xs:anyAttribute namespace="##other" processContents="lax"/>
    132235                    </xs:complexType>
    133236                </xs:element>
     
    136239                    <xs:complexType>
    137240                        <xs:sequence>
    138                             <xs:element name="IsPartOf" minOccurs="0" maxOccurs="unbounded" type="xs:anyURI"/>
    139                         </xs:sequence>
     241                            <xs:element name="IsPartOf" minOccurs="0" maxOccurs="unbounded">
     242                                <xs:complexType>
     243                                    <xs:simpleContent>
     244                                        <xs:extension base="xs:anyURI">
     245                                            <xs:anyAttribute namespace="##other" processContents="lax"/>
     246                                        </xs:extension>
     247                                    </xs:simpleContent>
     248                                </xs:complexType>
     249                            </xs:element>
     250                        </xs:sequence>
     251                        <xs:anyAttribute namespace="##other" processContents="lax"/>
    140252                    </xs:complexType>
    141253                </xs:element>
     
    146258                            <xs:any namespace="##other" minOccurs="1" maxOccurs="1" processContents="strict"/>
    147259                        </xs:sequence>
     260                        <xs:anyAttribute namespace="##other" processContents="lax"/>
    148261                    </xs:complexType>
    149262                </xs:element>
     
    153266        <!-- Resource key and reference constraints -->
    154267        <xs:key name="ResourceProxy">
    155             <xs:selector
    156                 xpath="cmd:Resources/cmd:ResourceProxyList/cmd:ResourceProxy"/>
     268            <xs:selector xpath="cmd:Resources/cmd:ResourceProxyList/cmd:ResourceProxy"/>
    157269            <xs:field xpath="@id"/>
    158270        </xs:key>
    159         <xs:keyref name="EnvelopResourceRef"
    160             refer="cmd:ResourceProxy">
     271        <xs:keyref name="EnvelopResourceRef" refer="cmd:ResourceProxy">
    161272            <xs:selector xpath=".//cmd:*"/>
    162273            <xs:field xpath="@ref"/>
    163274        </xs:keyref>
    164         <xs:keyref name="PayloadResourceRef"
    165             refer="cmd:ResourceProxy">
     275        <xs:keyref name="PayloadResourceRef" refer="cmd:ResourceProxy">
    166276            <xs:selector xpath=".//*"/>
    167277            <xs:field xpath="@cmd:ref"/>
Note: See TracChangeset for help on using the changeset viewer.