Skip to content

Commit

Permalink
Check that entities don't have both DisableFlow and EnableFlow constr…
Browse files Browse the repository at this point in the history
…aints

See ukf/ukf-meta#67.
  • Loading branch information
iay committed Feb 20, 2020
1 parent dfe97c9 commit df25447
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mdx/uk/check_ukfedlabel.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,15 @@
</xsl:call-template>
</xsl:template>

<!--
Check for entities which have both kinds of flow constraint.
-->
<xsl:template match="md:EntityDescriptor/md:Extensions[ukfedlabel:DisableFlow][ukfedlabel:EnableFlow]">
<xsl:call-template name="error">
<xsl:with-param name="m">
<xsl:text>entity cannot have both EnableFlow and DisableFlow constraints</xsl:text>
</xsl:with-param>
</xsl:call-template>
</xsl:template>

</xsl:stylesheet>

0 comments on commit df25447

Please sign in to comment.