diff options
Diffstat (limited to 'xslt/idp-summary.xslt')
-rw-r--r-- | xslt/idp-summary.xslt | 118 |
1 files changed, 0 insertions, 118 deletions
diff --git a/xslt/idp-summary.xslt b/xslt/idp-summary.xslt deleted file mode 100644 index cc5a5f16..00000000 --- a/xslt/idp-summary.xslt +++ /dev/null @@ -1,118 +0,0 @@ -<?xml version="1.0"?> -<xsl:stylesheet version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:ds="http://www.w3.org/2000/09/xmldsig#" - xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" - xmlns:samla="urn:oasis:names:tc:SAML:2.0:assertion" - xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" - xmlns:remd="http://refeds.org/metadata" - xmlns:exsl="http://exslt.org/common" - extension-element-prefixes="exsl" - xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" - xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> - - <xsl:output method="text"/> - <xsl:variable name="eol"> -<xsl:text>|</xsl:text><xsl:text> -</xsl:text> - </xsl:variable> - - <xsl:template name="entity-name"> - <xsl:variable name="h"><xsl:value-of select="substring-after(@entityID,'://')"/></xsl:variable> - <xsl:if test="contains($h,'/')"> - <xsl:value-of select="substring-before($h,'/')"/> - </xsl:if> - <xsl:if test="not(contains($h,'/'))"> - <xsl:value-of select="$h"/> - </xsl:if> - </xsl:template> - - <xsl:template match="/md:EntitiesDescriptor"> - <xsl:text>||EntityID||Organization||Technical Contact||Support Contact||Security Contact||Administrative Contact||Scopes||Entity category support||Assurance Certification||Registration Authority|| -</xsl:text> - <xsl:apply-templates select="md:EntityDescriptor[md:IDPSSODescriptor]"/> - </xsl:template> - - <xsl:template match="md:EntityDescriptor"> - <xsl:text> | </xsl:text><xsl:value-of select="@entityID"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:Organization"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:ContactPerson[@contactType='technical']"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:ContactPerson[@contactType='support']"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:ContactPerson[@remd:contactType='http://refeds.org/metadata/contactType/security']"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:ContactPerson[@contactType='administrative']"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:IDPSSODescriptor"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:Extensions/mdattr:EntityAttributes/samla:Attribute[@Name='http://macedir.org/entity-category-support']/samla:AttributeValue"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:Extensions/mdattr:EntityAttributes/samla:Attribute[@Name='urn:oasis:names:tc:SAML:attribute:assurance-certification']/samla:AttributeValue"/><xsl:text> </xsl:text> - <xsl:text> | </xsl:text><xsl:apply-templates select="md:Extensions/mdrpi:RegistrationInfo"/> - <xsl:text> | -</xsl:text> - </xsl:template> - - <xsl:template match="mdrpi:RegistrationInfo"> - <xsl:value-of select="@registrationAuthority"/><xsl:text> </xsl:text> - </xsl:template> - - <xsl:template match="md:ContactPerson"> - <xsl:apply-templates select="md:EmailAddress"/> - </xsl:template> - - <xsl:template match="md:Organization"> - <xsl:text>[</xsl:text> - <xsl:apply-templates select="md:OrganizationDisplayName[1]"/><xsl:text>|</xsl:text><xsl:apply-templates select="md:OrganizationURL[1]"/><xsl:text>]</xsl:text> - </xsl:template> - - <xsl:template match="md:IDPSSODescriptor"> - <xsl:apply-templates select="md:Extensions/shibmd:Scope"/> - </xsl:template> - - <xsl:template match="md:EmailAddress"> - <xsl:value-of select="normalize-space(text())"/><xsl:text> </xsl:text><xsl:text> \\</xsl:text> - </xsl:template> - - <xsl:template match="md:OrganizationDisplayName"> - <xsl:value-of select="normalize-space(text())"/><xsl:text> </xsl:text> - </xsl:template> - - <xsl:template match="md:OrganizationURL"> - <xsl:value-of select="normalize-space(text())"/><xsl:text> </xsl:text> - </xsl:template> - - <xsl:template match="shibmd:Scope"> - <xsl:value-of select="text()"/><xsl:text> </xsl:text> - </xsl:template> - - <xsl:template match="samla:AttributeValue"> - <xsl:call-template name="string-replace-all"> - <xsl:with-param name="text" select="text()" /> - <xsl:with-param name="replace" select="'-'" /> - <xsl:with-param name="by" select="'-'" /> - </xsl:call-template> - <xsl:text> \\</xsl:text> - </xsl:template> - - <xsl:template match="*"/> - <xsl:template match="text()"/> - - <xsl:template name="string-replace-all"> - <xsl:param name="text" /> - <xsl:param name="replace" /> - <xsl:param name="by" /> - <xsl:choose> - <xsl:when test="contains($text, $replace)"> - <xsl:value-of select="substring-before($text,$replace)" /> - <xsl:value-of select="$by" /> - <xsl:call-template name="string-replace-all"> - <xsl:with-param name="text" select="substring-after($text,$replace)" /> - <xsl:with-param name="replace" select="$replace" /> - <xsl:with-param name="by" select="$by" /> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="$text" /> - </xsl:otherwise> - </xsl:choose> - </xsl:template> - -</xsl:stylesheet> |