Skip to content

Commit

Permalink
Make the example URL indicator optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jun 11, 2007
1 parent 4311a9a commit 5c28aaf
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions build/statistics.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Author: Ian A. Young <ian@iay.org.uk>
$Id: statistics.xsl,v 1.24 2007/06/05 10:47:45 iay Exp $
$Id: statistics.xsl,v 1.25 2007/06/11 12:29:43 iay Exp $
-->
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
Expand Down Expand Up @@ -46,8 +46,6 @@
<xsl:variable name="spCount" select="count($sps)"/>
<xsl:variable name="dualEntities" select="$entities[md:IDPSSODescriptor][md:SPSSODescriptor]"/>
<xsl:variable name="dualEntityCount" select="count($dualEntities)"/>
<xsl:variable name="exampleEntities" select="$entities[contains(md:Organization/md:OrganizationURL, 'example')]"/>
<xsl:variable name="exampleEntityCount" select="count($exampleEntities)"/>

<xsl:variable name="concealedCount" select="count($idps[md:Extensions/wayf:HideFromWAYF])"/>
<xsl:variable name="accountableCount"
Expand Down Expand Up @@ -198,21 +196,27 @@
at least one embedded <code>ds:X509Data</code> element providing explicit key material.
</p>
</li>
<li>
<p>
<xsl:value-of select="$exampleEntityCount"/>
(<xsl:value-of select="format-number($exampleEntityCount div $entityCount, '0.0%')"/>)
<xsl:choose>
<xsl:when test="$exampleEntityCount = 1">
has
</xsl:when>
<xsl:otherwise>
have
</xsl:otherwise>
</xsl:choose>
legacy "example" <code>OrganizationURL</code> elements.
</p>
</li>

<xsl:variable name="exampleEntities" select="$entities[contains(md:Organization/md:OrganizationURL, 'example')]"/>
<xsl:variable name="exampleEntityCount" select="count($exampleEntities)"/>
<xsl:if test="$exampleEntityCount != 0">
<li>
<p>
<xsl:value-of select="$exampleEntityCount"/>
(<xsl:value-of select="format-number($exampleEntityCount div $entityCount, '0.0%')"/>)
<xsl:choose>
<xsl:when test="$exampleEntityCount = 1">
has
</xsl:when>
<xsl:otherwise>
have
</xsl:otherwise>
</xsl:choose>
legacy "example" <code>OrganizationURL</code> elements.
</p>
</li>
</xsl:if>

</ul>

<h3>Identity Providers</h3>
Expand Down

0 comments on commit 5c28aaf

Please sign in to comment.