Skip to content

Commit

Permalink
Bugzilla 686: don't use variable references in match templates
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jun 14, 2011
1 parent 868a852 commit c4e9a8a
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions build/check.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,17 @@
<!--
Check for entities with OrganizationName elements which don't correspond to
a canonical owner name.
Care needs to be taken if moving this template to another ruleset file, as it
matches all EntityDescriptor elements (with OrganizationName descendants)
whether or not the test will fail.
-->
<xsl:template match="md:EntityDescriptor[md:Organization/md:OrganizationName]
[not(ukfxMembers:isOwnerName($members, md:Organization/md:OrganizationName))]">
<xsl:call-template name="error">
<xsl:with-param name="m">unknown owner name: <xsl:value-of select="md:Organization/md:OrganizationName"/></xsl:with-param>
</xsl:call-template>
<xsl:template match="md:EntityDescriptor[md:Organization/md:OrganizationName]">
<xsl:if test="not(ukfxMembers:isOwnerName($members, md:Organization/md:OrganizationName))">
<xsl:call-template name="error">
<xsl:with-param name="m">unknown owner name: <xsl:value-of select="md:Organization/md:OrganizationName"/></xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:template>


Expand Down

0 comments on commit c4e9a8a

Please sign in to comment.