Skip to content

Commit

Permalink
Avoid duplicate variables
Browse files Browse the repository at this point in the history
See ukf/ukf-meta#135.
  • Loading branch information
iay committed Aug 2, 2017
1 parent 594f7bf commit edb58ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mdx/_rules/check_saml2meta.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
</xsl:call-template>
</xsl:if>

<xsl:variable name="indices" select="md:AssertionConsumerService/@index"/>
<xsl:variable name="distinct.indices" select="set:distinct($indices)"/>
<xsl:if test="count($indices) != count($distinct.indices)">
<xsl:variable name="indices2" select="md:AssertionConsumerService/@index"/>
<xsl:variable name="distinct.indices2" select="set:distinct($indices2)"/>
<xsl:if test="count($indices2) != count($distinct.indices2)">
<xsl:call-template name="error">
<xsl:with-param name="m">AssertionConsumerService index values not all different</xsl:with-param>
</xsl:call-template>
Expand Down

0 comments on commit edb58ad

Please sign in to comment.