Skip to content

Commit

Permalink
For the case of UIInfo appearing within the wrong parent-parent eleme…
Browse files Browse the repository at this point in the history
…nt, say what the element is and be more explicit about what we expect.
  • Loading branch information
iay committed Aug 25, 2011
1 parent 334c609 commit cc5dcef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build/check_mdui.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
md:RoleDescriptorType).
[The rule here further restricts the location to within either IDPSSODescriptor or
SPSSODescriptor elements, which are the ones we'll actually make use of.]
SPSSODescriptor elements, which are the ones it actually makes sense to use today.]
-->
<xsl:template match="mdui:UIInfo[not(parent::md:Extensions)]">
<xsl:call-template name="error">
Expand All @@ -72,7 +72,11 @@
<xsl:template match="md:Extensions[mdui:UIInfo]
[not(parent::md:IDPSSODescriptor)][not(parent::md:SPSSODescriptor)]">
<xsl:call-template name="error">
<xsl:with-param name="m">UIInfo appearing outside role descriptor element</xsl:with-param>
<xsl:with-param name="m">
<xsl:text>UIInfo appearing outside SSO descriptor element (</xsl:text>
<xsl:value-of select="name(..)"/>
<xsl:text>)</xsl:text>
</xsl:with-param>
</xsl:call-template>
</xsl:template>

Expand Down

0 comments on commit cc5dcef

Please sign in to comment.