Skip to content

Commit

Permalink
Show a (shortened) version of the software being run, when known, in …
Browse files Browse the repository at this point in the history
…the entities by owner list.
  • Loading branch information
iay committed Dec 17, 2008
1 parent 63f9ca2 commit 2118b99
Showing 1 changed file with 37 additions and 5 deletions.
42 changes: 37 additions & 5 deletions build/statistics.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1209,16 +1209,48 @@
<ul>
<xsl:for-each select="$matched">
<li>
<xsl:value-of select="@ID"/>:
<xsl:if test="not(md:Extensions/uklabel:UKFederationMember)">[not-M] </xsl:if>
<xsl:if test="md:IDPSSODescriptor">[IdP] </xsl:if>
<xsl:if test="md:SPSSODescriptor">[SP] </xsl:if>
<xsl:value-of select="@ID"/>
<xsl:text>:</xsl:text>
<xsl:if test="not(md:Extensions/uklabel:UKFederationMember)"> [not-M]</xsl:if>
<xsl:if test="md:IDPSSODescriptor"> [IdP]</xsl:if>
<xsl:if test="md:SPSSODescriptor"> [SP]</xsl:if>
<xsl:apply-templates select="md:Extensions/uklabel:Software" mode="short"/>
<xsl:text> </xsl:text>
<code><xsl:value-of select="@entityID"/></code>
</li>
</xsl:for-each>
</ul>
</li>
</xsl:if>
</xsl:template>


<!--
Display a Software label in a short form suitable for text displays
-->
<xsl:template match="uklabel:Software" mode="short">
<xsl:text> [</xsl:text>
<xsl:choose>
<xsl:when test="@name = 'Shibboleth'">
<xsl:text>Shib</xsl:text>
</xsl:when>
<xsl:when test="@name='OpenAthens SP'">
<xsl:text>OASP</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@name"/>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="@fullVersion">
<xsl:text> </xsl:text>
<xsl:value-of select="@fullVersion"/>
</xsl:when>
<xsl:when test="@version">
<xsl:text> </xsl:text>
<xsl:value-of select="@version"/>
</xsl:when>
</xsl:choose>
<xsl:text>]</xsl:text>
</xsl:template>

</xsl:stylesheet>

0 comments on commit 2118b99

Please sign in to comment.