summaryrefslogtreecommitdiff
path: root/xslt/idp-summary.xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt/idp-summary.xslt')
-rw-r--r--xslt/idp-summary.xslt30
1 files changed, 3 insertions, 27 deletions
diff --git a/xslt/idp-summary.xslt b/xslt/idp-summary.xslt
index bbb88a2a..5eb9b6f8 100644
--- a/xslt/idp-summary.xslt
+++ b/xslt/idp-summary.xslt
@@ -54,19 +54,15 @@
</xsl:template>
<xsl:template match="md:EmailAddress">
- <xsl:value-of select="text()"/><xsl:text> \\</xsl:text>
+ <xsl:value-of select="normalize-space(text())"/><xsl:text> </xsl:text><xsl:text> \\</xsl:text>
</xsl:template>
<xsl:template match="md:OrganizationDisplayName">
- <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:value-of select="normalize-space(text())"/><xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="md:OrganizationURL">
- <xsl:value-of select="text()"/>
+ <xsl:value-of select="normalize-space(text())"/><xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="shibmd:Scope">
@@ -76,24 +72,4 @@
<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>