Changeset 7106


Ignore:
Timestamp:
01/10/17 09:26:33 (7 years ago)
Author:
Twan Goosen
Message:

Updated patterns for component registry locations for CMDI 1.1 and CMDI 1.2
in best practices schematron

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMDIValidator/trunk/cmdi-validator-core/src/main/resources/default.sch

    r7018 r7106  
    4242        <title>Test xsi:schemaLocation</title>
    4343        <rule role="warning" context="/cmd11:CMD">
    44             <assert test="contains(@xsi:schemaLocation,'http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/')">
    45                 [CMDI Best Practice] /cmd:CMD/@xsi:schemaLocation doesn't refer to a schema from the Component Registry! [Actual value was [<value-of select="@xsi:schemaLocation"/>]
     44            <assert test="matches(@xsi:schemaLocation,'.*http(s?)://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/(1\.1/)?profiles/.*')">
     45                [CMDI Best Practice] /cmd:CMD/@xsi:schemaLocation doesn't refer to a schema from the Component Registry or there is a version mismatch! [Actual value was [<value-of select="@xsi:schemaLocation"/>]
    4646            </assert>
    4747        </rule>
     
    5050        <title>Test xsi:schemaLocation</title>
    5151        <rule role="warning" context="/cmd12:CMD">
    52             <assert test="contains(@xsi:schemaLocation,'http://alpha-vlo.clarin.eu/component-registry-rest/rest/registry/1.x/profiles/')">
    53                 [CMDI Best Practice] /cmd:CMD/@xsi:schemaLocation doesn't refer to a schema from the Component Registry! [Actual value was [<value-of select="@xsi:schemaLocation"/>]
     52            <assert test="matches(@xsi:schemaLocation,'.*http(s?)://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/1\.[x23456789]/profiles/.*')">
     53                [CMDI Best Practice] /cmd:CMD/@xsi:schemaLocation doesn't refer to a schema from the Component Registry or there is a version mismatch! [Actual value was [<value-of select="@xsi:schemaLocation"/>]
    5454            </assert>
    5555        </rule>
Note: See TracChangeset for help on using the changeset viewer.