As far as I know xsl:strip-space and xsl:preserve-space are pretty robust. It may be that you are misunderstanding what they do. If you can provide a very terse test case, we may be able to give you more information.
But the short of it: In <foo> </foo>, the whitespace inside the element is
whitespace. In <foo> x </foo>, the whitespace leading the trailing the 'x'
is not whitespace (to trim spaces off in this case you probably want to use
the normalize-space function). xsl:strip-space and xsl:preserve-space do
not effect whitespace in the xsl stylesheet... only in the source
documents.
-scott
Sam Yang
<Sam.Yang@fronter To: "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
acorp.com> cc: (bcc: Scott Boag/CAM/Lotus)
Subject: SAX2SAX and xsl:strip-space
10/22/2001 07:44
PM
Please respond to
xalan-dev
I am using Xalan-Java 2.2.D11 on a Windows 2000 and Jdk1.3.
Can I use SAX2SAX sample application with a XSL file contains
<xsl:strip-space elements="*" /> statement?
I seems to me the heading and trailing spaces are still being preserved
after the transformation.
Thanks,
Sam
