Use normalize-space() to remove leading, trailing, and multiple internal
spaces from the text that will go in the <title> element. This fixes formatting problems when using applications like KNewsTicker.
This commit is contained in:
parent
6e28c38b61
commit
698bba17e1
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=11154
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<!-- $FreeBSD: www/en/news/news-rdf.xsl,v 1.2 2001/08/07 01:54:42 kuriyama Exp $ -->
|
||||
<!-- $FreeBSD: www/en/news/news-rdf.xsl,v 1.3 2001/09/19 13:31:48 nik Exp $ -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
|
@ -32,10 +32,10 @@
|
|||
<item>
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(child::title)">
|
||||
<title><xsl:value-of select="title"/></title>
|
||||
<title><xsl:value-of select="normalize-space(title)"/></title>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<title><xsl:value-of select="p"/></title>
|
||||
<title><xsl:value-of select="normalize-space(p)"/></title>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<link>http://www.FreeBSD.org/news/newsflash.html#<xsl:call-template name="generate-event-anchor"/></link>
|
||||
|
|
Loading…
Reference in a new issue