Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make check_entityid_prefix portable
See ukf-meta#383.
iay committed Mar 7, 2023
1 parent c923ea3 commit c1b3b26
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mdx/_rules/check_entityid_prefix.xsl
@@ -22,9 +22,10 @@
<!--
Entity IDs should start with one of "http://", "https://" or "urn:mace:".
-->
<xsl:template match="md:EntityDescriptor[not(starts-with(@entityID, 'urn:mace:'))]
[not(starts-with(@entityID, 'http://'))]
[not(starts-with(@entityID, 'https://'))]">
<xsl:template match="md:EntityDescriptor[
not(starts-with(@entityID, 'urn:mace:')) and
not(starts-with(@entityID, 'http://')) and
not(starts-with(@entityID, 'https://'))]">
<xsl:call-template name="error">
<xsl:with-param name="m">entity ID <xsl:value-of select="@entityID"/> does not start with acceptable prefix</xsl:with-param>
</xsl:call-template>

0 comments on commit c1b3b26

Please sign in to comment.