Skip to content

Commit

Permalink
Make check_entityid_prefix portable
Browse files Browse the repository at this point in the history
See ukf-meta#383.
  • Loading branch information
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
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit c1b3b26

Please sign in to comment.