Skip to content

Commit

Permalink
changed cues namespace to http://www.clarin.eu/cmd/cues/1 as per spec…
Browse files Browse the repository at this point in the history
…ification (refs #14)
  • Loading branch information
twagoo committed Dec 3, 2020
1 parent 3209789 commit 68e743e
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:cue="http://www.clarin.eu/cmdi/cues/1"
xmlns:cue="http://www.clarin.eu/cmd/cues/1"
xmlns:cue_old="http://www.clarin.eu/cmdi/cues/1"
exclude-result-prefixes="xs"
version="2.0">

Expand Down Expand Up @@ -123,13 +124,13 @@
</xsl:template>

<!-- remove cue namespace for DisplayPriority -->
<xsl:template match="@cue:DisplayPriority" priority="2">
<xsl:template match="@cue:DisplayPriority|@cue_old:DisplayPriority" priority="2">
<xsl:attribute name="DisplayPriority">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:template>

<!-- remove other cue attributes -->
<xsl:template match="@cue:*" priority="1"/>
<xsl:template match="@cue:*|@cue_old:*" priority="1"/>

</xsl:stylesheet>
</xsl:stylesheet>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:cue="http://www.clarin.eu/cmdi/cues/1"
xmlns:cue="http://www.clarin.eu/cmd/cues/1"
exclude-result-prefixes="xs"
version="2.0">

Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/toolkit/xsd/cmd-component.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@
<xs:documentation>Is the attribute required or not?</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:anyAttribute namespace="http://www.clarin.eu/cmdi/cues/1" processContents="lax"/>
<xs:anyAttribute namespace="http://www.clarin.eu/cmd/cues/1" processContents="lax"/>
</xs:attributeGroup>

<xs:attributeGroup name="element_attributes">
Expand Down Expand Up @@ -340,7 +340,7 @@
<xs:documentation>Indicates that this element can have values in multiple languages (and thus is repeatable). This will result in the possibility of using the xml:lang attribute in the metadata instances that are created.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:anyAttribute namespace="http://www.clarin.eu/cmdi/cues/1" processContents="lax"/>
<xs:anyAttribute namespace="http://www.clarin.eu/cmd/cues/1" processContents="lax"/>
</xs:attributeGroup>

<xs:attributeGroup name="component_attributes">
Expand Down Expand Up @@ -374,7 +374,7 @@
<xs:attribute name="CardinalityMin" type="cardinality_type" use="optional" default="1"/>
<xs:attribute name="CardinalityMax" type="cardinality_type" use="optional" default="1"/>
<xs:attribute ref="xml:base" use="optional"/>
<xs:anyAttribute namespace="http://www.clarin.eu/cmdi/cues/1" processContents="lax"/>
<xs:anyAttribute namespace="http://www.clarin.eu/cmd/cues/1" processContents="lax"/>
</xs:attributeGroup>


Expand Down Expand Up @@ -506,7 +506,7 @@
<xs:documentation>End-user guidance about the value of this controlled vocabulary item.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:anyAttribute namespace="http://www.clarin.eu/cmdi/cues/1" processContents="lax"/>
<xs:anyAttribute namespace="http://www.clarin.eu/cmd/cues/1" processContents="lax"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/toolkit/xslt/comp2schema.xsl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cmd="http://www.clarin.eu/cmd/1" xmlns:cue="http://www.clarin.eu/cmdi/cues/1">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cmd="http://www.clarin.eu/cmd/1" xmlns:cue="http://www.clarin.eu/cmd/cues/1">

<xsl:param name="cmd-toolkit" select="'https://infra.clarin.eu/CMDI/1.x'"/>
<xsl:param name="cmd-envelop" select="concat($cmd-toolkit,'/xsd/cmd-envelop.xsd')"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ComponentSpec CMDVersion="1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cue="http://www.clarin.eu/cmdi/cues/1" isProfile="true" xsi:noNamespaceSchemaLocation="../../../../../main/resources/toolkit/xsd/cmd-component.xsd">
<ComponentSpec CMDVersion="1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cue="http://www.clarin.eu/cmd/cues/1" isProfile="true" xsi:noNamespaceSchemaLocation="../../../../../main/resources/toolkit/xsd/cmd-component.xsd">
<Header>
<ID>clarin.eu:cr1:p_1311927752306</ID>
<Name>ToolService</Name>
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/toolkit/CLAVAS/profiles/TestCLAVAS.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</Header>
<Component name="TestCLAVAS" CardinalityMin="1" CardinalityMax="1">
<Component name="ISO639" ComponentRef="clarin.eu:cr1:c_1493735943958">
<Element name="iso-639-3-code" ConceptLink="http://hdl.handle.net/11459/CCR_C-2482_08eded24-4086-7e3f-88e5-e0807fb01e17" CardinalityMin="1" CardinalityMax="1" cue:DisplayPriority="1" xmlns:cue="http://www.clarin.eu/cmdi/cues/1">
<Element name="iso-639-3-code" ConceptLink="http://hdl.handle.net/11459/CCR_C-2482_08eded24-4086-7e3f-88e5-e0807fb01e17" CardinalityMin="1" CardinalityMax="1" cue:DisplayPriority="1" xmlns:cue="http://www.clarin.eu/cmd/cues/1">
<ValueScheme>
<Vocabulary URI="http://hdl.handle.net/11459/CLAVAS_810f8d2a-6723-3ba6-2e57-41d6d3844816" ValueProperty="notation">
<enumeration>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ComponentSpec CMDVersion="1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cue="http://www.clarin.eu/cmdi/cues/1" isProfile="true"
xmlns:cue="http://www.clarin.eu/cmd/cues/1" isProfile="true"
xsi:noNamespaceSchemaLocation="../../../../../main/resources/toolkit/xsd/cmd-component.xsd">
<Header>
<ID>clarin.eu:cr1:p_1311927752306</ID>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ComponentSpec xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cue="http://www.clarin.eu/cmdi/cues/1" CMDVersion="1.2" CMDOriginalVersion="1.1" isProfile="true" xsi:noNamespaceSchemaLocation="https://infra.clarin.eu/CMDI/1.x/xsd/cmd-component.xsd">
<ComponentSpec xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cue="http://www.clarin.eu/cmd/cues/1" CMDVersion="1.2" CMDOriginalVersion="1.1" isProfile="true" xsi:noNamespaceSchemaLocation="https://infra.clarin.eu/CMDI/1.x/xsd/cmd-component.xsd">
<Header>
<ID>clarin.eu:cr1:p_1288172614026</ID>
<Name>OLAC-DcmiTerms</Name>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ComponentSpec CMDVersion="1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cue="http://www.clarin.eu/cmdi/cues/1" isProfile="true"
xmlns:cue="http://www.clarin.eu/cmd/cues/1" isProfile="true"
xsi:noNamespaceSchemaLocation="../../../../../main/resources/toolkit/xsd/cmd-component.xsd">
<Header>
<ID>clarin.eu:cr1:p_1311927752306</ID>
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/toolkit/downgrade/profiles/test.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ComponentSpec CMDVersion="1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cue="http://www.clarin.eu/cmdi/cues/1" isProfile="true"
xmlns:cue="http://www.clarin.eu/cmd/cues/1" isProfile="true"
xsi:noNamespaceSchemaLocation="../../../../../main/resources/toolkit/xsd/cmd-component.xsd">
<Header>
<ID>clarin.eu:cr1:p_12345</ID>
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/toolkit/empty/profiles/empty-error.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ComponentSpec CMDVersion="1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cue="http://www.clarin.eu/cmdi/cues/1" isProfile="true"
xmlns:cue="http://www.clarin.eu/cmd/cues/1" isProfile="true"
xsi:noNamespaceSchemaLocation="../../../../../main/resources/toolkit/xsd/cmd-component.xsd">
<Header>
<ID>clarin.eu:cr1:p_1311927752306</ID>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ComponentSpec CMDVersion="1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cue="http://www.clarin.eu/cmdi/cues/1" isProfile="true"
xmlns:cue="http://www.clarin.eu/cmd/cues/1" isProfile="true"
xsi:noNamespaceSchemaLocation="../../../../../main/resources/toolkit/xsd/cmd-component.xsd">
<Header>
<ID>clarin.eu:cr1:p_1311927752306</ID>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ComponentSpec CMDVersion="1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cue="http://www.clarin.eu/cmdi/cues/1" isProfile="true"
xmlns:cue="http://www.clarin.eu/cmd/cues/1" isProfile="true"
xsi:noNamespaceSchemaLocation="../../../../../main/resources/toolkit/xsd/cmd-component.xsd">
<Header>
<ID>clarin.eu:cr1:p_1311927752306</ID>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ComponentSpec CMDVersion="1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cue="http://www.clarin.eu/cmdi/cues/1" isProfile="true"
xmlns:cue="http://www.clarin.eu/cmd/cues/1" isProfile="true"
xsi:noNamespaceSchemaLocation="../../../../../main/resources/toolkit/xsd/cmd-component.xsd">
<Header>
<ID>clarin.eu:cr1:p_1311927752306</ID>
Expand Down

0 comments on commit 68e743e

Please sign in to comment.