Skip to content

Commit

Permalink
Add section describing identity providers by scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Oct 30, 2007
1 parent c78ef1a commit da68ffd
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions build/statistics.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
<li><p><a href="#byOwner">Entities by Owner</a></p></li>
<li><p><a href="#keyedEntities">Entities with Embedded Key Material</a></p></li>
<li><p><a href="#accountableIdPs">Identity Provider Accountability</a></p></li>
<li><p><a href="#scopes">Identity Providers by Scope</a></p></li>
</ul>


Expand Down Expand Up @@ -677,6 +678,35 @@
</xsl:for-each>
</ul>

<h2><a name="scopes">Identity Providers by Scope</a></h2>
<xsl:variable name="allScopes" select="set:distinct($idps//shibmeta:Scope)"/>
<ul>
<xsl:for-each select="$allScopes">
<xsl:sort select="."/>
<xsl:variable name="thisScope" select="string(.)"/>
<xsl:variable name="thisScopeIdPs"
select="$idps//shibmeta:Scope[.=$thisScope]/ancestor::md:EntityDescriptor"/>
<xsl:variable name="thisScopeIdPCount" select="count($thisScopeIdPs)"/>
<li>
<xsl:value-of select="$thisScope"/>:
<xsl:choose>
<xsl:when test="$thisScopeIdPCount = 1">
<xsl:value-of select="$thisScopeIdPs/md:Organization/md:OrganizationDisplayName"/>
</xsl:when>
<xsl:otherwise>
<ul>
<xsl:for-each select="$thisScopeIdPs">
<xsl:sort select="md:Organization/md:OrganizationDisplayName"/>
<li>
<xsl:value-of select="md:Organization/md:OrganizationDisplayName"/>
</li>
</xsl:for-each>
</ul>
</xsl:otherwise>
</xsl:choose>
</li>
</xsl:for-each>
</ul>
</body>
</html>
</xsl:template>
Expand Down

0 comments on commit da68ffd

Please sign in to comment.