Re: [xsl] Removing all line breaks in text nodes

Subject: Re: [xsl] Removing all line breaks in text nodes
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 9 Sep 2006 23:48:10 +0100
you don't appear to apply normalize-space anywhere, simplest being
something like

changing

	<xsl:template match="text()[normalize-space(.)='']"/>

to
	<xsl:template match="text()">
<xsl:value-of select="normalize-space(.)"/>
</xsl:template>

or you might (or might not) want to re-insert a leading or trailing
space as shown in teh code fragments at DaveP's site that you quoted.

David

Current Thread