Skip to content

Commit

Permalink
Allow for a 1.3 EntityDescriptor to become both an OriginSite
Browse files Browse the repository at this point in the history
and a DestinationSite.
  • Loading branch information
iay committed Mar 16, 2005
1 parent ed3c066 commit b526b9c
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions build/v13_to_v12_sites.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,22 @@
</SiteGroup>
</xsl:template>

<!--
Map EntityDescriptor to whichever of OriginSite and/or DestinationSite apply.
-->
<xsl:template match="md:EntityDescriptor">
<xsl:if test="md:IDPSSODescriptor">
<xsl:call-template name="OriginSite"/>
</xsl:if>
<xsl:if test="md:SPSSODescriptor">
<xsl:call-template name="DestinationSite"/>
</xsl:if>
</xsl:template>

<!--
Map appropriate EntityDescriptor to OriginSite
-->
<xsl:template match="md:EntityDescriptor[md:IDPSSODescriptor]">
<xsl:template name="OriginSite">
<OriginSite Name="{@entityID}">
<!-- ErrorURL attribute -->
<xsl:apply-templates select="md:IDPSSODescriptor/@errorURL"/>
Expand Down Expand Up @@ -127,7 +139,7 @@
<!--
Map appropriate EntityDescriptor to DestinationSite
-->
<xsl:template match="md:EntityDescriptor[md:SPSSODescriptor]">
<xsl:template name="DestinationSite">
<DestinationSite Name="{@entityID}">
<!-- ErrorURL attribute -->
<xsl:apply-templates select="md:SPSSODescriptor/@errorURL"/>
Expand Down

0 comments on commit b526b9c

Please sign in to comment.