Re: [docbook-apps] trim space off tag contents

From
Dave Pawson <>
Date
2003-04-27T07:36:53+00:00
ID
Thread
Re: [docbook-apps] trim space off tag contents
At 17:48 26/04/2003 -0700, Bob Stayton wrote:
>The normalize-space() function in XSL removes leading
>and trailing spaces, and replaces internal sequences
>of whitespace with a single space character.

If its many elements, then an identity transform with
<xsl:strip-space elements="*"/>
does the same job.
Replace * with as many elements as needed
or use...
<xsl:preserve-space elements="pre"/> or whatever.
Can be used in combination.

HTH DaveP