diff options
author | Fredrik Åslund <fredrik.aslund@umu.se> | 2013-06-28 13:03:46 +0200 |
---|---|---|
committer | Fredrik Åslund <fredrik.aslund@umu.se> | 2013-06-28 13:03:46 +0200 |
commit | d0a9da3a5e1c1935053ff69a2d04c0be29b7dabb (patch) | |
tree | 82aa32ad75b65f4fe5357bb025c0671e1154686c /xslt | |
parent | 793093717acfee2c273c9e00550a68a54b3c93a2 (diff) |
do not line-break at - of entity categories, line break between entity categories
line break between email addresses
SWAMIDOPS-6922
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/sp-summary.xslt | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/xslt/sp-summary.xslt b/xslt/sp-summary.xslt index 7708cf19..cd16a519 100644 --- a/xslt/sp-summary.xslt +++ b/xslt/sp-summary.xslt @@ -61,16 +61,22 @@ </xsl:template> <xsl:template match="samla:AttributeValue"> - <xsl:value-of select="substring-after(text(),'/category/')"/><xsl:text> </xsl:text> + <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="'&#x2011;'" /> + </xsl:call-template> + <xsl:text><br/></xsl:text> </xsl:template> <xsl:template match="md:ContactPerson"> - <xsl:apply-templates select="md:EmailAddress"/><xsl:text> </xsl:text> + <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: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:SPPSSODescriptor"> @@ -78,7 +84,7 @@ </xsl:template> <xsl:template match="md:EmailAddress"> - <xsl:value-of select="text()"/><xsl:text> </xsl:text> + <xsl:value-of select="text()"/><xsl:text><br/></xsl:text> </xsl:template> <xsl:template match="md:OrganizationDisplayName"> |