Skip to content

Commit

Permalink
Fix contactType value template priority
Browse files Browse the repository at this point in the history
From commit hash ukf/ukf-testbed/cadd85f7406f140915a3a70e572ecb2db36aeed1

See ukf/ukf-meta#416 for details
  • Loading branch information
Phil Smart committed Apr 16, 2024
1 parent b171fdf commit 5d6c11b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mdx/_rules/check_incmd.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</xsl:call-template>
</xsl:template>

<xsl:template match="@incmd:contactType[not(starts-with(.,'http://'))][not(starts-with(.,'https://'))]">
<xsl:template priority="2" match="@incmd:contactType[not(starts-with(.,'http://'))][not(starts-with(.,'https://'))]">
<xsl:call-template name="error">
<xsl:with-param name="m">incmd:contactType must be an absolute URI</xsl:with-param>
</xsl:call-template>
Expand All @@ -53,7 +53,7 @@
<!--
Check for specific values. This test is probably over-specific in the long term.
-->
<xsl:template match="@incmd:contactType
<xsl:template priority="1" match="@incmd:contactType
[not(. = 'http://id.incommon.org/metadata/contactType/security')]">
<xsl:call-template name="error">
<xsl:with-param name="m">
Expand Down

0 comments on commit 5d6c11b

Please sign in to comment.