[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: 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
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member