Skip to content

Commit

Permalink
Fix ESPD v3.2.0 with #380 Validation for GitHub ESPD-EDM
Browse files Browse the repository at this point in the history
Fix ESPD v3.2.0 with #380 Validation for GitHub ESPD-EDM
  • Loading branch information
Pascaline Laure Tchienehom committed Apr 14, 2023
1 parent b6d8a7e commit 9a40b87
Show file tree
Hide file tree
Showing 5 changed files with 5,717 additions and 5,671 deletions.
18 changes: 9 additions & 9 deletions validation/ESPDRequest/xsl/01-ESPD-common-cl-attributes.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -522,10 +522,10 @@

<!--ASSERT -->
<xsl:choose>
<xsl:when test="(false() or not(@listID != 'CriterionElementType'))"/>
<xsl:when test="(false() or not(@listID != 'criterion-element-type'))"/>
<xsl:otherwise>
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
test="(false() or not(@listID != 'CriterionElementType'))">
test="(false() or not(@listID != 'criterion-element-type'))">
<xsl:attribute name="flag">fatal</xsl:attribute>
<xsl:attribute name="location">
<xsl:apply-templates select="." mode="schematron-select-full-path"/>
Expand All @@ -536,7 +536,7 @@
<xsl:value-of select="name(ancestor::*[1])"/>
<xsl:text/>/<xsl:text/>
<xsl:value-of select="name()"/>
<xsl:text/>' must have the following attribute and value: 'listID = CriterionElementType'.</svrl:text>
<xsl:text/>' must have the following attribute and value: 'listID = criterion-element-type'.</svrl:text>
</svrl:failed-assert>
</xsl:otherwise>
</xsl:choose>
Expand Down Expand Up @@ -988,10 +988,10 @@

<!--ASSERT -->
<xsl:choose>
<xsl:when test="(false() or not(@listID != 'PropertyGroupType'))"/>
<xsl:when test="(false() or not(@listID != 'property-group-type'))"/>
<xsl:otherwise>
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
test="(false() or not(@listID != 'PropertyGroupType'))">
test="(false() or not(@listID != 'property-group-type'))">
<xsl:attribute name="flag">fatal</xsl:attribute>
<xsl:attribute name="location">
<xsl:apply-templates select="." mode="schematron-select-full-path"/>
Expand All @@ -1002,7 +1002,7 @@
<xsl:value-of select="name(ancestor::*[1])"/>
<xsl:text/>/<xsl:text/>
<xsl:value-of select="name()"/>
<xsl:text/>' must have the following attribute and value: 'listID = PropertyGroupType'.</svrl:text>
<xsl:text/>' must have the following attribute and value: 'listID = property-group-type'.</svrl:text>
</svrl:failed-assert>
</xsl:otherwise>
</xsl:choose>
Expand Down Expand Up @@ -1078,10 +1078,10 @@

<!--ASSERT -->
<xsl:choose>
<xsl:when test="(false() or not(@listID != 'ResponseDataType'))"/>
<xsl:when test="(false() or not(@listID != 'response-data-type'))"/>
<xsl:otherwise>
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
test="(false() or not(@listID != 'ResponseDataType'))">
test="(false() or not(@listID != 'response-data-type'))">
<xsl:attribute name="flag">fatal</xsl:attribute>
<xsl:attribute name="location">
<xsl:apply-templates select="." mode="schematron-select-full-path"/>
Expand All @@ -1092,7 +1092,7 @@
<xsl:value-of select="name(ancestor::*[1])"/>
<xsl:text/>/<xsl:text/>
<xsl:value-of select="name()"/>
<xsl:text/>' must have the following attribute and value: 'listID = ResponseDataType'.</svrl:text>
<xsl:text/>' must have the following attribute and value: 'listID = response-data-type'.</svrl:text>
</svrl:failed-assert>
</xsl:otherwise>
</xsl:choose>
Expand Down
Loading

0 comments on commit 9a40b87

Please sign in to comment.