source: metadata/trunk/toolkit/src/test/resources/toolkit/successor/profiles/successor-invalid.xml @ 6925

Last change on this file since 6925 was 6925, checked in by Menzo Windhouwer, 8 years ago

M toolkit/src/main/resources/toolkit/xsd/cmd-component.xsd
M toolkit/src/main/resources/toolkit/upgrade/cmd-component-1_1-to-1_2.xsl
M toolkit/src/main/resources/toolkit/downgrade/cmd-component-1_2-to-1_1.xsl

  • added @CMDVersion and @CMDOriginalVersion

M toolkit/src/test/resources/toolkit/CMD/profiles/components-invalid.xml
M toolkit/src/test/resources/toolkit/successor/profiles/successor-valid.xml
M toolkit/src/test/resources/toolkit/successor/profiles/successor-invalid.xml
M toolkit/src/test/resources/toolkit/Adelheid/profiles/clarin.eu:cr1:p_1311927752306_1_2.xml

  • added @CMDVersion="1.2"

AM toolkit/src/test/resources/temp/general-component-schema.xsd

  • temporary CMDI 1.1 component schema containing the xsl:key optimization

-> speeds up the CMDI 1.2 downgrade tests

M toolkit/src/main/resources/toolkit/upgrade/cmd-record-1_1-to-1_2.xsl

  • check if the profile is native CMD 1.2 so we need to refer to the 1.1/1.2/xsd
  • for testing purposes the profile spec can also be passed as a parameter, if not its fetched from the CR
  • the XPaths dealing with the profiles cope with both 1.1 and 1.2

M toolkit/src/test/java/eu/clarin/cmd/toolkit/TestCMDToolkit.java

  • pass on the profile spec to the upgrade record actions
  • use the temporary 1.1 general-component-schema.xsd for the downgrade tests
File size: 916 bytes
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<ComponentSpec CMDVersion="1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3    xmlns:cue="http://www.clarin.eu/cmdi/cues/1" isProfile="true"
4    xsi:noNamespaceSchemaLocation="../../../../../main/resources/toolkit/xsd/cmd-component.xsd">
5    <Header>
6        <ID>clarin.eu:cr1:p_1311927752306</ID>
7        <Name>ToolService</Name>
8        <Description>Description of a tool and/or service(s)
9(adapted from the AnnotationTool profile)</Description>
10        <Status>production</Status>
11        <Successor>hdl:123</Successor>
12    </Header>
13    <Component CardinalityMax="1" CardinalityMin="1" name="ToolService">
14        <Element Multilingual="false" cue:DisplayPriority="1" CardinalityMax="unbounded"
15            CardinalityMin="0" ValueScheme="string"
16            ConceptLink="http://www.isocat.org/datcat/DC-3810" name="toolType"/>
17    </Component>
18</ComponentSpec>
Note: See TracBrowser for help on using the repository browser.