Skip to content

Commit

Permalink
Don't attempt to convert entities which don't have a KeyName in the a…
Browse files Browse the repository at this point in the history
…ppropriate location.
  • Loading branch information
iay committed Dec 6, 2007
1 parent ef3d28b commit 80c6ee4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build/v13_to_v12_sites.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,15 @@

<!--
Map EntityDescriptor to whichever of OriginSite and/or DestinationSite apply.
We can't translate entities who don't have a KeyName in their appropriate roles, so
make everything conditional on that.
-->
<xsl:template match="md:EntityDescriptor">
<xsl:if test="md:IDPSSODescriptor">
<xsl:if test="md:IDPSSODescriptor[md:KeyDescriptor/ds:KeyInfo/ds:KeyName]">
<xsl:call-template name="OriginSite"/>
</xsl:if>
<xsl:if test="md:SPSSODescriptor">
<xsl:if test="md:SPSSODescriptor[md:KeyDescriptor/ds:KeyInfo/ds:KeyName]">
<xsl:call-template name="DestinationSite"/>
</xsl:if>
</xsl:template>
Expand Down

0 comments on commit 80c6ee4

Please sign in to comment.