Skip to content

Commit

Permalink
Allow IdP scope lists to be presented at the EntityDescriptor level a…
Browse files Browse the repository at this point in the history
…lone. Published metadata includes all three sets, with the two inner Extensions blocks generated from the outer one.
  • Loading branch information
iay committed Feb 12, 2008
1 parent 39ca9df commit e403596
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions build/master_ukfederation.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,33 @@
</xsl:copy>
</xsl:template>

<xsl:template match="md:AttributeAuthorityDescriptor[not(md:Extensions)]">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:text>&#10; </xsl:text><Extensions>
<xsl:for-each select="ancestor::md:EntityDescriptor/md:Extensions/shibmeta:Scope">
<xsl:text>&#10; </xsl:text>
<xsl:copy-of select="."/>
</xsl:for-each>
<!--<xsl:apply-templates select="ancestor::md:EntityDescriptor/md:Extensions/shibmeta:Scope"/>-->
<xsl:text>&#10; </xsl:text></Extensions>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:template>

<xsl:template match="md:IDPSSODescriptor[not(md:Extensions)]">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:text>&#10; </xsl:text><Extensions>
<xsl:for-each select="ancestor::md:EntityDescriptor/md:Extensions/shibmeta:Scope">
<xsl:text>&#10; </xsl:text>
<xsl:copy-of select="."/>
</xsl:for-each>
<xsl:text>&#10; </xsl:text></Extensions>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:template>

<!--
Drop any explicit xsi:schemaLocation attributes from imported entity fragments.
-->
Expand Down

0 comments on commit e403596

Please sign in to comment.