summaryrefslogtreecommitdiff
path: root/xslt/summary.xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt/summary.xslt')
-rw-r--r--xslt/summary.xslt102
1 files changed, 0 insertions, 102 deletions
diff --git a/xslt/summary.xslt b/xslt/summary.xslt
deleted file mode 100644
index 05152d13..00000000
--- a/xslt/summary.xslt
+++ /dev/null
@@ -1,102 +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:exsl="http://exslt.org/common"
- extension-element-prefixes="exsl"
- 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:EntityDescriptor">
- <xsl:text>h2. </xsl:text><xsl:call-template name="entity-name"/><xsl:text>
-</xsl:text>
- <xsl:text>||EntityID|</xsl:text><xsl:value-of select="@entityID"/><xsl:value-of select="$eol"/>
- <xsl:apply-templates select="md:IDPSSODescriptor"/>
- <xsl:apply-templates select="md:SPSSODescriptor"/>
- <xsl:apply-templates select="md:Organization"/>
- <xsl:apply-templates select="md:ContactPerson"/>
- <xsl:text>
-</xsl:text>
- <xsl:apply-templates select="md:SPSSODescriptor/md:AttributeConsumingService"/><xsl:text>
-</xsl:text>
- <xsl:text>[Supplemental documentation|</xsl:text><xsl:call-template name="entity-name"/><xsl:text>]
-</xsl:text>
- <xsl:text>
-</xsl:text>
- </xsl:template>
-
- <xsl:template match="md:ContactPerson[@contactType='technical']">
- <xsl:text>||Technical contact|</xsl:text>
- <xsl:apply-templates select="md:EmailAddress"/>
- <xsl:value-of select="$eol"/>
- </xsl:template>
-
- <xsl:template match="md:ContactPerson[@contactType='administrative']">
- <xsl:text>||Administrative contact|</xsl:text>
- <xsl:apply-templates select="md:EmailAddress"/>
- <xsl:value-of select="$eol"/>
- </xsl:template>
-
- <xsl:template match="md:Organization">
- <xsl:text>||Organization|[</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:value-of select="$eol"/>
- </xsl:template>
-
- <xsl:template match="md:SPSSODescriptor">
- <xsl:text>||Role|Service Provider</xsl:text><xsl:value-of select="$eol"/>
- </xsl:template>
-
- <xsl:template match="md:AttributeConsumingService">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="md:ServiceDescription">
- <xsl:text>{info}</xsl:text><xsl:value-of select="text()"/><xsl:text>{info}</xsl:text>
- </xsl:template>
-
- <xsl:template match="md:IDPSSODescriptor">
- <xsl:text>||Role|Identity Provider</xsl:text><xsl:value-of select="$eol"/>
- <xsl:text>||Scopes|</xsl:text><xsl:apply-templates select="md:Extensions/shibmd:Scope"/><xsl:value-of select="$eol"/>
- </xsl:template>
-
- <xsl:template match="md:EmailAddress">
- <xsl:value-of select="text()"/>
- </xsl:template>
-
- <xsl:template match="md:OrganizationDisplayName">
- <xsl:value-of select="text()"/>
- </xsl:template>
-
- <xsl:template match="md:OrganizationURL">
- <xsl:value-of select="text()"/>
- </xsl:template>
-
- <xsl:template match="shibmd:Scope">
- <xsl:text>* </xsl:text><xsl:value-of select="text()"/><xsl:text>
-</xsl:text>
- </xsl:template>
-
-
- <xsl:template match="*"/>
- <xsl:template match="text()"/>
-
-</xsl:stylesheet>