Skip to content

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 6757955 commit 32a227f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions charting/scopes.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,32 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"
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">

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

<!--
Discard entities registered by other federations.
-->
<xsl:template match="md:EntityDescriptor
[descendant::mdrpi:RegistrationInfo/@registrationAuthority!='http://ukfederation.org.uk']">
<!-- do nothing -->
</xsl:template>

<!--
Discard regular expression scopes.
-->
<xsl:template match="//shibmd:Scope[@regex = 'true']">
<!-- do nothing -->
</xsl:template>

<xsl:template match="//shibmd:Scope">
<xsl:value-of select="."/>
<xsl:text>&#x0a;</xsl:text>
</xsl:template>

<xsl:template match="text()">
<!-- do nothing -->
</xsl:template>
Expand Down

0 comments on commit 32a227f

Please sign in to comment.