Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Restrict chart to registered entities.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jan 3, 2014
1 parent 2eedc03 commit 6757955
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions charting/saml2.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
exclude-result-prefixes="md">
exclude-result-prefixes="md mdrpi">

<!-- Output is plain text -->
<xsl:output method="text"/>

<xsl:template match="md:EntitiesDescriptor">
<xsl:variable name="entities" select="//md:EntityDescriptor"/>
<xsl:variable name="entities" select="//md:EntityDescriptor
[descendant::mdrpi:RegistrationInfo/@registrationAuthority='http://ukfederation.org.uk']"/>
<xsl:value-of select="count($entities)"/><xsl:text> </xsl:text>
<xsl:variable name="idps" select="$entities[md:IDPSSODescriptor]"/>
<xsl:value-of select="count($idps)"/><xsl:text> </xsl:text>
Expand Down

0 comments on commit 6757955

Please sign in to comment.