summaryrefslogtreecommitdiff
path: root/xslt/sp-summary.xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt/sp-summary.xslt')
-rw-r--r--xslt/sp-summary.xslt36
1 files changed, 22 insertions, 14 deletions
diff --git a/xslt/sp-summary.xslt b/xslt/sp-summary.xslt
index d54141c2..a580c83e 100644
--- a/xslt/sp-summary.xslt
+++ b/xslt/sp-summary.xslt
@@ -9,6 +9,7 @@
xmlns:samla="urn:oasis:names:tc:SAML:2.0:assertion"
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"/>
@@ -28,31 +29,38 @@
</xsl:template>
<xsl:template match="/md:EntitiesDescriptor">
- <xsl:text>||EntityID||Service Name||Service Description||Organization||Technical Contact||Administrative Contact||Entity Categories||
+ <xsl:text>||EntityID||Service Name||Organization||Contacts||Entity Categories||Assurance Certification||Registration Authority||
</xsl:text>
<xsl:apply-templates select="md:EntityDescriptor[md:SPSSODescriptor]"/>
</xsl:template>
<xsl:template match="md:EntityDescriptor">
<xsl:text> | </xsl:text><xsl:value-of select="@entityID"/>
- <xsl:text> | </xsl:text><xsl:apply-templates select="md:SPSSODescriptor/md:AttributeConsumingService/md:ServiceName"/>
- <xsl:text> | </xsl:text><xsl:apply-templates select="md:SPSSODescriptor/md:AttributeConsumingService/md:ServiceDescription"/>
+ <xsl:text> | </xsl:text>
+ <xsl:apply-templates select="md:SPSSODescriptor/md:AttributeConsumingService/md:ServiceName"/><xsl:text> \\ </xsl:text>
+ <xsl:apply-templates select="md:SPSSODescriptor/md:AttributeConsumingService/md:ServiceDescription"/>
<xsl:text> | </xsl:text><xsl:apply-templates select="md:Organization"/>
- <xsl:text> | </xsl:text><xsl:apply-templates select="md:ContactPerson[@contactType='technical']"/>
- <xsl:text> | </xsl:text><xsl:apply-templates select="md:ContactPerson[@contactType='administrative']"/>
- <xsl:text> | </xsl:text><xsl:apply-templates select="md:Extensions/mdattr:EntityAttributes/samla:Attribute[@Name='http://macedir.org/entity-category']/samla:AttributeValue"/><xsl:text> |
+ <xsl:text> | </xsl:text>
+ <xsl:apply-templates select="md:ContactPerson[@contactType='technical']"/>
+ <xsl:apply-templates select="md:ContactPerson[@contactType='administrative']"/>
+ <xsl:apply-templates select="md:ContactPerson[@contactType='support']"/>
+ <xsl:apply-templates select="md:ContactPerson[@contactType='other']"/>
+ <xsl:text> | </xsl:text><xsl:apply-templates select="md:Extensions/mdattr:EntityAttributes/samla:Attribute[@Name='http://macedir.org/entity-category']/samla:AttributeValue"/>
+ <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="md:AttributeConsumingService">
- <xsl:apply-templates/>
+ <xsl:template match="mdrpi:RegistrationInfo">
+ <xsl:value-of select="@registrationAuthority"/><xsl:text> </xsl:text>
</xsl:template>
- <xsl:template match="md:ServiceDescription">
- <xsl:value-of select="normalize-space(text())"/><xsl:text> </xsl:text>
+ <xsl:template match="md:AttributeConsumingService">
+ <xsl:apply-templates/>
</xsl:template>
- <xsl:template match="md:ServiceName">
+ <xsl:template match="md:ServiceName|md:ServiceDescription">
<xsl:call-template name="string-replace-all">
<xsl:with-param name="text" select="text()" />
<xsl:with-param name="replace" select="'|'" />
@@ -64,13 +72,13 @@
<xsl:call-template name="string-replace-all">
<xsl:with-param name="text" select="substring-after(text(),'/category/')" />
<xsl:with-param name="replace" select="'-'" />
- <xsl:with-param name="by" select="'&amp;#x2011;'" />
+ <xsl:with-param name="by" select="'-'" />
</xsl:call-template>
<xsl:text> \\</xsl:text>
</xsl:template>
<xsl:template match="md:ContactPerson">
- <xsl:apply-templates select="md:EmailAddress"/>
+ <xsl:value-of select="@contactType"/><xsl:text>: </xsl:text><xsl:apply-templates select="md:EmailAddress"/>
</xsl:template>
<xsl:template match="md:Organization">
@@ -84,7 +92,7 @@
</xsl:template>
<xsl:template match="md:EmailAddress">
- <xsl:value-of select="text()"/><xsl:text> \\</xsl:text>
+ <xsl:text>[</xsl:text><xsl:value-of select="text()"/><xsl:text>] \\</xsl:text>
</xsl:template>
<xsl:template match="md:OrganizationDisplayName">