Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
incommon-md-counts/inc-entities.xsl
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
38 lines (28 sloc)
993 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<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:mdui="urn:oasis:names:tc:SAML:metadata:ui"> | |
<xsl:output method="text"/> | |
<xsl:template match="*"> | |
<xsl:message terminate="no"> | |
WARNING: Unmatched element: <xsl:value-of select="name()"/> | |
</xsl:message> | |
<xsl:apply-templates/> | |
</xsl:template> | |
<xsl:template match="/"> | |
<xsl:apply-templates select="md:EntitiesDescriptor"/> | |
</xsl:template> | |
<xsl:template match="md:EntitiesDescriptor"> | |
<xsl:for-each select="md:EntityDescriptor"> | |
<xsl:if test="md:Extensions/mdrpi:RegistrationInfo/@registrationAuthority = 'https://incommon.org'"> | |
<xsl:apply-templates select="."/> | |
</xsl:if> | |
</xsl:for-each> | |
</xsl:template> | |
<xsl:template match="md:EntityDescriptor"> | |
<xsl:value-of select="@entityID"/><xsl:text> | |
</xsl:text> | |
</xsl:template> | |
</xsl:stylesheet> |